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.001147/0.001147, allocations: 111.8 kB / 17.06 MB, free: 5.992 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.001168/0.001168, allocations: 196 kB / 18 MB, free: 5.074 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.407/1.407, allocations: 222.9 MB / 241.7 MB, free: 15.08 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009672/0.0009673, allocations: 43.94 kB / 351.3 MB, free: 3.258 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2499/0.2509, allocations: 49.43 MB / 400.7 MB, free: 8.766 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.BasicExamples.SaturatedInductor): time 0.003918/0.2548, allocations: 2.745 MB / 403.5 MB, free: 6.148 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001588/0.2564, allocations: 0.8684 MB / 404.3 MB, free: 5.273 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001834/0.2566, allocations: 4 kB / 404.3 MB, free: 5.27 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003195/0.257, allocations: 55.44 kB / 404.4 MB, free: 5.215 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002946/0.2573, allocations: 107.2 kB / 404.5 MB, free: 5.109 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003069/0.2576, allocations: 99.81 kB / 404.6 MB, free: 5.012 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003872/0.258, allocations: 350.6 kB / 404.9 MB, free: 4.668 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002348/0.2583, allocations: 105.7 kB / 405 MB, free: 4.562 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000212/0.2585, allocations: 135.5 kB / 405.2 MB, free: 4.43 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002251/0.2587, allocations: 151.3 kB / 405.3 MB, free: 4.281 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 5.645e-05/0.2588, allocations: 32 kB / 405.3 MB, free: 4.25 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.266e-05/0.2588, allocations: 28 kB / 405.4 MB, free: 4.223 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 7.234e-05/0.2589, allocations: 75.69 kB / 405.4 MB, free: 4.148 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001516/0.2591, allocations: 151.3 kB / 405.6 MB, free: 4 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004134/0.2595, allocations: 358.3 kB / 405.9 MB, free: 3.652 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.442e-06/0.2595, allocations: 3.984 kB / 405.9 MB, free: 3.648 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.803e-06/0.2595, allocations: 0 / 405.9 MB, free: 3.648 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.534e-06/0.2595, allocations: 0 / 405.9 MB, free: 3.648 MB / 318.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.001027/0.2606, allocations: 0.6142 MB / 406.6 MB, free: 2.988 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.049e-05/0.2606, allocations: 15.89 kB / 406.6 MB, free: 2.973 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.962e-05/0.2607, allocations: 32.75 kB / 406.6 MB, free: 2.941 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003484/0.261, allocations: 261 kB / 406.9 MB, free: 2.648 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.218e-05/0.2611, allocations: 24.94 kB / 406.9 MB, free: 2.625 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.497e-05/0.2611, allocations: 24.38 kB / 406.9 MB, free: 2.602 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004966/0.2616, allocations: 253.2 kB / 407.2 MB, free: 2.348 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.032e-05/0.2617, allocations: 0 / 407.2 MB, free: 2.348 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.77e-05/0.2617, allocations: 12 kB / 407.2 MB, free: 2.336 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.758e-06/0.2617, allocations: 8 kB / 407.2 MB, free: 2.328 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004487/0.2622, allocations: 210.1 kB / 407.4 MB, free: 2.125 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001509/0.2637, allocations: 1.002 MB / 408.4 MB, free: 1.031 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004179/0.2641, allocations: 210.5 kB / 408.6 MB, free: 0.8164 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002422/0.2644, allocations: 112.8 kB / 408.7 MB, free: 0.7031 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.815e-05/0.2644, allocations: 8.062 kB / 408.7 MB, free: 0.6953 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.237e-05/0.2644, allocations: 34.56 kB / 408.7 MB, free: 0.6523 MB / 318.1 MB Notification: Performance of pre-optimization done (n=23): time 1.343e-06/0.2644, allocations: 0 / 408.7 MB, free: 0.6523 MB / 318.1 MB Notification: Performance of matching and sorting (n=35): time 0.004995/0.2694, allocations: 1.542 MB / 410.3 MB, free: 15.03 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.839e-05/0.2695, allocations: 63.2 kB / 410.3 MB, free: 14.96 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002211/0.2697, allocations: 233 kB / 410.6 MB, free: 14.72 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.602e-05/0.2698, allocations: 33.7 kB / 410.6 MB, free: 14.68 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001032/0.2699, allocations: 176.5 kB / 410.8 MB, free: 14.51 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.909e-05/0.27, allocations: 134.8 kB / 410.9 MB, free: 14.38 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001142/0.2701, allocations: 66.03 kB / 411 MB, free: 14.3 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001092/0.2702, allocations: 330.8 kB / 411.3 MB, free: 13.97 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002413/0.2705, allocations: 112.7 kB / 411.4 MB, free: 13.86 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002667/0.2707, allocations: 161.5 kB / 411.6 MB, free: 13.69 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005004/0.2712, allocations: 280 kB / 411.8 MB, free: 13.4 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.845e-06/0.2713, allocations: 0 / 411.8 MB, free: 13.4 MB / 334.1 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.001518/0.2728, allocations: 0.5371 MB / 412.4 MB, free: 12.85 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.817e-05/0.2728, allocations: 8 kB / 412.4 MB, free: 12.84 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.625e-06/0.2728, allocations: 0 / 412.4 MB, free: 12.84 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001236/0.2741, allocations: 241.5 kB / 412.6 MB, free: 12.6 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002665/0.2743, allocations: 59.89 kB / 412.7 MB, free: 12.54 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004599/0.279, allocations: 4.155 MB / 416.8 MB, free: 8.109 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002318/0.2792, allocations: 8.031 kB / 416.8 MB, free: 8.102 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.892e-05/0.2792, allocations: 16 kB / 416.9 MB, free: 8.086 MB / 334.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.000167/0.2794, allocations: 151.9 kB / 417 MB, free: 7.93 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.337e-05/0.2795, allocations: 23.86 kB / 417 MB, free: 7.906 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.149e-05/0.2796, allocations: 43.03 kB / 417.1 MB, free: 7.863 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.755e-06/0.2796, allocations: 7.984 kB / 417.1 MB, free: 7.855 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.153e-06/0.2796, allocations: 3.938 kB / 417.1 MB, free: 7.852 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.608e-06/0.2796, allocations: 0 / 417.1 MB, free: 7.852 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002223/0.2818, allocations: 0.9861 MB / 418.1 MB, free: 6.797 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.416e-06/0.2819, allocations: 0 / 418.1 MB, free: 6.797 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000207/0.2821, allocations: 40.05 kB / 418.1 MB, free: 6.758 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001165/0.2832, allocations: 245.4 kB / 418.3 MB, free: 6.512 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.463e-05/0.2833, allocations: 8 kB / 418.4 MB, free: 6.504 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004566/0.2878, allocations: 4.123 MB / 422.5 MB, free: 2.105 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.176e-06/0.2879, allocations: 3.984 kB / 422.5 MB, free: 2.102 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001776/0.2896, allocations: 0.7328 MB / 423.2 MB, free: 1.34 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.06e-05/0.2897, allocations: 105 kB / 423.3 MB, free: 1.219 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.788e-05/0.2898, allocations: 12 kB / 423.3 MB, free: 1.207 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002171/0.29, allocations: 12 kB / 423.3 MB, free: 1.195 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.227e-05/0.2901, allocations: 27.95 kB / 423.4 MB, free: 1.168 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.466e-05/0.2901, allocations: 12 kB / 423.4 MB, free: 1.156 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.000168/0.2903, allocations: 164.5 kB / 423.5 MB, free: 0.9922 MB / 334.1 MB Notification: Performance of sort global known variables: time 2.435e-06/0.2903, allocations: 0 / 423.5 MB, free: 0.9922 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0006473/0.291, allocations: 107.9 kB / 423.6 MB, free: 0.8867 MB / 334.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.000183/0.2912, allocations: 118.4 kB / 423.8 MB, free: 0.7656 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001048/0.2922, allocations: 0.5597 MB / 424.3 MB, free: 184 kB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.905e-06/0.2922, allocations: 4 kB / 424.3 MB, free: 180 kB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000604/0.2929, allocations: 433 kB / 424.7 MB, free: 15.73 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003382/0.2932, allocations: 20.44 kB / 424.8 MB, free: 15.71 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001345/0.2946, allocations: 0.7104 MB / 425.5 MB, free: 14.96 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003271/0.2949, allocations: 0.776 MB / 426.3 MB, free: 14.16 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 9.375e-05/0.295, allocations: 18.3 kB / 426.3 MB, free: 14.14 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.105e-05/0.2951, allocations: 23.42 kB / 426.3 MB, free: 14.12 MB / 350.1 MB Notification: Performance of SimCode: time 3.4e-07/0.2951, allocations: 0 / 426.3 MB, free: 14.12 MB / 350.1 MB Notification: Performance of Templates: time 0.009932/0.305, allocations: 5.49 MB / 431.8 MB, free: 8.633 MB / 350.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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/FluxTubes/Examples/BasicExamples/SaturatedInductor/SaturatedInductor.csv","/var/lib/jenkins/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