Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.SaturatedInductor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/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_trunk_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_trunk_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.SaturatedInductor") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001701/0.001701, allocations: 207.3 kB / 17.99 MB, free: 3.777 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.305/1.305, allocations: 226.7 MB / 245.5 MB, free: 6.969 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009644/0.0009643, allocations: 105.8 kB / 296.7 MB, free: 6.477 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0008416/0.0008416, allocations: 51.92 kB / 356.6 MB, free: 10.59 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2193/0.2202, allocations: 50.45 MB / 407.1 MB, free: 27.8 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.BasicExamples.SaturatedInductor): time 0.003076/0.2233, allocations: 2.797 MB / 409.9 MB, free: 25 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.00114/0.2244, allocations: 0.9285 MB / 410.8 MB, free: 24.07 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000119/0.2246, allocations: 4 kB / 410.8 MB, free: 24.07 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002031/0.2248, allocations: 53.42 kB / 410.8 MB, free: 24.02 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002093/0.225, allocations: 87.38 kB / 410.9 MB, free: 23.93 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000184/0.2252, allocations: 86.39 kB / 411 MB, free: 23.85 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002252/0.2254, allocations: 342.6 kB / 411.3 MB, free: 23.52 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001477/0.2256, allocations: 95.77 kB / 411.4 MB, free: 23.42 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001654/0.2258, allocations: 135.5 kB / 411.6 MB, free: 23.29 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000141/0.2259, allocations: 139.4 kB / 411.7 MB, free: 23.15 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 3.544e-05/0.226, allocations: 23.94 kB / 411.7 MB, free: 23.13 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.268e-05/0.226, allocations: 28 kB / 411.8 MB, free: 23.1 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 3.647e-05/0.2261, allocations: 55.7 kB / 411.8 MB, free: 23.05 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 9.227e-05/0.2262, allocations: 147.2 kB / 412 MB, free: 22.9 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000229/0.2264, allocations: 352.2 kB / 412.3 MB, free: 22.56 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.208e-06/0.2264, allocations: 0 / 412.3 MB, free: 22.56 MB / 298.7 MB Notification: Performance of FrontEnd: time 9.12e-07/0.2264, allocations: 0 / 412.3 MB, free: 22.56 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.8e-06/0.2264, allocations: 4 kB / 412.3 MB, free: 22.55 MB / 298.7 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.0007494/0.2272, allocations: 0.6003 MB / 412.9 MB, free: 21.91 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.107e-05/0.2272, allocations: 8.031 kB / 412.9 MB, free: 21.9 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001448/0.2274, allocations: 48.55 kB / 413 MB, free: 21.85 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002062/0.2276, allocations: 264.5 kB / 413.2 MB, free: 21.55 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.846e-05/0.2276, allocations: 20.94 kB / 413.2 MB, free: 21.54 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.794e-05/0.2277, allocations: 24.38 kB / 413.3 MB, free: 21.51 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003893/0.2281, allocations: 257.1 kB / 413.5 MB, free: 21.25 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.105e-05/0.2281, allocations: 0 / 413.5 MB, free: 21.25 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.278e-05/0.2281, allocations: 12 kB / 413.5 MB, free: 21.24 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.821e-06/0.2281, allocations: 8 kB / 413.5 MB, free: 21.23 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003619/0.2285, allocations: 214.1 kB / 413.7 MB, free: 21.02 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001158/0.2297, allocations: 1.009 MB / 414.7 MB, free: 19.92 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003512/0.23, allocations: 205.3 kB / 414.9 MB, free: 19.71 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002067/0.2302, allocations: 113.2 kB / 415.1 MB, free: 19.6 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.883e-05/0.2303, allocations: 4.094 kB / 415.1 MB, free: 19.6 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.922e-05/0.2303, allocations: 38.36 kB / 415.1 MB, free: 19.55 MB / 298.7 MB Notification: Performance of pre-optimization done (n=23): time 1.292e-06/0.2303, allocations: 0 / 415.1 MB, free: 19.55 MB / 298.7 MB Notification: Performance of matching and sorting (n=35): time 0.004424/0.2347, allocations: 1.549 MB / 416.6 MB, free: 17.93 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.189e-05/0.2348, allocations: 63.28 kB / 416.7 MB, free: 17.85 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001612/0.2349, allocations: 229 kB / 416.9 MB, free: 17.62 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.793e-05/0.235, allocations: 29.7 kB / 417 MB, free: 17.58 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.298e-05/0.235, allocations: 180.2 kB / 417.1 MB, free: 17.4 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.379e-05/0.2351, allocations: 126.2 kB / 417.3 MB, free: 17.28 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.938e-05/0.2352, allocations: 62.08 kB / 417.3 MB, free: 17.21 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.937e-05/0.2353, allocations: 342.8 kB / 417.7 MB, free: 16.86 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002045/0.2355, allocations: 108.7 kB / 417.8 MB, free: 16.76 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002164/0.2357, allocations: 161.5 kB / 417.9 MB, free: 16.59 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004289/0.2361, allocations: 283.8 kB / 418.2 MB, free: 16.29 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.322e-06/0.2361, allocations: 0 / 418.2 MB, free: 16.29 MB / 298.7 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.001346/0.2375, allocations: 0.5335 MB / 418.7 MB, free: 15.75 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.51e-05/0.2375, allocations: 4 kB / 418.7 MB, free: 15.74 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.051e-06/0.2375, allocations: 4 kB / 418.7 MB, free: 15.74 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001133/0.2387, allocations: 237.5 kB / 419 MB, free: 15.5 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002432/0.2389, allocations: 59.89 kB / 419 MB, free: 15.44 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00348/0.2424, allocations: 3.728 MB / 422.8 MB, free: 11.45 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002137/0.2426, allocations: 16.06 kB / 422.8 MB, free: 11.43 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.215e-05/0.2427, allocations: 12 kB / 422.8 MB, free: 11.42 MB / 298.7 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.0001247/0.2428, allocations: 149.8 kB / 422.9 MB, free: 11.27 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.803e-05/0.2429, allocations: 27.62 kB / 423 MB, free: 11.24 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.408e-05/0.243, allocations: 38.97 kB / 423 MB, free: 11.2 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.978e-06/0.243, allocations: 11.92 kB / 423 MB, free: 11.18 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.743e-06/0.243, allocations: 4 kB / 423 MB, free: 11.18 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.988e-06/0.243, allocations: 4 kB / 423 MB, free: 11.18 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001725/0.2447, allocations: 0.9806 MB / 424 MB, free: 10.13 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.444e-06/0.2447, allocations: 0 / 424 MB, free: 10.13 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001838/0.2449, allocations: 43.91 kB / 424 MB, free: 10.09 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001065/0.246, allocations: 241.5 kB / 424.3 MB, free: 9.844 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.114e-05/0.246, allocations: 8 kB / 424.3 MB, free: 9.836 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003158/0.2492, allocations: 3.721 MB / 428 MB, free: 5.852 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.803e-06/0.2492, allocations: 0 / 428 MB, free: 5.852 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01421/0.2634, allocations: 8.146 MB / 436.1 MB, free: 13.26 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.364e-05/0.2635, allocations: 100.7 kB / 436.2 MB, free: 13.14 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.177e-05/0.2636, allocations: 8 kB / 436.3 MB, free: 13.14 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00022/0.2638, allocations: 16.41 kB / 436.3 MB, free: 13.12 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001282/0.2639, allocations: 27.95 kB / 436.3 MB, free: 13.09 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.194e-05/0.264, allocations: 12 kB / 436.3 MB, free: 13.08 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0001485/0.2641, allocations: 164.6 kB / 436.5 MB, free: 12.92 MB / 314.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2641, allocations: 4 kB / 436.5 MB, free: 12.92 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0007593/0.2649, allocations: 155.9 kB / 436.6 MB, free: 12.77 MB / 314.7 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.0001409/0.265, allocations: 107.2 kB / 436.7 MB, free: 12.65 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0009647/0.266, allocations: 0.563 MB / 437.3 MB, free: 12.06 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.476e-06/0.266, allocations: 0 / 437.3 MB, free: 12.06 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000552/0.2666, allocations: 437.6 kB / 437.7 MB, free: 11.61 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003444/0.2669, allocations: 36.38 kB / 437.8 MB, free: 11.57 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0018/0.2688, allocations: 1.378 MB / 439.1 MB, free: 10.13 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003232/0.2691, allocations: 0.7923 MB / 439.9 MB, free: 9.312 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0001043/0.2692, allocations: 18.3 kB / 439.9 MB, free: 9.297 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.607e-05/0.2693, allocations: 23.44 kB / 440 MB, free: 9.273 MB / 314.7 MB Notification: Performance of SimCode: time 5.51e-07/0.2693, allocations: 4 kB / 440 MB, free: 9.27 MB / 314.7 MB Notification: Performance of Templates: time 0.01186/0.2811, allocations: 8.215 MB / 448.2 MB, free: 1.066 MB / 314.7 MB make -j1 -f Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.SaturatedInductor.makefile (rm -f Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.SaturatedInductor.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.SaturatedInductor.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.SaturatedInductor.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.SaturatedInductor.sim & ./Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.SaturatedInductor -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.SaturatedInductor.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.SaturatedInductor_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/FluxTubes/Examples/BasicExamples/SaturatedInductor/SaturatedInductor.csv","../files/Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.SaturatedInductor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches