Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0_ModelicaTest.Blocks.Hysteresis.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001661/0.001661, allocations: 115.1 kB / 18.46 MB, free: 4.543 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002137/0.002137, allocations: 215.2 kB / 21.42 MB, free: 1.582 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.611/1.611, allocations: 230.6 MB / 254.8 MB, free: 15.09 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo): time 0.2396/0.2396, allocations: 46.93 MB / 357.8 MB, free: 10.31 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+maint.om/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(ModelicaTest.Blocks.Hysteresis,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5014,variableFilter="time|hysteresis.y",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.Blocks.Hysteresis") translateModel(ModelicaTest.Blocks.Hysteresis,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5014,variableFilter="time|hysteresis.y",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.Blocks.Hysteresis") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.00217/0.00217, allocations: 71.88 kB / 0.4921 GB, free: 7.477 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1457/0.1478, allocations: 66 MB / 0.5565 GB, free: 5.355 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Hysteresis): time 0.003303/0.1511, allocations: 1.457 MB / 0.5579 GB, free: 3.887 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.001069/0.1522, allocations: 0.4887 MB / 0.5584 GB, free: 3.395 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.987e-05/0.1523, allocations: 0 / 0.5584 GB, free: 3.395 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 3.295e-05/0.1523, allocations: 3.938 kB / 0.5584 GB, free: 3.391 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 5.798e-05/0.1524, allocations: 7.938 kB / 0.5584 GB, free: 3.383 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002671/0.1526, allocations: 31.83 kB / 0.5584 GB, free: 3.352 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001321/0.1528, allocations: 39.8 kB / 0.5585 GB, free: 3.312 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001179/0.1529, allocations: 8 kB / 0.5585 GB, free: 3.305 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001645/0.153, allocations: 23.97 kB / 0.5585 GB, free: 3.281 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.44e-05/0.1531, allocations: 15.92 kB / 0.5585 GB, free: 3.266 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 1.57e-05/0.1531, allocations: 4 kB / 0.5585 GB, free: 3.262 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.418e-05/0.1532, allocations: 4 kB / 0.5585 GB, free: 3.258 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 3.176e-05/0.1532, allocations: 15.92 kB / 0.5586 GB, free: 3.242 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 3.283e-05/0.1533, allocations: 11.94 kB / 0.5586 GB, free: 3.23 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001493/0.1534, allocations: 39.81 kB / 0.5586 GB, free: 3.191 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.757e-06/0.1534, allocations: 0 / 0.5586 GB, free: 3.191 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.212e-06/0.1534, allocations: 0 / 0.5586 GB, free: 3.191 MB / 414.1 MB Notification: Performance of Transformations before backend: time 5.661e-06/0.1534, allocations: 4 kB / 0.5586 GB, free: 3.188 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.0005898/0.154, allocations: 351.3 kB / 0.5589 GB, free: 2.797 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.217e-05/0.154, allocations: 11.97 kB / 0.559 GB, free: 2.785 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001977/0.1542, allocations: 16.86 kB / 0.559 GB, free: 2.77 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002853/0.1545, allocations: 176.3 kB / 0.5591 GB, free: 2.559 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.512e-06/0.1545, allocations: 384 / 0.5591 GB, free: 2.559 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.372e-05/0.1545, allocations: 4.375 kB / 0.5591 GB, free: 2.555 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000194/0.1547, allocations: 63.7 kB / 0.5592 GB, free: 2.48 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.029e-05/0.1548, allocations: 0 / 0.5592 GB, free: 2.48 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.13e-05/0.1548, allocations: 4 kB / 0.5592 GB, free: 2.477 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.847e-06/0.1548, allocations: 0 / 0.5592 GB, free: 2.477 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.951e-05/0.1549, allocations: 23.92 kB / 0.5592 GB, free: 2.453 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004511/0.1553, allocations: 264.8 kB / 0.5595 GB, free: 2.145 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.79e-05/0.1554, allocations: 30.58 kB / 0.5595 GB, free: 2.105 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.225e-05/0.1555, allocations: 20.91 kB / 0.5595 GB, free: 2.082 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.784e-05/0.1555, allocations: 0 / 0.5595 GB, free: 2.082 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.168e-05/0.1555, allocations: 30.56 kB / 0.5596 GB, free: 2.043 MB / 414.1 MB Notification: Performance of pre-optimization done (n=2): time 7.62e-07/0.1555, allocations: 0 / 0.5596 GB, free: 2.043 MB / 414.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002706/0.1558, allocations: 69.73 kB / 0.5596 GB, free: 1.969 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.216e-05/0.1559, allocations: 81.11 kB / 0.5597 GB, free: 1.871 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001147/0.156, allocations: 113.8 kB / 0.5598 GB, free: 1.75 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 1.895e-05/0.156, allocations: 25.7 kB / 0.5598 GB, free: 1.719 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.561e-05/0.1561, allocations: 88.08 kB / 0.5599 GB, free: 1.629 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.372e-05/0.1561, allocations: 11.94 kB / 0.5599 GB, free: 1.617 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.104e-05/0.1561, allocations: 17.7 kB / 0.56 GB, free: 1.594 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001592/0.1563, allocations: 314.8 kB / 0.5603 GB, free: 1.277 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.273e-05/0.1563, allocations: 15.98 kB / 0.5603 GB, free: 1.262 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.065e-05/0.1564, allocations: 29.7 kB / 0.5603 GB, free: 1.227 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.027e-05/0.1565, allocations: 32.72 kB / 0.5603 GB, free: 1.191 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.533e-06/0.1565, allocations: 0 / 0.5603 GB, free: 1.191 MB / 414.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001576/0.1566, allocations: 53.69 kB / 0.5604 GB, free: 1.133 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.55e-05/0.1567, allocations: 8 kB / 0.5604 GB, free: 1.125 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.308e-06/0.1567, allocations: 0 / 0.5604 GB, free: 1.125 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.497e-05/0.1567, allocations: 4.031 kB / 0.5604 GB, free: 1.121 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.185e-05/0.1568, allocations: 7.984 kB / 0.5604 GB, free: 1.113 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.07e-06/0.1568, allocations: 0 / 0.5604 GB, free: 1.113 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.173e-05/0.1568, allocations: 7.953 kB / 0.5604 GB, free: 1.105 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.175e-06/0.1568, allocations: 7.922 kB / 0.5604 GB, free: 1.098 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 9.143e-05/0.1569, allocations: 113.8 kB / 0.5605 GB, free: 0.9766 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.264e-05/0.157, allocations: 8 kB / 0.5605 GB, free: 0.9688 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.616e-05/0.157, allocations: 3.672 kB / 0.5605 GB, free: 0.9648 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.098e-06/0.157, allocations: 7.984 kB / 0.5605 GB, free: 0.957 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.178e-06/0.157, allocations: 0 / 0.5605 GB, free: 0.957 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.675e-06/0.157, allocations: 3.938 kB / 0.5605 GB, free: 0.9531 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001943/0.1572, allocations: 169.6 kB / 0.5607 GB, free: 0.7383 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.663e-06/0.1572, allocations: 0 / 0.5607 GB, free: 0.7383 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.324e-05/0.1572, allocations: 7.984 kB / 0.5607 GB, free: 0.7305 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.184e-06/0.1572, allocations: 0 / 0.5607 GB, free: 0.7305 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.969e-06/0.1573, allocations: 4 kB / 0.5607 GB, free: 0.7266 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.072e-06/0.1573, allocations: 0 / 0.5607 GB, free: 0.7266 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.42e-07/0.1573, allocations: 0 / 0.5607 GB, free: 0.7266 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002663/0.1575, allocations: 159.4 kB / 0.5609 GB, free: 0.5547 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.789e-05/0.1576, allocations: 77.11 kB / 0.5609 GB, free: 472 kB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.676e-05/0.1576, allocations: 0 / 0.5609 GB, free: 472 kB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.803e-05/0.1577, allocations: 11.98 kB / 0.561 GB, free: 460 kB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.557e-05/0.1577, allocations: 4 kB / 0.561 GB, free: 456 kB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.422e-06/0.1577, allocations: 4 kB / 0.561 GB, free: 452 kB / 414.1 MB Notification: Performance of sorting global known variables: time 6.932e-05/0.1578, allocations: 95.52 kB / 0.5611 GB, free: 356 kB / 414.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1578, allocations: 4.031 kB / 0.5611 GB, free: 352 kB / 414.1 MB Notification: Performance of remove unused functions: time 0.0002194/0.158, allocations: 8 kB / 0.5611 GB, free: 344 kB / 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.0001115/0.1581, allocations: 91.25 kB / 0.5612 GB, free: 244 kB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.000172/0.1583, allocations: 31.97 kB / 0.5612 GB, free: 212 kB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.355e-06/0.1583, allocations: 0 / 0.5612 GB, free: 212 kB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 4.931e-05/0.1583, allocations: 8 kB / 0.5612 GB, free: 204 kB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002193/0.1586, allocations: 10.19 kB / 0.5612 GB, free: 196 kB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004483/0.159, allocations: 156.3 kB / 0.5613 GB, free: 4 kB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000351/0.1594, allocations: 0.6846 MB / 0.562 GB, free: 15.29 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.727e-05/0.1594, allocations: 11.44 kB / 0.562 GB, free: 15.28 MB / 430.1 MB Notification: Performance of SimCode: time 5.21e-07/0.1594, allocations: 0 / 0.562 GB, free: 15.28 MB / 430.1 MB Notification: Performance of Templates: time 0.003168/0.1626, allocations: 0.6642 MB / 0.5627 GB, free: 14.61 MB / 430.1 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.1.0_ModelicaTest.Blocks.Hysteresis.makefile [Timeout 660] (rm -f ModelicaTest_4.1.0_ModelicaTest.Blocks.Hysteresis.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Blocks.Hysteresis.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Blocks.Hysteresis.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Blocks.Hysteresis.sim & ./ModelicaTest_4.1.0_ModelicaTest.Blocks.Hysteresis -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0_ModelicaTest.Blocks.Hysteresis.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_4.1.0_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_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.501959686982445]