Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Electrical.Analog.TestSaturatingInductor.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: translateModel(ModelicaTest.Electrical.Analog.TestSaturatingInductor,tolerance=1e-05,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|saturatingInductor.Psi|saturatingInductor.i",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Electrical.Analog.TestSaturatingInductor") translateModel(ModelicaTest.Electrical.Analog.TestSaturatingInductor,tolerance=1e-05,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|saturatingInductor.Psi|saturatingInductor.i",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Electrical.Analog.TestSaturatingInductor") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001612/0.001612, allocations: 174.2 kB / 17.41 MB, free: 4.41 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.472/1.472, allocations: 225.7 MB / 243.9 MB, free: 8.453 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009874/0.0009872, allocations: 90.34 kB / 295 MB, free: 9.492 MB / 234.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.3531/0.3531, allocations: 44.33 MB / 390.5 MB, free: 38.09 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003245/0.0003245, allocations: 8 kB / 463.1 MB, free: 476 kB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3665/0.3669, allocations: 61.9 MB / 0.5127 GB, free: 37.97 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.Analog.TestSaturatingInductor): time 0.00191/0.3689, allocations: 1.572 MB / 0.5143 GB, free: 36.84 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006876/0.3696, allocations: 0.5084 MB / 0.5148 GB, free: 36.48 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.965e-05/0.3696, allocations: 2.812 kB / 0.5148 GB, free: 36.48 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 3.109e-05/0.3697, allocations: 14.59 kB / 0.5148 GB, free: 36.47 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001898/0.3699, allocations: 28.58 kB / 0.5148 GB, free: 36.46 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002203/0.3701, allocations: 78.44 kB / 0.5149 GB, free: 36.41 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001297/0.3702, allocations: 147.8 kB / 0.515 GB, free: 36.34 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001247/0.3704, allocations: 27.05 kB / 0.5151 GB, free: 36.32 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001451/0.3705, allocations: 59.72 kB / 0.5151 GB, free: 36.3 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 8.052e-05/0.3706, allocations: 59.59 kB / 0.5152 GB, free: 36.27 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 2.781e-05/0.3706, allocations: 6.312 kB / 0.5152 GB, free: 36.27 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.106e-05/0.3707, allocations: 7.688 kB / 0.5152 GB, free: 36.27 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 2.845e-05/0.3707, allocations: 25.83 kB / 0.5152 GB, free: 36.26 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 7.192e-05/0.3708, allocations: 81.03 kB / 0.5153 GB, free: 36.2 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001483/0.3709, allocations: 133.7 kB / 0.5154 GB, free: 36.16 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.859e-06/0.3709, allocations: 0 / 0.5154 GB, free: 36.16 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.124e-06/0.371, allocations: 0 / 0.5154 GB, free: 36.16 MB / 378.7 MB Notification: Performance of Transformations before backend: time 5.831e-06/0.371, allocations: 0 / 0.5154 GB, free: 36.16 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 17 * Number of variables: 17 Notification: Performance of Generate backend data structure: time 0.0006305/0.3716, allocations: 434.2 kB / 0.5158 GB, free: 35.77 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.307e-05/0.3716, allocations: 8.594 kB / 0.5158 GB, free: 35.77 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.194e-05/0.3717, allocations: 17.25 kB / 0.5158 GB, free: 35.76 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001256/0.3718, allocations: 187 kB / 0.516 GB, free: 35.55 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.517e-05/0.3718, allocations: 3.031 kB / 0.516 GB, free: 35.55 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.338e-05/0.3719, allocations: 10.34 kB / 0.516 GB, free: 35.54 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002924/0.3722, allocations: 156.7 kB / 0.5162 GB, free: 35.45 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.141e-05/0.3722, allocations: 0 / 0.5162 GB, free: 35.45 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.86e-05/0.3722, allocations: 4 kB / 0.5162 GB, free: 35.44 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.402e-06/0.3722, allocations: 7.031 kB / 0.5162 GB, free: 35.44 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002967/0.3725, allocations: 106.3 kB / 0.5163 GB, free: 35.41 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006788/0.3732, allocations: 462.3 kB / 0.5167 GB, free: 35.04 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002709/0.3735, allocations: 96.84 kB / 0.5168 GB, free: 34.99 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001353/0.3736, allocations: 50.41 kB / 0.5169 GB, free: 34.97 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.586e-05/0.3737, allocations: 0 / 0.5169 GB, free: 34.97 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.37e-05/0.3737, allocations: 32.97 kB / 0.5169 GB, free: 34.93 MB / 378.7 MB Notification: Performance of pre-optimization done (n=4): time 9.92e-07/0.3737, allocations: 0 / 0.5169 GB, free: 34.93 MB / 378.7 MB Notification: Performance of matching and sorting (n=6): time 0.001234/0.3749, allocations: 366.2 kB / 0.5173 GB, free: 34.82 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.502e-05/0.375, allocations: 110.2 kB / 0.5174 GB, free: 34.7 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001089/0.3751, allocations: 140.3 kB / 0.5175 GB, free: 34.59 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 1.508e-05/0.3751, allocations: 34.58 kB / 0.5175 GB, free: 34.55 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.181e-05/0.3752, allocations: 110.3 kB / 0.5176 GB, free: 34.44 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.018e-05/0.3752, allocations: 24.44 kB / 0.5177 GB, free: 34.42 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.905e-06/0.3752, allocations: 0 / 0.5177 GB, free: 34.42 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 5.445e-05/0.3753, allocations: 323.5 kB / 0.518 GB, free: 34.1 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002301/0.3755, allocations: 71.78 kB / 0.518 GB, free: 34.09 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002386/0.3758, allocations: 106.5 kB / 0.5181 GB, free: 34.03 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004179/0.3762, allocations: 153.6 kB / 0.5183 GB, free: 33.97 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.42e-07/0.3762, allocations: 1.469 kB / 0.5183 GB, free: 33.97 MB / 378.7 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0004944/0.3767, allocations: 201.6 kB / 0.5185 GB, free: 33.89 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.74e-05/0.3767, allocations: 9.203 kB / 0.5185 GB, free: 33.89 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.719e-06/0.3767, allocations: 1.188 kB / 0.5185 GB, free: 33.89 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.33e-05/0.3768, allocations: 1.125 kB / 0.5185 GB, free: 33.89 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005757/0.3773, allocations: 96.42 kB / 0.5186 GB, free: 33.88 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001047/0.3784, allocations: 1.402 MB / 0.52 GB, free: 32.48 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002156/0.3786, allocations: 37.66 kB / 0.52 GB, free: 32.47 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.445e-05/0.3786, allocations: 8.047 kB / 0.52 GB, free: 32.46 MB / 378.7 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 (9): * Single equations (assignments): 8 * 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 7.906e-05/0.3787, allocations: 124 kB / 0.5201 GB, free: 32.34 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.234e-05/0.3788, allocations: 13.56 kB / 0.5201 GB, free: 32.33 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004994/0.3793, allocations: 185.4 kB / 0.5203 GB, free: 32.26 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.984e-06/0.3793, allocations: 1.344 kB / 0.5203 GB, free: 32.26 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.663e-06/0.3793, allocations: 1.219 kB / 0.5203 GB, free: 32.26 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.657e-06/0.3793, allocations: 4.703 kB / 0.5203 GB, free: 32.26 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006887/0.38, allocations: 485.6 kB / 0.5208 GB, free: 31.9 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.633e-06/0.38, allocations: 3.938 kB / 0.5208 GB, free: 31.9 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001538/0.3802, allocations: 34.53 kB / 0.5208 GB, free: 31.89 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.884e-06/0.3802, allocations: 3.938 kB / 0.5208 GB, free: 31.89 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.222e-05/0.3802, allocations: 4 kB / 0.5208 GB, free: 31.89 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.908e-06/0.3802, allocations: 6.828 kB / 0.5208 GB, free: 31.89 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.264e-06/0.3802, allocations: 3.984 kB / 0.5208 GB, free: 31.88 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004685/0.3807, allocations: 275.6 kB / 0.5211 GB, free: 31.71 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.043e-05/0.3807, allocations: 83.83 kB / 0.5212 GB, free: 31.61 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.011e-05/0.3808, allocations: 0 / 0.5212 GB, free: 31.61 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001943/0.381, allocations: 27.45 kB / 0.5212 GB, free: 31.61 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.619e-05/0.381, allocations: 10.33 kB / 0.5212 GB, free: 31.61 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.925e-06/0.381, allocations: 6.781 kB / 0.5212 GB, free: 31.61 MB / 378.7 MB Notification: Performance of sorting global known variables: time 6.14e-05/0.3811, allocations: 113.2 kB / 0.5213 GB, free: 31.52 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.31e-07/0.3811, allocations: 0 / 0.5213 GB, free: 31.52 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.000233/0.3813, allocations: 28.69 kB / 0.5213 GB, free: 31.52 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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 simulation (7): * Single equations (assignments): 7 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 9.597e-05/0.3814, allocations: 105.3 kB / 0.5214 GB, free: 31.43 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0008035/0.3823, allocations: 200.8 kB / 0.5216 GB, free: 31.39 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.315e-06/0.3823, allocations: 0 / 0.5216 GB, free: 31.39 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002103/0.3825, allocations: 74.98 kB / 0.5217 GB, free: 31.38 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002934/0.3828, allocations: 9.812 kB / 0.5217 GB, free: 31.37 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001165/0.384, allocations: 431.3 kB / 0.5221 GB, free: 31.15 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001279/0.3841, allocations: 0.7032 MB / 0.5228 GB, free: 30.45 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 7.135e-05/0.3842, allocations: 17.22 kB / 0.5228 GB, free: 30.44 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.024e-05/0.3842, allocations: 16.25 kB / 0.5228 GB, free: 30.43 MB / 378.7 MB Notification: Performance of SimCode: time 1.543e-06/0.3842, allocations: 0 / 0.5228 GB, free: 30.43 MB / 378.7 MB Notification: Performance of Templates: time 0.003628/0.3879, allocations: 1.536 MB / 0.5244 GB, free: 30.3 MB / 378.7 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Electrical.Analog.TestSaturatingInductor.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Electrical.Analog.TestSaturatingInductor.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Electrical.Analog.TestSaturatingInductor.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Electrical.Analog.TestSaturatingInductor.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Electrical.Analog.TestSaturatingInductor.sim & ./ModelicaTest_4.0.0_ModelicaTest.Electrical.Analog.TestSaturatingInductor -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Electrical.Analog.TestSaturatingInductor.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Electrical.Analog.TestSaturatingInductor_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Electrical/Analog/TestSaturatingInductor/TestSaturatingInductor.csv","../files/ModelicaTest_4.0.0_ModelicaTest.Electrical.Analog.TestSaturatingInductor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches