Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Electrical.Analog.TestSaturatingInductor.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) 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(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(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001417/0.001417, allocations: 110.4 kB / 17.78 MB, free: 5.27 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.00153/0.00153, allocations: 183.1 kB / 18.71 MB, free: 4.348 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.569/1.569, allocations: 222.9 MB / 242.4 MB, free: 15.08 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2209/0.2209, allocations: 44.19 MB / 336.8 MB, free: 2.672 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001331/0.001331, allocations: 59.91 kB / 470.5 MB, free: 13.2 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4509/0.4523, allocations: 60.82 MB / 0.5189 GB, free: 3.609 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.Analog.TestSaturatingInductor): time 0.00314/0.4555, allocations: 1.896 MB / 0.5207 GB, free: 2.285 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.000894/0.4564, allocations: 0.5402 MB / 0.5213 GB, free: 1.902 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.381e-05/0.4565, allocations: 2.406 kB / 0.5213 GB, free: 1.902 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 5.698e-05/0.4565, allocations: 12.89 kB / 0.5213 GB, free: 1.895 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000231/0.4568, allocations: 39.94 kB / 0.5213 GB, free: 1.867 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002516/0.457, allocations: 79.38 kB / 0.5214 GB, free: 1.824 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001994/0.4572, allocations: 155.6 kB / 0.5215 GB, free: 1.75 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001454/0.4574, allocations: 30.97 kB / 0.5216 GB, free: 1.734 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001815/0.4576, allocations: 73.62 kB / 0.5216 GB, free: 1.699 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001171/0.4577, allocations: 65.19 kB / 0.5217 GB, free: 1.668 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 3.545e-05/0.4577, allocations: 12.69 kB / 0.5217 GB, free: 1.668 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.61e-05/0.4578, allocations: 17.34 kB / 0.5217 GB, free: 1.664 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 4.257e-05/0.4578, allocations: 25.3 kB / 0.5218 GB, free: 1.648 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 8.272e-05/0.4579, allocations: 64.59 kB / 0.5218 GB, free: 1.609 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002247/0.4581, allocations: 137.5 kB / 0.5219 GB, free: 1.562 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.711e-06/0.4582, allocations: 3.938 kB / 0.5219 GB, free: 1.559 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.605e-06/0.4582, allocations: 0 / 0.5219 GB, free: 1.559 MB / 382.1 MB Notification: Performance of Transformations before backend: time 7.194e-06/0.4582, allocations: 0 / 0.5219 GB, free: 1.559 MB / 382.1 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.0007898/0.459, allocations: 448.9 kB / 0.5224 GB, free: 1.16 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.165e-05/0.459, allocations: 9.656 kB / 0.5224 GB, free: 1.16 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.126e-05/0.4591, allocations: 15.19 kB / 0.5224 GB, free: 1.152 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000146/0.4592, allocations: 187.8 kB / 0.5226 GB, free: 0.9414 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.71e-05/0.4593, allocations: 12.22 kB / 0.5226 GB, free: 0.9336 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.83e-05/0.4593, allocations: 6.188 kB / 0.5226 GB, free: 0.9336 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003719/0.4597, allocations: 148.6 kB / 0.5227 GB, free: 0.8398 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.789e-05/0.4597, allocations: 3.984 kB / 0.5227 GB, free: 0.8359 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.118e-05/0.4597, allocations: 5.094 kB / 0.5227 GB, free: 0.832 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.043e-05/0.4597, allocations: 3.203 kB / 0.5228 GB, free: 0.832 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003492/0.4601, allocations: 95.61 kB / 0.5228 GB, free: 0.8086 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008483/0.461, allocations: 449.8 kB / 0.5233 GB, free: 448 kB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002995/0.4613, allocations: 92.36 kB / 0.5234 GB, free: 404 kB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001469/0.4614, allocations: 40.25 kB / 0.5234 GB, free: 388 kB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.952e-05/0.4615, allocations: 5.875 kB / 0.5234 GB, free: 384 kB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.08e-05/0.4615, allocations: 35.56 kB / 0.5234 GB, free: 340 kB / 382.1 MB Notification: Performance of pre-optimization done (n=4): time 1.112e-06/0.4615, allocations: 0 / 0.5234 GB, free: 340 kB / 382.1 MB Notification: Performance of matching and sorting (n=6): time 0.001324/0.4628, allocations: 324.6 kB / 0.5237 GB, free: 228 kB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.77e-05/0.4629, allocations: 106.3 kB / 0.5238 GB, free: 100 kB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001346/0.463, allocations: 142.7 kB / 0.524 GB, free: 15.98 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.445e-05/0.4631, allocations: 30.83 kB / 0.524 GB, free: 15.95 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.447e-05/0.4632, allocations: 110 kB / 0.5241 GB, free: 15.84 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.543e-05/0.4632, allocations: 23.78 kB / 0.5241 GB, free: 15.82 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.212e-05/0.4632, allocations: 27.58 kB / 0.5242 GB, free: 15.8 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001321/0.4634, allocations: 318.8 kB / 0.5245 GB, free: 15.49 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002387/0.4636, allocations: 62.08 kB / 0.5245 GB, free: 15.47 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002444/0.4639, allocations: 93.48 kB / 0.5246 GB, free: 15.42 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004529/0.4643, allocations: 138.2 kB / 0.5248 GB, free: 15.36 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.052e-06/0.4644, allocations: 0 / 0.5248 GB, free: 15.36 MB / 398.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0005137/0.4649, allocations: 176 kB / 0.5249 GB, free: 15.29 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.915e-05/0.4649, allocations: 8.562 kB / 0.5249 GB, free: 15.29 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.769e-06/0.4649, allocations: 1.188 kB / 0.5249 GB, free: 15.29 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.742e-05/0.4649, allocations: 2.016 kB / 0.5249 GB, free: 15.29 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000565/0.4655, allocations: 92.33 kB / 0.525 GB, free: 15.28 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001454/0.467, allocations: 1.494 MB / 0.5265 GB, free: 13.77 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002105/0.4672, allocations: 40.16 kB / 0.5265 GB, free: 13.75 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.311e-05/0.4672, allocations: 3.484 kB / 0.5265 GB, free: 13.75 MB / 398.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 (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 0.0001185/0.4673, allocations: 119.2 kB / 0.5266 GB, free: 13.63 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.802e-05/0.4674, allocations: 10.17 kB / 0.5266 GB, free: 13.63 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004974/0.4679, allocations: 179.7 kB / 0.5268 GB, free: 13.55 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.084e-06/0.4679, allocations: 3.938 kB / 0.5268 GB, free: 13.55 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.031e-06/0.4679, allocations: 0 / 0.5268 GB, free: 13.55 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.908e-06/0.4679, allocations: 2.641 kB / 0.5268 GB, free: 13.55 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007929/0.4687, allocations: 457.4 kB / 0.5273 GB, free: 13.2 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.214e-06/0.4687, allocations: 0.75 kB / 0.5273 GB, free: 13.2 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001634/0.4689, allocations: 34.83 kB / 0.5273 GB, free: 13.19 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.783e-06/0.4689, allocations: 0 / 0.5273 GB, free: 13.19 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.219e-05/0.4689, allocations: 2.125 kB / 0.5273 GB, free: 13.19 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.216e-06/0.4689, allocations: 8.172 kB / 0.5273 GB, free: 13.18 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.406e-06/0.469, allocations: 5.438 kB / 0.5273 GB, free: 13.18 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005005/0.4695, allocations: 250.2 kB / 0.5275 GB, free: 13.01 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.317e-05/0.4695, allocations: 85.12 kB / 0.5276 GB, free: 12.91 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.895e-05/0.4695, allocations: 0 / 0.5276 GB, free: 12.91 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002071/0.4698, allocations: 31.22 kB / 0.5277 GB, free: 12.91 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.613e-05/0.4698, allocations: 5.047 kB / 0.5277 GB, free: 12.91 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.267e-06/0.4698, allocations: 2.125 kB / 0.5277 GB, free: 12.91 MB / 398.1 MB Notification: Performance of sorting global known variables: time 9.312e-05/0.4699, allocations: 114.8 kB / 0.5278 GB, free: 12.82 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.4699, allocations: 4 kB / 0.5278 GB, free: 12.82 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002743/0.4702, allocations: 26.12 kB / 0.5278 GB, free: 12.82 MB / 398.1 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 0.0001023/0.4703, allocations: 103 kB / 0.5279 GB, free: 12.72 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0008922/0.4712, allocations: 173.6 kB / 0.5281 GB, free: 12.67 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.544e-06/0.4712, allocations: 0 / 0.5281 GB, free: 12.67 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000221/0.4715, allocations: 59.64 kB / 0.5281 GB, free: 12.64 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000312/0.4718, allocations: 17.5 kB / 0.5281 GB, free: 12.63 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00128/0.4731, allocations: 382 kB / 0.5285 GB, free: 12.39 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003188/0.4734, allocations: 0.6991 MB / 0.5292 GB, free: 11.69 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 6.967e-05/0.4735, allocations: 12.5 kB / 0.5292 GB, free: 11.68 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.011e-05/0.4736, allocations: 20.48 kB / 0.5292 GB, free: 11.67 MB / 398.1 MB Notification: Performance of SimCode: time 2.7e-07/0.4736, allocations: 3.938 kB / 0.5292 GB, free: 11.66 MB / 398.1 MB Notification: Performance of Templates: time 0.004683/0.4782, allocations: 1.77 MB / 0.5309 GB, free: 10.75 MB / 398.1 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Electrical.Analog.TestSaturatingInductor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches