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.001586/0.001586, allocations: 107.6 kB / 17.21 MB, free: 6.289 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.001694/0.001694, allocations: 194 kB / 18.12 MB, free: 5.383 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.435/1.435, allocations: 222.9 MB / 241.8 MB, free: 15.45 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.2261/0.2261, allocations: 44.18 MB / 336.1 MB, free: 2.996 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001995/0.001996, allocations: 64.92 kB / 407.7 MB, free: 27.72 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.156/0.158, allocations: 60.83 MB / 468.5 MB, free: 14.86 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.Analog.TestSaturatingInductor): time 0.00365/0.1617, allocations: 1.948 MB / 470.5 MB, free: 12.89 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001141/0.1629, allocations: 0.5339 MB / 471 MB, free: 12.35 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001179/0.163, allocations: 0 / 471 MB, free: 12.35 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 8.469e-05/0.1631, allocations: 11.92 kB / 471 MB, free: 12.34 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002611/0.1634, allocations: 31.77 kB / 471 MB, free: 12.31 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003318/0.1637, allocations: 75.66 kB / 471.1 MB, free: 12.24 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002071/0.164, allocations: 143.4 kB / 471.3 MB, free: 12.1 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001461/0.1641, allocations: 36.95 kB / 471.3 MB, free: 12.06 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002093/0.1643, allocations: 59.78 kB / 471.4 MB, free: 12 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001257/0.1645, allocations: 67.67 kB / 471.4 MB, free: 11.93 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.237e-05/0.1645, allocations: 8 kB / 471.4 MB, free: 11.93 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.782e-05/0.1646, allocations: 8 kB / 471.4 MB, free: 11.92 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 4.051e-05/0.1646, allocations: 19.92 kB / 471.5 MB, free: 11.9 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 7.539e-05/0.1647, allocations: 55.72 kB / 471.5 MB, free: 11.84 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001766/0.1649, allocations: 135.8 kB / 471.6 MB, free: 11.71 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.63e-06/0.1649, allocations: 4 kB / 471.6 MB, free: 11.71 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.735e-06/0.1649, allocations: 0 / 471.6 MB, free: 11.71 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.18e-06/0.1649, allocations: 3.938 kB / 471.6 MB, free: 11.7 MB / 350.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.0009302/0.1658, allocations: 455 kB / 472.1 MB, free: 11.21 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.647e-05/0.1659, allocations: 8.031 kB / 472.1 MB, free: 11.2 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.956e-05/0.166, allocations: 16.75 kB / 472.1 MB, free: 11.19 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002043/0.1662, allocations: 184.2 kB / 472.3 MB, free: 10.97 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.097e-05/0.1662, allocations: 12.38 kB / 472.3 MB, free: 10.96 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.124e-05/0.1662, allocations: 4.375 kB / 472.3 MB, free: 10.95 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003726/0.1666, allocations: 146.4 kB / 472.5 MB, free: 10.8 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.218e-05/0.1666, allocations: 0 / 472.5 MB, free: 10.8 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.038e-05/0.1667, allocations: 4 kB / 472.5 MB, free: 10.79 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.352e-06/0.1667, allocations: 7.938 kB / 472.5 MB, free: 10.79 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003488/0.167, allocations: 95.91 kB / 472.6 MB, free: 10.69 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009167/0.168, allocations: 459.3 kB / 473 MB, free: 10.18 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003202/0.1683, allocations: 90.52 kB / 473.1 MB, free: 10.09 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001635/0.1685, allocations: 40.92 kB / 473.1 MB, free: 10.04 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.964e-05/0.1685, allocations: 0 / 473.1 MB, free: 10.04 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.462e-05/0.1686, allocations: 38.5 kB / 473.2 MB, free: 9.996 MB / 350.1 MB Notification: Performance of pre-optimization done (n=4): time 9.82e-07/0.1686, allocations: 3.938 kB / 473.2 MB, free: 9.992 MB / 350.1 MB Notification: Performance of matching and sorting (n=6): time 0.001451/0.17, allocations: 313.2 kB / 473.5 MB, free: 9.68 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.907e-05/0.1701, allocations: 110.8 kB / 473.6 MB, free: 9.547 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001367/0.1703, allocations: 144.2 kB / 473.7 MB, free: 9.398 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.202e-05/0.1703, allocations: 29.7 kB / 473.8 MB, free: 9.363 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.09e-05/0.1704, allocations: 112.1 kB / 473.9 MB, free: 9.246 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.568e-05/0.1704, allocations: 23.64 kB / 473.9 MB, free: 9.223 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.894e-05/0.1705, allocations: 25.7 kB / 473.9 MB, free: 9.191 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001385/0.1707, allocations: 318.8 kB / 474.2 MB, free: 8.871 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002389/0.1709, allocations: 63.94 kB / 474.3 MB, free: 8.809 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002603/0.1712, allocations: 92.23 kB / 474.4 MB, free: 8.703 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004595/0.1716, allocations: 142.4 kB / 474.5 MB, free: 8.555 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.352e-06/0.1717, allocations: 0 / 474.5 MB, free: 8.555 MB / 350.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0005396/0.1722, allocations: 173.4 kB / 474.7 MB, free: 8.379 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.055e-05/0.1722, allocations: 11.94 kB / 474.7 MB, free: 8.367 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.841e-06/0.1722, allocations: 0 / 474.7 MB, free: 8.367 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.29e-05/0.1723, allocations: 0 / 474.7 MB, free: 8.367 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006527/0.1729, allocations: 87.97 kB / 474.8 MB, free: 8.281 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001586/0.1745, allocations: 1.401 MB / 476.2 MB, free: 6.746 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002383/0.1748, allocations: 31.91 kB / 476.2 MB, free: 6.715 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.394e-05/0.1748, allocations: 0 / 476.2 MB, free: 6.715 MB / 350.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.0001207/0.1749, allocations: 133.9 kB / 476.4 MB, free: 6.574 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.394e-05/0.175, allocations: 8.188 kB / 476.4 MB, free: 6.566 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005203/0.1755, allocations: 170.2 kB / 476.5 MB, free: 6.395 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.381e-06/0.1755, allocations: 3.984 kB / 476.5 MB, free: 6.391 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.876e-06/0.1755, allocations: 0 / 476.5 MB, free: 6.391 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.887e-06/0.1755, allocations: 3.938 kB / 476.5 MB, free: 6.387 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009025/0.1764, allocations: 466.4 kB / 477 MB, free: 5.875 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.23e-06/0.1765, allocations: 0 / 477 MB, free: 5.875 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001789/0.1766, allocations: 31.91 kB / 477 MB, free: 5.844 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.168e-06/0.1767, allocations: 0 / 477 MB, free: 5.844 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.734e-05/0.1767, allocations: 4 kB / 477 MB, free: 5.84 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.839e-06/0.1767, allocations: 3.984 kB / 477 MB, free: 5.836 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.062e-06/0.1767, allocations: 3.938 kB / 477 MB, free: 5.832 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007472/0.1775, allocations: 247.3 kB / 477.3 MB, free: 5.574 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.783e-05/0.1775, allocations: 85 kB / 477.4 MB, free: 5.473 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.762e-05/0.1776, allocations: 8.188 kB / 477.4 MB, free: 5.465 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002249/0.1778, allocations: 23.97 kB / 477.4 MB, free: 5.441 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.658e-05/0.1779, allocations: 7.938 kB / 477.4 MB, free: 5.434 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.278e-06/0.1779, allocations: 3.984 kB / 477.4 MB, free: 5.43 MB / 350.1 MB Notification: Performance of sorting global known variables: time 8.915e-05/0.178, allocations: 115.2 kB / 477.5 MB, free: 5.316 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.178, allocations: 0 / 477.5 MB, free: 5.316 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002865/0.1783, allocations: 28 kB / 477.5 MB, free: 5.289 MB / 350.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.0001029/0.1784, allocations: 99.78 kB / 477.6 MB, free: 5.184 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0009454/0.1793, allocations: 179.9 kB / 477.8 MB, free: 5.008 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.487e-06/0.1793, allocations: 0 / 477.8 MB, free: 5.008 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002343/0.1796, allocations: 60.36 kB / 477.9 MB, free: 4.949 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004152/0.18, allocations: 12 kB / 477.9 MB, free: 4.938 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001471/0.1815, allocations: 417.1 kB / 478.3 MB, free: 4.504 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002814/0.1818, allocations: 0.7004 MB / 479 MB, free: 3.777 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 8.87e-05/0.1819, allocations: 16.42 kB / 479 MB, free: 3.762 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.988e-05/0.182, allocations: 15.42 kB / 479 MB, free: 3.746 MB / 350.1 MB Notification: Performance of SimCode: time 9.91e-07/0.182, allocations: 0 / 479 MB, free: 3.746 MB / 350.1 MB Notification: Performance of Templates: time 0.005096/0.1871, allocations: 1.556 MB / 480.6 MB, free: 2.199 MB / 350.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