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.0007644/0.0007644, allocations: 94.25 kB / 17.31 MB, free: 6.535 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.00083/0.0008301, allocations: 175.2 kB / 18.21 MB, free: 5.684 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.117/1.117, allocations: 223.3 MB / 242.3 MB, free: 208 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002072/0.0002072, allocations: 4 kB / 302.1 MB, free: 6.125 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06963/0.06985, allocations: 50.41 MB / 352.5 MB, free: 3.703 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.BasicExamples.SaturatedInductor): time 0.002331/0.07219, allocations: 2.417 MB / 354.9 MB, free: 1.27 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001065/0.07327, allocations: 0.8102 MB / 355.7 MB, free: 464 kB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001247/0.07341, allocations: 8 kB / 355.7 MB, free: 456 kB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001904/0.0736, allocations: 47.69 kB / 355.8 MB, free: 408 kB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002341/0.07385, allocations: 95.36 kB / 355.9 MB, free: 312 kB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001964/0.07405, allocations: 75.94 kB / 355.9 MB, free: 236 kB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002887/0.07435, allocations: 338.7 kB / 356.3 MB, free: 15.89 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001486/0.0745, allocations: 94.14 kB / 356.4 MB, free: 15.8 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001553/0.07466, allocations: 119.5 kB / 356.5 MB, free: 15.69 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001524/0.07482, allocations: 131.3 kB / 356.6 MB, free: 15.56 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.474e-05/0.07487, allocations: 20 kB / 356.6 MB, free: 15.54 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.352e-05/0.07491, allocations: 16 kB / 356.6 MB, free: 15.52 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 4.451e-05/0.07495, allocations: 59.69 kB / 356.7 MB, free: 15.46 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001187/0.07508, allocations: 161 kB / 356.9 MB, free: 15.3 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001976/0.07528, allocations: 255.5 kB / 357.1 MB, free: 15.05 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.924e-06/0.07529, allocations: 0 / 357.1 MB, free: 15.05 MB / 302.1 MB Notification: Performance of FrontEnd: time 8.31e-07/0.07529, allocations: 0 / 357.1 MB, free: 15.05 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.489e-06/0.0753, allocations: 0 / 357.1 MB, free: 15.05 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.0007364/0.07604, allocations: 0.5574 MB / 357.7 MB, free: 14.45 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.018e-05/0.07608, allocations: 12.03 kB / 357.7 MB, free: 14.43 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.638e-05/0.07614, allocations: 32.56 kB / 357.7 MB, free: 14.4 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002304/0.07638, allocations: 264.3 kB / 358 MB, free: 14.11 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.899e-05/0.07641, allocations: 20.94 kB / 358 MB, free: 14.09 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.931e-05/0.07645, allocations: 24.38 kB / 358 MB, free: 14.06 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004184/0.07687, allocations: 257.2 kB / 358.3 MB, free: 13.81 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.215e-06/0.07689, allocations: 0 / 358.3 MB, free: 13.81 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.597e-05/0.07692, allocations: 12 kB / 358.3 MB, free: 13.8 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.602e-06/0.07693, allocations: 7.938 kB / 358.3 MB, free: 13.79 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003975/0.07734, allocations: 218.1 kB / 358.5 MB, free: 13.57 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001283/0.07863, allocations: 1.021 MB / 359.5 MB, free: 12.47 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003531/0.07899, allocations: 198.5 kB / 359.7 MB, free: 12.27 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002106/0.07921, allocations: 120.8 kB / 359.8 MB, free: 12.14 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.28e-05/0.07925, allocations: 0 / 359.8 MB, free: 12.14 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.058e-05/0.07927, allocations: 42.91 kB / 359.9 MB, free: 12.09 MB / 302.1 MB Notification: Performance of pre-optimization done (n=23): time 9.32e-07/0.07928, allocations: 0 / 359.9 MB, free: 12.09 MB / 302.1 MB Notification: Performance of matching and sorting (n=35): time 0.004428/0.08371, allocations: 1.558 MB / 361.4 MB, free: 10.46 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.094e-05/0.08375, allocations: 59.34 kB / 361.5 MB, free: 10.39 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001895/0.08395, allocations: 229 kB / 361.7 MB, free: 10.16 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.428e-05/0.08398, allocations: 29.7 kB / 361.7 MB, free: 10.12 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.854e-05/0.08408, allocations: 180.2 kB / 361.9 MB, free: 9.941 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.139e-05/0.08415, allocations: 118.2 kB / 362 MB, free: 9.824 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.568e-05/0.08421, allocations: 41.69 kB / 362.1 MB, free: 9.777 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 8.978e-05/0.0843, allocations: 334.8 kB / 362.4 MB, free: 9.441 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002106/0.08452, allocations: 112.7 kB / 362.5 MB, free: 9.328 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002343/0.08476, allocations: 161.5 kB / 362.7 MB, free: 9.156 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004432/0.08521, allocations: 291.9 kB / 363 MB, free: 8.855 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.193e-06/0.08522, allocations: 0 / 363 MB, free: 8.855 MB / 302.1 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.001385/0.08661, allocations: 0.5334 MB / 363.5 MB, free: 8.309 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.221e-05/0.08663, allocations: 4 kB / 363.5 MB, free: 8.305 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.257e-06/0.08665, allocations: 11.98 kB / 363.5 MB, free: 8.293 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001265/0.08792, allocations: 253.4 kB / 363.7 MB, free: 8.039 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002256/0.08815, allocations: 55.97 kB / 363.8 MB, free: 7.984 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00384/0.092, allocations: 3.762 MB / 367.6 MB, free: 3.957 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001903/0.0922, allocations: 12 kB / 367.6 MB, free: 3.945 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.236e-05/0.09223, allocations: 11.98 kB / 367.6 MB, free: 3.934 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.0001276/0.09237, allocations: 156.9 kB / 367.7 MB, free: 3.773 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.833e-05/0.09242, allocations: 27.62 kB / 367.8 MB, free: 3.746 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.718e-05/0.09251, allocations: 39.03 kB / 367.8 MB, free: 3.703 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.11e-06/0.09252, allocations: 11.92 kB / 367.8 MB, free: 3.691 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.889e-06/0.09253, allocations: 4 kB / 367.8 MB, free: 3.688 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.637e-06/0.09254, allocations: 0 / 367.8 MB, free: 3.688 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001845/0.09439, allocations: 0.9939 MB / 368.8 MB, free: 2.625 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.534e-06/0.0944, allocations: 3.938 kB / 368.8 MB, free: 2.621 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001832/0.09459, allocations: 43.97 kB / 368.9 MB, free: 2.578 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001237/0.09584, allocations: 253.4 kB / 369.1 MB, free: 2.324 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.845e-05/0.09587, allocations: 8 kB / 369.1 MB, free: 2.316 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1234/0.2193, allocations: 3.736 MB / 372.9 MB, free: 22.95 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.645e-06/0.2193, allocations: 6.125 kB / 372.9 MB, free: 22.95 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001632/0.2209, allocations: 0.7383 MB / 373.6 MB, free: 22.79 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.301e-05/0.221, allocations: 104 kB / 373.7 MB, free: 22.7 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.908e-05/0.221, allocations: 4.75 kB / 373.7 MB, free: 22.7 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002015/0.2212, allocations: 15.55 kB / 373.7 MB, free: 22.7 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.438e-05/0.2213, allocations: 32.16 kB / 373.8 MB, free: 22.7 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.795e-05/0.2213, allocations: 7.922 kB / 373.8 MB, free: 22.7 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001132/0.2214, allocations: 169.8 kB / 373.9 MB, free: 22.62 MB / 302.1 MB Notification: Performance of sort global known variables: time 1e-07/0.2215, allocations: 0 / 373.9 MB, free: 22.62 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005226/0.222, allocations: 102.6 kB / 374 MB, free: 22.62 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 8.701e-05/0.2221, allocations: 110.4 kB / 374.1 MB, free: 22.54 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0007856/0.2229, allocations: 0.5712 MB / 374.7 MB, free: 22.3 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.395e-06/0.2229, allocations: 0.7188 kB / 374.7 MB, free: 22.3 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004403/0.2233, allocations: 434 kB / 375.1 MB, free: 22.07 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003339/0.2237, allocations: 24.2 kB / 375.2 MB, free: 22.07 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009889/0.2247, allocations: 0.9093 MB / 376.1 MB, free: 21.61 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001584/0.2248, allocations: 0.7803 MB / 376.8 MB, free: 20.91 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.409e-05/0.2249, allocations: 21.52 kB / 376.9 MB, free: 20.91 MB / 302.1 MB Notification: Performance of SimCode: time 2.7e-07/0.2249, allocations: 3.375 kB / 376.9 MB, free: 20.91 MB / 302.1 MB Notification: Performance of Templates: time 0.006522/0.2314, allocations: 5.948 MB / 382.8 MB, free: 19.88 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