Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.OnDelay.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.001297/0.001297, allocations: 113.8 kB / 19.18 MB, free: 3.762 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.001364/0.001364, allocations: 208.9 kB / 22.13 MB, free: 0.8125 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.464/1.464, allocations: 230.2 MB / 255.2 MB, free: 15.22 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.2381/0.2381, allocations: 46.89 MB / 358.1 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.OnDelay,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5020,variableFilter="time|booleanTable.y|onDelay1.delaySignal|onDelay1.t_next|onDelay1.u|onDelay2.delaySignal|onDelay2.t_next|onDelay2.u|onDelay3.delaySignal|onDelay3.t_next|onDelay3.u",fileNamePrefix="ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.OnDelay") translateModel(ModelicaTest.Blocks.OnDelay,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5020,variableFilter="time|booleanTable.y|onDelay1.delaySignal|onDelay1.t_next|onDelay1.u|onDelay2.delaySignal|onDelay2.t_next|onDelay2.u|onDelay3.delaySignal|onDelay3.t_next|onDelay3.u",fileNamePrefix="ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.OnDelay") [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.002253/0.002253, allocations: 83.86 kB / 0.4924 GB, free: 8.172 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1377/0.1399, allocations: 65.98 MB / 0.5568 GB, free: 6.059 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.OnDelay): time 0.003695/0.1436, allocations: 1.928 MB / 0.5587 GB, free: 4.109 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.002196/0.1458, allocations: 1.188 MB / 0.5598 GB, free: 2.914 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001298/0.1459, allocations: 4 kB / 0.5598 GB, free: 2.91 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006985/0.1466, allocations: 187.4 kB / 0.56 GB, free: 2.727 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004435/0.1471, allocations: 170.6 kB / 0.5602 GB, free: 2.562 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004518/0.1475, allocations: 167.5 kB / 0.5603 GB, free: 2.398 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003615/0.1479, allocations: 275.3 kB / 0.5606 GB, free: 2.129 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001216/0.148, allocations: 25.67 kB / 0.5606 GB, free: 2.105 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001692/0.1482, allocations: 111.6 kB / 0.5607 GB, free: 1.996 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001798/0.1484, allocations: 123.6 kB / 0.5608 GB, free: 1.875 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 3.866e-05/0.1484, allocations: 16 kB / 0.5609 GB, free: 1.859 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001819/0.1486, allocations: 75.89 kB / 0.5609 GB, free: 1.785 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 9.519e-05/0.1487, allocations: 59.83 kB / 0.561 GB, free: 1.727 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001328/0.1488, allocations: 119.4 kB / 0.5611 GB, free: 1.609 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004335/0.1492, allocations: 278.8 kB / 0.5614 GB, free: 1.336 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.73e-06/0.1492, allocations: 4 kB / 0.5614 GB, free: 1.332 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.694e-06/0.1492, allocations: 0 / 0.5614 GB, free: 1.332 MB / 414.1 MB Notification: Performance of Transformations before backend: time 6.743e-06/0.1492, allocations: 0 / 0.5614 GB, free: 1.332 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: 21 * Number of variables: 21 Notification: Performance of Generate backend data structure: time 0.001109/0.1504, allocations: 0.6647 MB / 0.562 GB, free: 0.5938 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.197e-05/0.1504, allocations: 17.11 kB / 0.562 GB, free: 0.5781 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.694e-05/0.1505, allocations: 32.78 kB / 0.5621 GB, free: 0.5469 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003804/0.1509, allocations: 275.8 kB / 0.5623 GB, free: 248 kB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001187/0.151, allocations: 101.6 kB / 0.5624 GB, free: 128 kB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.232e-05/0.151, allocations: 16.38 kB / 0.5624 GB, free: 112 kB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003632/0.1514, allocations: 164.2 kB / 0.5626 GB, free: 15.93 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.121e-05/0.1514, allocations: 8 kB / 0.5626 GB, free: 15.93 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.082e-05/0.1514, allocations: 4 kB / 0.5626 GB, free: 15.92 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.25e-06/0.1514, allocations: 3.938 kB / 0.5626 GB, free: 15.92 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002436/0.1517, allocations: 91.92 kB / 0.5627 GB, free: 15.83 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008989/0.1526, allocations: 0.6102 MB / 0.5633 GB, free: 15.16 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003555/0.1529, allocations: 151.9 kB / 0.5634 GB, free: 14.98 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001653/0.1531, allocations: 74.53 kB / 0.5635 GB, free: 14.9 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.175e-05/0.1531, allocations: 4 kB / 0.5635 GB, free: 14.9 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005276/0.1536, allocations: 429.1 kB / 0.5639 GB, free: 14.4 MB / 430.1 MB Notification: Performance of pre-optimization done (n=23): time 1.773e-06/0.1536, allocations: 0 / 0.5639 GB, free: 14.4 MB / 430.1 MB Notification: Performance of matching and sorting (n=23): time 0.0009167/0.1546, allocations: 450.5 kB / 0.5644 GB, free: 13.94 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001609/0.1547, allocations: 225.5 kB / 0.5646 GB, free: 13.67 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003831/0.1551, allocations: 330.5 kB / 0.5649 GB, free: 13.33 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 3.364e-05/0.1551, allocations: 33.7 kB / 0.5649 GB, free: 13.29 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001074/0.1552, allocations: 132.7 kB / 0.565 GB, free: 13.16 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.768e-05/0.1553, allocations: 55.58 kB / 0.5651 GB, free: 13.11 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.88e-05/0.1554, allocations: 53.7 kB / 0.5652 GB, free: 13.05 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001627/0.1556, allocations: 338.8 kB / 0.5655 GB, free: 12.71 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001557/0.1557, allocations: 59.95 kB / 0.5655 GB, free: 12.65 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002127/0.1559, allocations: 138.3 kB / 0.5657 GB, free: 12.48 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004449/0.1564, allocations: 354.7 kB / 0.566 GB, free: 12.06 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.575e-06/0.1564, allocations: 3.938 kB / 0.566 GB, free: 12.06 MB / 430.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0005745/0.157, allocations: 354.7 kB / 0.5663 GB, free: 11.69 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.448e-05/0.157, allocations: 93.09 kB / 0.5664 GB, free: 11.58 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.538e-06/0.157, allocations: 8.156 kB / 0.5664 GB, free: 11.57 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.172e-05/0.1571, allocations: 8 kB / 0.5664 GB, free: 11.56 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001077/0.1572, allocations: 23.92 kB / 0.5665 GB, free: 11.54 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.868e-06/0.1572, allocations: 4 kB / 0.5665 GB, free: 11.54 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001448/0.1573, allocations: 27.88 kB / 0.5665 GB, free: 11.51 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.023e-05/0.1574, allocations: 8 kB / 0.5665 GB, free: 11.5 MB / 430.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 29 ($PRE.onDelay1.u,$PRE.onDelay1.t_next,$PRE.onDelay3.u,$PRE.onDelay3.t_next,$PRE.onDelay2.u,$PRE.onDelay2.t_next,$PRE.booleanTable.combiTimeTable.nextTimeEvent,$whenCondition5,booleanTable.combiTimeTable.nextTimeEventScaled,$PRE.booleanTable.combiTimeTable.nextTimeEventScaled,booleanTable.combiTimeTable.nextTimeEvent,onDelay1.t_next,onDelay1.delaySignal,onDelay1.y,onDelay1.u,$whenCondition7,$whenCondition6,onDelay2.t_next,onDelay2.delaySignal,onDelay2.y,onDelay2.u,$whenCondition4,$whenCondition3,onDelay3.t_next,onDelay3.delaySignal,onDelay3.y,onDelay3.u,$whenCondition2,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (22): * Single equations (assignments): 19 * Array equations: 0 * Algorithm blocks: 3 * 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.0002721/0.1576, allocations: 265.5 kB / 0.5668 GB, free: 11.21 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.692e-05/0.1577, allocations: 35.86 kB / 0.5668 GB, free: 11.18 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.34e-05/0.1577, allocations: 29.64 kB / 0.5668 GB, free: 11.14 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.224e-06/0.1578, allocations: 4 kB / 0.5668 GB, free: 11.14 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.853e-06/0.1578, allocations: 0 / 0.5668 GB, free: 11.14 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.549e-06/0.1578, allocations: 0 / 0.5668 GB, free: 11.14 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003268/0.1581, allocations: 297.4 kB / 0.5671 GB, free: 10.8 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.874e-06/0.1581, allocations: 0 / 0.5671 GB, free: 10.8 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.905e-05/0.1581, allocations: 4 kB / 0.5671 GB, free: 10.79 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.409e-06/0.1581, allocations: 4 kB / 0.5671 GB, free: 10.79 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.886e-05/0.1582, allocations: 15.92 kB / 0.5671 GB, free: 10.77 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.773e-06/0.1582, allocations: 4 kB / 0.5671 GB, free: 10.77 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.152e-06/0.1582, allocations: 4 kB / 0.5671 GB, free: 10.77 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007009/0.1589, allocations: 447.5 kB / 0.5676 GB, free: 10.29 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.948e-05/0.1589, allocations: 105 kB / 0.5677 GB, free: 10.16 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.058e-05/0.159, allocations: 11.94 kB / 0.5677 GB, free: 10.15 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001169/0.1591, allocations: 23.98 kB / 0.5677 GB, free: 10.13 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.827e-05/0.1592, allocations: 15.98 kB / 0.5677 GB, free: 10.11 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.141e-05/0.1592, allocations: 16 kB / 0.5677 GB, free: 10.1 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0002644/0.1595, allocations: 237.9 kB / 0.568 GB, free: 9.863 MB / 430.1 MB Notification: Performance of sort global known variables: time 8e-08/0.1595, allocations: 0 / 0.568 GB, free: 9.863 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0003287/0.1598, allocations: 75.88 kB / 0.568 GB, free: 9.789 MB / 430.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 21 ($whenCondition5,$whenCondition6,$whenCondition7,onDelay1.u,onDelay1.y,onDelay1.delaySignal,onDelay1.t_next,booleanTable.combiTimeTable.nextTimeEvent,booleanTable.combiTimeTable.nextTimeEventScaled,$whenCondition3,$whenCondition4,onDelay2.u,onDelay2.y,onDelay2.delaySignal,onDelay2.t_next,$whenCondition1,$whenCondition2,onDelay3.u,onDelay3.y,onDelay3.delaySignal,onDelay3.t_next) * Number of discrete states: 14 (onDelay3.t_next,onDelay3.delaySignal,$whenCondition2,$whenCondition1,onDelay2.t_next,onDelay2.delaySignal,$whenCondition4,$whenCondition3,booleanTable.combiTimeTable.nextTimeEventScaled,onDelay1.t_next,onDelay1.delaySignal,$whenCondition7,$whenCondition6,booleanTable.combiTimeTable.nextTimeEvent) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (14): * Single equations (assignments): 9 * Array equations: 0 * Algorithm blocks: 3 * Record equations: 0 * When equations: 2 * 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.001586/0.1614, allocations: 443.6 kB / 0.5685 GB, free: 9.5 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.0005972/0.162, allocations: 354 kB / 0.5688 GB, free: 9.117 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 4.669e-06/0.162, allocations: 4 kB / 0.5688 GB, free: 9.113 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003436/0.1623, allocations: 270.2 kB / 0.5691 GB, free: 8.812 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000366/0.1627, allocations: 59.91 kB / 0.5691 GB, free: 8.758 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000909/0.1636, allocations: 495.2 kB / 0.5696 GB, free: 8.234 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003946/0.164, allocations: 0.7479 MB / 0.5703 GB, free: 7.457 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.421e-05/0.1641, allocations: 23.44 kB / 0.5703 GB, free: 7.438 MB / 430.1 MB Notification: Performance of SimCode: time 2.7e-07/0.1641, allocations: 0 / 0.5703 GB, free: 7.438 MB / 430.1 MB Notification: Performance of Templates: time 0.006482/0.1706, allocations: 3.595 MB / 0.5738 GB, free: 3.848 MB / 430.1 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.OnDelay.makefile [Timeout 660] (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.OnDelay.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.OnDelay.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.OnDelay.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.OnDelay.sim & ./ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.OnDelay -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.OnDelay.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.OnDelay_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Blocks/OnDelay/OnDelay.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.OnDelay.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: 8.085776664083824]