Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor.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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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.Electrical.Analog.Examples.ShowSaturatingInductor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1256,variableFilter="time|Inductance1.i|SaturatingInductance1.Psi",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor") translateModel(Modelica.Electrical.Analog.Examples.ShowSaturatingInductor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1256,variableFilter="time|Inductance1.i|SaturatingInductance1.Psi",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001861/0.001861, allocations: 102 kB / 18.4 MB, free: 4.66 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.00205/0.00205, allocations: 190.5 kB / 19.33 MB, free: 3.738 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.665/1.665, allocations: 205.1 MB / 225.2 MB, free: 12.2 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001441/0.001441, allocations: 51.94 kB / 329.2 MB, free: 3.297 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1145/0.1159, allocations: 46.62 MB / 375.8 MB, free: 4.566 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ShowSaturatingInductor): time 0.003823/0.1198, allocations: 1.988 MB / 377.8 MB, free: 2.566 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001225/0.121, allocations: 0.624 MB / 378.4 MB, free: 1.934 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001436/0.1212, allocations: 4 kB / 378.4 MB, free: 1.93 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 7.039e-05/0.1213, allocations: 15.8 kB / 378.5 MB, free: 1.914 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001967/0.1215, allocations: 43.62 kB / 378.5 MB, free: 1.871 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004009/0.1219, allocations: 99.75 kB / 378.6 MB, free: 1.773 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002669/0.1222, allocations: 183.3 kB / 378.8 MB, free: 1.594 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001731/0.1224, allocations: 53.47 kB / 378.8 MB, free: 1.539 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002256/0.1226, allocations: 83.69 kB / 378.9 MB, free: 1.457 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001193/0.1228, allocations: 71.69 kB / 379 MB, free: 1.387 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 5.39e-05/0.1228, allocations: 16 kB / 379 MB, free: 1.371 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.319e-05/0.1229, allocations: 20 kB / 379 MB, free: 1.352 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 4.351e-05/0.1229, allocations: 39.83 kB / 379.1 MB, free: 1.312 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 9.817e-05/0.123, allocations: 79.59 kB / 379.1 MB, free: 1.234 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002095/0.1232, allocations: 159.5 kB / 379.3 MB, free: 1.078 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.725e-06/0.1232, allocations: 0 / 379.3 MB, free: 1.078 MB / 318.1 MB Notification: Performance of FrontEnd: time 3.677e-06/0.1233, allocations: 11.92 kB / 379.3 MB, free: 1.066 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.622e-06/0.1233, allocations: 0 / 379.3 MB, free: 1.066 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: 23 * Number of variables: 23 Notification: Performance of Generate backend data structure: time 0.0008834/0.1242, allocations: 470.7 kB / 379.8 MB, free: 0.5586 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.233e-05/0.1242, allocations: 15.89 kB / 379.8 MB, free: 0.543 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.955e-05/0.1243, allocations: 16.75 kB / 379.8 MB, free: 0.5273 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002094/0.1245, allocations: 204 kB / 380 MB, free: 296 kB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.133e-05/0.1245, allocations: 8.375 kB / 380 MB, free: 288 kB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.495e-05/0.1246, allocations: 4.375 kB / 380 MB, free: 284 kB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003624/0.1249, allocations: 164.3 kB / 380.2 MB, free: 104 kB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.585e-05/0.125, allocations: 0 / 380.2 MB, free: 104 kB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.098e-05/0.125, allocations: 4 kB / 380.2 MB, free: 100 kB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.492e-06/0.125, allocations: 4 kB / 380.2 MB, free: 96 kB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002974/0.1253, allocations: 95.94 kB / 380.3 MB, free: 0 / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.247/0.3724, allocations: 0.4946 MB / 380.8 MB, free: 12.91 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003247/0.3727, allocations: 105.5 kB / 380.9 MB, free: 12.89 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002088/0.373, allocations: 65.7 kB / 380.9 MB, free: 12.88 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.54e-05/0.373, allocations: 5.062 kB / 380.9 MB, free: 12.88 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.872e-05/0.373, allocations: 37.27 kB / 381 MB, free: 12.84 MB / 318.1 MB Notification: Performance of pre-optimization done (n=7): time 2.545e-06/0.373, allocations: 0 / 381 MB, free: 12.84 MB / 318.1 MB Notification: Performance of matching and sorting (n=7): time 0.0005409/0.3736, allocations: 141.4 kB / 381.1 MB, free: 12.81 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.212e-05/0.3737, allocations: 116.9 kB / 381.2 MB, free: 12.68 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001516/0.3738, allocations: 153.2 kB / 381.4 MB, free: 12.59 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.841e-05/0.3738, allocations: 29.73 kB / 381.4 MB, free: 12.55 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.687e-05/0.3739, allocations: 125.5 kB / 381.5 MB, free: 12.46 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.98e-05/0.374, allocations: 25.89 kB / 381.5 MB, free: 12.45 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.694e-05/0.374, allocations: 31.08 kB / 381.6 MB, free: 12.43 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 9.119e-05/0.3741, allocations: 320.3 kB / 381.9 MB, free: 12.12 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001393/0.3743, allocations: 40.89 kB / 381.9 MB, free: 12.12 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001694/0.3745, allocations: 77.73 kB / 382 MB, free: 12.08 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002567/0.3747, allocations: 107.9 kB / 382.1 MB, free: 12.05 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.455e-06/0.3747, allocations: 1.438 kB / 382.1 MB, free: 12.05 MB / 318.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003305/0.3751, allocations: 142.2 kB / 382.3 MB, free: 12.02 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.06e-05/0.3751, allocations: 10.44 kB / 382.3 MB, free: 12.02 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.893e-06/0.3751, allocations: 1.375 kB / 382.3 MB, free: 12.02 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.759e-05/0.3751, allocations: 1.375 kB / 382.3 MB, free: 12.02 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000601/0.3758, allocations: 82.44 kB / 382.3 MB, free: 12.02 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001231/0.377, allocations: 1.508 MB / 383.9 MB, free: 10.57 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001684/0.3772, allocations: 25.81 kB / 383.9 MB, free: 10.56 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.382e-05/0.3772, allocations: 4.266 kB / 383.9 MB, free: 10.56 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * 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 (11): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001/0.3773, allocations: 126.6 kB / 384 MB, free: 10.45 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.055e-05/0.3774, allocations: 12.84 kB / 384 MB, free: 10.44 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004499/0.3778, allocations: 156.8 kB / 384.2 MB, free: 10.4 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.088e-06/0.3778, allocations: 3.5 kB / 384.2 MB, free: 10.4 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.112e-06/0.3778, allocations: 4.312 kB / 384.2 MB, free: 10.4 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.55e-06/0.3779, allocations: 1.156 kB / 384.2 MB, free: 10.4 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007602/0.3786, allocations: 461.8 kB / 384.6 MB, free: 10.08 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.708e-06/0.3786, allocations: 4.406 kB / 384.6 MB, free: 10.08 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001665/0.3788, allocations: 28.25 kB / 384.7 MB, free: 10.08 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002316/0.3791, allocations: 29.08 kB / 384.7 MB, free: 10.07 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.514e-05/0.3791, allocations: 6.062 kB / 384.7 MB, free: 10.07 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009296/0.38, allocations: 1.395 MB / 386.1 MB, free: 8.715 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.196e-06/0.38, allocations: 2.297 kB / 386.1 MB, free: 8.715 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006264/0.3807, allocations: 300.9 kB / 386.4 MB, free: 8.531 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.388e-05/0.3807, allocations: 89.66 kB / 386.5 MB, free: 8.434 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.404e-05/0.3807, allocations: 6.125 kB / 386.5 MB, free: 8.434 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001637/0.3809, allocations: 17.05 kB / 386.5 MB, free: 8.43 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.509e-05/0.381, allocations: 14.39 kB / 386.5 MB, free: 8.422 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.606e-06/0.381, allocations: 3.5 kB / 386.5 MB, free: 8.422 MB / 318.1 MB Notification: Performance of sorting global known variables: time 9.044e-05/0.3811, allocations: 119.5 kB / 386.6 MB, free: 8.336 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.3811, allocations: 0 / 386.6 MB, free: 8.336 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003181/0.3814, allocations: 36 kB / 386.7 MB, free: 8.332 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (SaturatingInductance1.Psi,Inductance1.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 (7): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,1)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001333/0.3816, allocations: 101.5 kB / 386.8 MB, free: 8.242 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0007095/0.3823, allocations: 132.9 kB / 386.9 MB, free: 8.219 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.415e-06/0.3823, allocations: 0 / 386.9 MB, free: 8.219 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003308/0.3826, allocations: 173.4 kB / 387.1 MB, free: 8.086 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00027/0.3829, allocations: 12.34 kB / 387.1 MB, free: 8.078 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001589/0.3845, allocations: 0.5541 MB / 387.6 MB, free: 7.762 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001862/0.3847, allocations: 0.7123 MB / 388.3 MB, free: 7.062 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.041e-05/0.3848, allocations: 18.58 kB / 388.4 MB, free: 7.055 MB / 318.1 MB Notification: Performance of SimCode: time 3.21e-07/0.3848, allocations: 4 kB / 388.4 MB, free: 7.051 MB / 318.1 MB Notification: Performance of Templates: time 0.005249/0.39, allocations: 2.213 MB / 390.6 MB, free: 6.895 MB / 318.1 MB make -j1 -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor.makefile (rm -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor.sim & ./Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Analog/Examples/ShowSaturatingInductor/ShowSaturatingInductor.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches