Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.SaturatedInductor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Magnetic.FluxTubes.Examples.BasicExamples.SaturatedInductor,tolerance=1e-07,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|coil.i|coil.Phi|r_mLeak.port_p.Phi|r_mFe.mu_r|r_mFe.B|r_mFe.H",fileNamePrefix="Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.SaturatedInductor") translateModel(Modelica.Magnetic.FluxTubes.Examples.BasicExamples.SaturatedInductor,tolerance=1e-07,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|coil.i|coil.Phi|r_mLeak.port_p.Phi|r_mFe.mu_r|r_mFe.B|r_mFe.H",fileNamePrefix="Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.SaturatedInductor") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001152/0.001152, allocations: 104.2 kB / 17.59 MB, free: 5.559 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001149/0.001149, allocations: 191.4 kB / 18.51 MB, free: 4.641 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.326/1.326, allocations: 222.9 MB / 242.2 MB, free: 15.21 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001132/0.001132, allocations: 51.67 kB / 301.3 MB, free: 5.875 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08935/0.0905, allocations: 49.45 MB / 350.7 MB, free: 4.414 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.BasicExamples.SaturatedInductor): time 0.00376/0.0943, allocations: 2.734 MB / 353.5 MB, free: 1.656 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001249/0.09557, allocations: 0.8722 MB / 354.3 MB, free: 0.7773 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001144/0.0957, allocations: 4 kB / 354.3 MB, free: 0.7734 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002158/0.09592, allocations: 59.48 kB / 354.4 MB, free: 0.7148 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002385/0.09618, allocations: 99.19 kB / 354.5 MB, free: 0.6172 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002232/0.09641, allocations: 107.8 kB / 354.6 MB, free: 0.5117 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.000295/0.09671, allocations: 346.6 kB / 354.9 MB, free: 176 kB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001777/0.0969, allocations: 113.7 kB / 355.1 MB, free: 60 kB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001698/0.09708, allocations: 135.5 kB / 355.2 MB, free: 15.93 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001813/0.09727, allocations: 147.3 kB / 355.3 MB, free: 15.78 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 4.876e-05/0.09733, allocations: 36 kB / 355.4 MB, free: 15.75 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.798e-05/0.09738, allocations: 28 kB / 355.4 MB, free: 15.72 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 5.564e-05/0.09744, allocations: 67.77 kB / 355.5 MB, free: 15.65 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001329/0.09758, allocations: 159.2 kB / 355.6 MB, free: 15.5 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002973/0.09788, allocations: 355 kB / 356 MB, free: 15.15 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.988e-06/0.0979, allocations: 0 / 356 MB, free: 15.15 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.303e-06/0.0979, allocations: 0 / 356 MB, free: 15.15 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.533e-06/0.09792, allocations: 0 / 356 MB, free: 15.15 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 67 * Number of variables: 67 Notification: Performance of Generate backend data structure: time 0.0009392/0.09886, allocations: 0.6003 MB / 356.6 MB, free: 14.5 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.465e-05/0.0989, allocations: 15.89 kB / 356.6 MB, free: 14.48 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.32e-05/0.09899, allocations: 32.56 kB / 356.6 MB, free: 14.45 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002589/0.09926, allocations: 256.3 kB / 356.9 MB, free: 14.16 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.527e-05/0.09929, allocations: 24.88 kB / 356.9 MB, free: 14.14 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.219e-05/0.09934, allocations: 24.38 kB / 356.9 MB, free: 14.12 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004562/0.0998, allocations: 257.2 kB / 357.2 MB, free: 13.86 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.588e-06/0.09982, allocations: 0 / 357.2 MB, free: 13.86 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.785e-05/0.09986, allocations: 12 kB / 357.2 MB, free: 13.85 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.244e-06/0.09987, allocations: 4 kB / 357.2 MB, free: 13.85 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004356/0.1003, allocations: 206.1 kB / 357.4 MB, free: 13.64 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001499/0.1018, allocations: 1.013 MB / 358.4 MB, free: 12.55 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004213/0.1023, allocations: 210.5 kB / 358.6 MB, free: 12.33 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002405/0.1025, allocations: 112.8 kB / 358.7 MB, free: 12.22 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.675e-05/0.1025, allocations: 4 kB / 358.7 MB, free: 12.21 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.853e-05/0.1026, allocations: 39 kB / 358.7 MB, free: 12.17 MB / 302.1 MB Notification: Performance of pre-optimization done (n=23): time 1.463e-06/0.1026, allocations: 0 / 358.7 MB, free: 12.17 MB / 302.1 MB Notification: Performance of matching and sorting (n=35): time 0.005016/0.1076, allocations: 1.533 MB / 360.3 MB, free: 10.56 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.043e-05/0.1077, allocations: 63.28 kB / 360.3 MB, free: 10.48 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002101/0.1079, allocations: 224.9 kB / 360.6 MB, free: 10.25 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.757e-05/0.1079, allocations: 33.7 kB / 360.6 MB, free: 10.21 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001065/0.108, allocations: 184.1 kB / 360.8 MB, free: 10.03 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.864e-05/0.1081, allocations: 118.3 kB / 360.9 MB, free: 9.914 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000109/0.1082, allocations: 69.97 kB / 361 MB, free: 9.836 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.00011/0.1083, allocations: 334.8 kB / 361.3 MB, free: 9.5 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002361/0.1086, allocations: 108.7 kB / 361.4 MB, free: 9.395 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002622/0.1089, allocations: 157.5 kB / 361.5 MB, free: 9.227 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004938/0.1094, allocations: 284 kB / 361.8 MB, free: 8.934 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.413e-06/0.1094, allocations: 0 / 361.8 MB, free: 8.934 MB / 302.1 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.001527/0.1109, allocations: 0.5293 MB / 362.4 MB, free: 8.391 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.755e-05/0.1109, allocations: 15.94 kB / 362.4 MB, free: 8.375 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.891e-06/0.111, allocations: 0 / 362.4 MB, free: 8.375 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001234/0.1122, allocations: 245.5 kB / 362.6 MB, free: 8.129 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002711/0.1125, allocations: 59.89 kB / 362.7 MB, free: 8.07 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004598/0.1171, allocations: 4.133 MB / 366.8 MB, free: 3.66 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002336/0.1173, allocations: 12.02 kB / 366.8 MB, free: 3.648 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.803e-05/0.1174, allocations: 16 kB / 366.8 MB, free: 3.633 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (29): * Single equations (assignments): 27 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,9,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,7)} Notification: Performance of prepare postOptimizeDAE: time 0.0001604/0.1175, allocations: 149.7 kB / 367 MB, free: 3.477 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.687e-05/0.1176, allocations: 27.62 kB / 367 MB, free: 3.449 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.29e-05/0.1177, allocations: 51.02 kB / 367 MB, free: 3.395 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.737e-06/0.1177, allocations: 4 kB / 367.1 MB, free: 3.391 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.671e-06/0.1177, allocations: 0 / 367.1 MB, free: 3.391 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.118e-06/0.1177, allocations: 0 / 367.1 MB, free: 3.391 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002048/0.1198, allocations: 0.9861 MB / 368 MB, free: 2.336 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.916e-06/0.1198, allocations: 0 / 368 MB, free: 2.336 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002132/0.12, allocations: 44.03 kB / 368.1 MB, free: 2.293 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001178/0.1212, allocations: 241.4 kB / 368.3 MB, free: 2.051 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.616e-05/0.1212, allocations: 15.97 kB / 368.3 MB, free: 2.035 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.153/0.2743, allocations: 4.111 MB / 372.4 MB, free: 23.09 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.566e-06/0.2743, allocations: 5.328 kB / 372.4 MB, free: 23.09 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001837/0.2762, allocations: 0.7345 MB / 373.2 MB, free: 22.93 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.114e-05/0.2762, allocations: 106.2 kB / 373.3 MB, free: 22.84 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.928e-05/0.2763, allocations: 6.812 kB / 373.3 MB, free: 22.84 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002329/0.2765, allocations: 13.16 kB / 373.3 MB, free: 22.84 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.692e-05/0.2766, allocations: 34.17 kB / 373.3 MB, free: 22.84 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.229e-05/0.2767, allocations: 10.92 kB / 373.4 MB, free: 22.84 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001398/0.2768, allocations: 161.3 kB / 373.5 MB, free: 22.76 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2768, allocations: 1.031 kB / 373.5 MB, free: 22.76 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0006141/0.2774, allocations: 102.2 kB / 373.6 MB, free: 22.76 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 1 (coil.i) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (19): * Single equations (assignments): 17 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,9,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,7)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001157/0.2776, allocations: 109.7 kB / 373.7 MB, free: 22.68 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0009754/0.2785, allocations: 0.5758 MB / 374.3 MB, free: 22.44 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.915e-06/0.2786, allocations: 0 / 374.3 MB, free: 22.44 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005437/0.2791, allocations: 435.2 kB / 374.7 MB, free: 22.14 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003386/0.2795, allocations: 31.58 kB / 374.7 MB, free: 22.12 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001232/0.2807, allocations: 0.7246 MB / 375.5 MB, free: 21.75 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001948/0.2809, allocations: 0.7772 MB / 376.2 MB, free: 21.05 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.047e-05/0.281, allocations: 20.23 kB / 376.3 MB, free: 21.04 MB / 302.1 MB Notification: Performance of SimCode: time 4.01e-07/0.281, allocations: 1.312 kB / 376.3 MB, free: 21.04 MB / 302.1 MB Notification: Performance of Templates: time 0.008129/0.2891, allocations: 5.975 MB / 382.2 MB, free: 20.05 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.SaturatedInductor.makefile (rm -f Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.SaturatedInductor.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.SaturatedInductor.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.SaturatedInductor.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.SaturatedInductor.sim & ./Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.SaturatedInductor -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.SaturatedInductor.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.SaturatedInductor_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/FluxTubes/Examples/BasicExamples/SaturatedInductor/SaturatedInductor.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.SaturatedInductor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches