Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.Hysteresis.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.002013/0.002013, allocations: 113.7 kB / 19.17 MB, free: 3.871 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00198/0.00198, allocations: 205 kB / 22.12 MB, free: 0.9219 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.58/1.58, allocations: 230.3 MB / 255.2 MB, free: 15.21 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo): time 0.2779/0.2779, allocations: 46.92 MB / 358.2 MB, free: 10.5 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(ModelicaTest.Blocks.Hysteresis,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5014,variableFilter="time|hysteresis.y",fileNamePrefix="ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.Hysteresis") translateModel(ModelicaTest.Blocks.Hysteresis,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5014,variableFilter="time|hysteresis.y",fileNamePrefix="ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.Hysteresis") [Timeout 660] "Warning: Requested package Modelica of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.002331/0.002331, allocations: 79.86 kB / 0.4925 GB, free: 7.773 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1592/0.1616, allocations: 66.01 MB / 0.557 GB, free: 5.633 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Hysteresis): time 0.002986/0.1645, allocations: 1.463 MB / 0.5584 GB, free: 4.152 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009955/0.1655, allocations: 484.4 kB / 0.5588 GB, free: 3.676 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.036e-05/0.1656, allocations: 0 / 0.5588 GB, free: 3.676 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 3.147e-05/0.1656, allocations: 3.938 kB / 0.5588 GB, free: 3.672 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 5.14e-05/0.1657, allocations: 15.92 kB / 0.5589 GB, free: 3.656 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002396/0.1659, allocations: 27.91 kB / 0.5589 GB, free: 3.629 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001247/0.166, allocations: 39.86 kB / 0.5589 GB, free: 3.59 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.452e-05/0.1661, allocations: 0 / 0.5589 GB, free: 3.59 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001307/0.1663, allocations: 27.91 kB / 0.559 GB, free: 3.562 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.591e-05/0.1663, allocations: 19.86 kB / 0.559 GB, free: 3.543 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 1.527e-05/0.1663, allocations: 4 kB / 0.559 GB, free: 3.539 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.276e-05/0.1664, allocations: 8 kB / 0.559 GB, free: 3.531 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 1.338e-05/0.1664, allocations: 3.984 kB / 0.559 GB, free: 3.527 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 3.427e-05/0.1664, allocations: 23.92 kB / 0.559 GB, free: 3.504 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001244/0.1666, allocations: 39.83 kB / 0.5591 GB, free: 3.465 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.637e-06/0.1666, allocations: 0 / 0.5591 GB, free: 3.465 MB / 414.1 MB Notification: Performance of FrontEnd: time 2.024e-06/0.1666, allocations: 0 / 0.5591 GB, free: 3.465 MB / 414.1 MB Notification: Performance of Transformations before backend: time 1.009e-05/0.1666, allocations: 3.938 kB / 0.5591 GB, free: 3.461 MB / 414.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3 * Number of variables: 3 Notification: Performance of Generate backend data structure: time 0.0005224/0.1671, allocations: 351.3 kB / 0.5594 GB, free: 3.07 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.862e-05/0.1671, allocations: 8.031 kB / 0.5594 GB, free: 3.062 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001624/0.1673, allocations: 12.92 kB / 0.5594 GB, free: 3.051 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002264/0.1675, allocations: 180.3 kB / 0.5596 GB, free: 2.836 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.578e-06/0.1675, allocations: 384 / 0.5596 GB, free: 2.836 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.691e-05/0.1676, allocations: 8.375 kB / 0.5596 GB, free: 2.828 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001815/0.1677, allocations: 59.7 kB / 0.5596 GB, free: 2.758 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.145e-06/0.1677, allocations: 0 / 0.5596 GB, free: 2.758 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.171e-05/0.1678, allocations: 0 / 0.5596 GB, free: 2.758 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.596e-06/0.1678, allocations: 4 kB / 0.5597 GB, free: 2.754 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.335e-05/0.1679, allocations: 19.98 kB / 0.5597 GB, free: 2.734 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004604/0.1683, allocations: 280.8 kB / 0.5599 GB, free: 2.41 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.799e-05/0.1684, allocations: 26.58 kB / 0.56 GB, free: 2.375 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.511e-05/0.1685, allocations: 16.91 kB / 0.56 GB, free: 2.355 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.435e-05/0.1685, allocations: 0 / 0.56 GB, free: 2.355 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.148e-05/0.1685, allocations: 38.56 kB / 0.56 GB, free: 2.309 MB / 414.1 MB Notification: Performance of pre-optimization done (n=2): time 7.12e-07/0.1685, allocations: 0 / 0.56 GB, free: 2.309 MB / 414.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002477/0.1688, allocations: 61.61 kB / 0.5601 GB, free: 2.242 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.1e-05/0.1688, allocations: 81.11 kB / 0.5602 GB, free: 2.145 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.747e-05/0.1689, allocations: 113.8 kB / 0.5603 GB, free: 2.023 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 2.006e-05/0.169, allocations: 29.7 kB / 0.5603 GB, free: 1.988 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.824e-05/0.169, allocations: 84.14 kB / 0.5604 GB, free: 1.902 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.175e-05/0.169, allocations: 12 kB / 0.5604 GB, free: 1.891 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.735e-05/0.1691, allocations: 17.72 kB / 0.5604 GB, free: 1.867 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001499/0.1692, allocations: 318.8 kB / 0.5607 GB, free: 1.547 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.063e-05/0.1693, allocations: 11.98 kB / 0.5607 GB, free: 1.535 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.833e-05/0.1693, allocations: 29.69 kB / 0.5607 GB, free: 1.5 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.817e-05/0.1694, allocations: 28.78 kB / 0.5608 GB, free: 1.469 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.783e-06/0.1694, allocations: 0 / 0.5608 GB, free: 1.469 MB / 414.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001275/0.1695, allocations: 61.66 kB / 0.5608 GB, free: 1.402 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.573e-05/0.1696, allocations: 4 kB / 0.5608 GB, free: 1.398 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.624e-06/0.1696, allocations: 4 kB / 0.5608 GB, free: 1.395 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.307e-05/0.1696, allocations: 0 / 0.5608 GB, free: 1.395 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.024e-05/0.1697, allocations: 7.922 kB / 0.5608 GB, free: 1.387 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.324e-06/0.1697, allocations: 4 kB / 0.5608 GB, free: 1.383 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.812e-05/0.1697, allocations: 11.94 kB / 0.5609 GB, free: 1.371 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.081e-06/0.1697, allocations: 0 / 0.5609 GB, free: 1.371 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 2 (hysteresis.y,$PRE.hysteresis.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (3): * Single equations (assignments): 3 * 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 prepare postOptimizeDAE: time 0.0001057/0.1698, allocations: 121.8 kB / 0.561 GB, free: 1.242 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.396e-05/0.1699, allocations: 0 / 0.561 GB, free: 1.242 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.108e-05/0.1699, allocations: 11.53 kB / 0.561 GB, free: 1.23 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.372e-06/0.1699, allocations: 0 / 0.561 GB, free: 1.23 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.117e-06/0.1699, allocations: 0 / 0.561 GB, free: 1.23 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.936e-06/0.1699, allocations: 0 / 0.561 GB, free: 1.23 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001816/0.1701, allocations: 165.6 kB / 0.5611 GB, free: 1.02 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.72e-07/0.1701, allocations: 0 / 0.5611 GB, free: 1.02 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.929e-05/0.1701, allocations: 7.984 kB / 0.5611 GB, free: 1.012 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.472e-06/0.1701, allocations: 0 / 0.5611 GB, free: 1.012 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.055e-06/0.1701, allocations: 7.938 kB / 0.5612 GB, free: 1.004 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.011e-06/0.1701, allocations: 0 / 0.5612 GB, free: 1.004 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.41e-07/0.1701, allocations: 0 / 0.5612 GB, free: 1.004 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002032/0.1703, allocations: 155.4 kB / 0.5613 GB, free: 0.8359 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.295e-05/0.1704, allocations: 81.48 kB / 0.5614 GB, free: 0.7383 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.745e-05/0.1704, allocations: 0 / 0.5614 GB, free: 0.7383 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.103e-05/0.1705, allocations: 16.02 kB / 0.5614 GB, free: 0.7227 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.276e-05/0.1706, allocations: 4 kB / 0.5614 GB, free: 0.7188 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.482e-06/0.1706, allocations: 7.922 kB / 0.5614 GB, free: 0.7109 MB / 414.1 MB Notification: Performance of sorting global known variables: time 6.116e-05/0.1706, allocations: 87.28 kB / 0.5615 GB, free: 0.625 MB / 414.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1706, allocations: 0 / 0.5615 GB, free: 0.625 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0002206/0.1708, allocations: 12 kB / 0.5615 GB, free: 0.6133 MB / 414.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: 1 (hysteresis.y) * Number of discrete states: 1 (hysteresis.y) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (2): * Single equations (assignments): 2 * 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.0001125/0.171, allocations: 91.25 kB / 0.5616 GB, free: 0.5156 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0001643/0.1711, allocations: 31.91 kB / 0.5616 GB, free: 496 kB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.914e-06/0.1711, allocations: 4 kB / 0.5616 GB, free: 492 kB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 4.889e-05/0.1712, allocations: 12 kB / 0.5616 GB, free: 480 kB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000219/0.1714, allocations: 7.531 kB / 0.5616 GB, free: 476 kB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003482/0.1717, allocations: 156.4 kB / 0.5618 GB, free: 284 kB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000369/0.1721, allocations: 0.6807 MB / 0.5625 GB, free: 15.57 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.545e-05/0.1721, allocations: 7.438 kB / 0.5625 GB, free: 15.56 MB / 430.1 MB Notification: Performance of SimCode: time 3.3e-07/0.1721, allocations: 8 kB / 0.5625 GB, free: 15.55 MB / 430.1 MB Notification: Performance of Templates: time 0.002265/0.1744, allocations: 0.6743 MB / 0.5631 GB, free: 14.88 MB / 430.1 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.Hysteresis.makefile [Timeout 660] (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.Hysteresis.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.Hysteresis.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.Hysteresis.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.Hysteresis.sim & ./ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.Hysteresis -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.Hysteresis.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.Hysteresis_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Blocks/Hysteresis/Hysteresis.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.Hysteresis.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 7.534323119994951]