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.001732/0.001732, allocations: 121.3 kB / 19.18 MB, free: 3.852 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.001977/0.001977, allocations: 206.5 kB / 22.12 MB, free: 0.9062 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.602/1.602, allocations: 230.3 MB / 255.2 MB, free: 15.35 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.2934/0.2934, allocations: 46.93 MB / 358.2 MB, free: 10.43 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.002305/0.002305, allocations: 83.84 kB / 0.4925 GB, free: 7.695 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1282/0.1305, allocations: 66 MB / 0.557 GB, free: 5.57 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.OnDelay): time 0.003423/0.1339, allocations: 1.926 MB / 0.5588 GB, free: 3.621 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.002008/0.1359, allocations: 1.196 MB / 0.56 GB, free: 2.418 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.407e-05/0.136, allocations: 0 / 0.56 GB, free: 2.418 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006392/0.1367, allocations: 179.5 kB / 0.5602 GB, free: 2.242 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004157/0.1371, allocations: 179 kB / 0.5603 GB, free: 2.07 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004014/0.1375, allocations: 163.5 kB / 0.5605 GB, free: 1.91 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003537/0.1378, allocations: 275.3 kB / 0.5608 GB, free: 1.641 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001182/0.138, allocations: 25.61 kB / 0.5608 GB, free: 1.617 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000152/0.1381, allocations: 123.6 kB / 0.5609 GB, free: 1.496 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001908/0.1383, allocations: 119.6 kB / 0.561 GB, free: 1.379 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 3.259e-05/0.1383, allocations: 16 kB / 0.561 GB, free: 1.363 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001471/0.1385, allocations: 67.91 kB / 0.5611 GB, free: 1.297 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 8.975e-05/0.1386, allocations: 63.81 kB / 0.5612 GB, free: 1.234 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001278/0.1387, allocations: 107.4 kB / 0.5613 GB, free: 1.129 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003918/0.1391, allocations: 290.8 kB / 0.5615 GB, free: 0.8438 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.617e-06/0.1391, allocations: 0 / 0.5615 GB, free: 0.8438 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.593e-06/0.1391, allocations: 0 / 0.5615 GB, free: 0.8438 MB / 414.1 MB Notification: Performance of Transformations before backend: time 9.779e-06/0.1391, allocations: 0 / 0.5615 GB, free: 0.8438 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.001/0.1401, allocations: 0.6764 MB / 0.5622 GB, free: 96 kB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.513e-05/0.1401, allocations: 9.109 kB / 0.5622 GB, free: 88 kB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.304e-05/0.1402, allocations: 32.73 kB / 0.5622 GB, free: 56 kB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003889/0.1406, allocations: 283.8 kB / 0.5625 GB, free: 15.74 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.798e-05/0.1407, allocations: 89.67 kB / 0.5626 GB, free: 15.63 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.076e-05/0.1407, allocations: 12.38 kB / 0.5626 GB, free: 15.62 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003336/0.1411, allocations: 165.2 kB / 0.5628 GB, free: 15.44 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.085e-06/0.1411, allocations: 0 / 0.5628 GB, free: 15.44 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.22e-05/0.1411, allocations: 8 kB / 0.5628 GB, free: 15.43 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.849e-06/0.1411, allocations: 8 kB / 0.5628 GB, free: 15.43 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002382/0.1413, allocations: 87.88 kB / 0.5629 GB, free: 15.34 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008631/0.1422, allocations: 0.6141 MB / 0.5635 GB, free: 14.67 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003529/0.1426, allocations: 151.9 kB / 0.5636 GB, free: 14.49 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001641/0.1427, allocations: 74.53 kB / 0.5637 GB, free: 14.41 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.781e-05/0.1427, allocations: 4 kB / 0.5637 GB, free: 14.41 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005126/0.1433, allocations: 441 kB / 0.5641 GB, free: 13.9 MB / 430.1 MB Notification: Performance of pre-optimization done (n=23): time 1.603e-06/0.1433, allocations: 0 / 0.5641 GB, free: 13.9 MB / 430.1 MB Notification: Performance of matching and sorting (n=23): time 0.0008829/0.1441, allocations: 438.5 kB / 0.5645 GB, free: 13.45 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001383/0.1443, allocations: 221.5 kB / 0.5647 GB, free: 13.18 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003814/0.1447, allocations: 334.5 kB / 0.5651 GB, free: 12.84 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 3.082e-05/0.1447, allocations: 33.7 kB / 0.5651 GB, free: 12.8 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001059/0.1448, allocations: 128.7 kB / 0.5652 GB, free: 12.68 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.84e-05/0.1449, allocations: 63.52 kB / 0.5653 GB, free: 12.61 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.99e-05/0.1449, allocations: 49.69 kB / 0.5653 GB, free: 12.56 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.000167/0.1451, allocations: 338.8 kB / 0.5656 GB, free: 12.22 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001478/0.1452, allocations: 59.95 kB / 0.5657 GB, free: 12.16 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002231/0.1455, allocations: 142.3 kB / 0.5658 GB, free: 11.98 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004547/0.1459, allocations: 362.6 kB / 0.5662 GB, free: 11.56 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.514e-06/0.1459, allocations: 0 / 0.5662 GB, free: 11.56 MB / 430.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0005519/0.1465, allocations: 354.8 kB / 0.5665 GB, free: 11.19 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.42e-05/0.1466, allocations: 93.09 kB / 0.5666 GB, free: 11.08 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.817e-06/0.1466, allocations: 7.938 kB / 0.5666 GB, free: 11.07 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.672e-05/0.1466, allocations: 4 kB / 0.5666 GB, free: 11.07 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001034/0.1467, allocations: 27.92 kB / 0.5666 GB, free: 11.04 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.155e-06/0.1467, allocations: 4 kB / 0.5666 GB, free: 11.04 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001292/0.1468, allocations: 23.88 kB / 0.5667 GB, free: 11.02 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.39e-05/0.1469, allocations: 16 kB / 0.5667 GB, free: 11 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.0002455/0.1471, allocations: 265.5 kB / 0.5669 GB, free: 10.71 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.217e-05/0.1472, allocations: 27.86 kB / 0.567 GB, free: 10.69 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.239e-05/0.1472, allocations: 37.64 kB / 0.567 GB, free: 10.64 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.334e-06/0.1472, allocations: 0 / 0.567 GB, free: 10.64 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.412e-06/0.1472, allocations: 4 kB / 0.567 GB, free: 10.64 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.737e-06/0.1472, allocations: 0 / 0.567 GB, free: 10.64 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002992/0.1475, allocations: 293.4 kB / 0.5673 GB, free: 10.3 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.563e-06/0.1475, allocations: 4 kB / 0.5673 GB, free: 10.3 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.768e-05/0.1476, allocations: 4 kB / 0.5673 GB, free: 10.3 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.924e-06/0.1476, allocations: 7.938 kB / 0.5673 GB, free: 10.29 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.635e-05/0.1476, allocations: 15.94 kB / 0.5673 GB, free: 10.27 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.227e-06/0.1476, allocations: 3.984 kB / 0.5673 GB, free: 10.27 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.303e-06/0.1476, allocations: 4 kB / 0.5673 GB, free: 10.27 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006795/0.1483, allocations: 439.5 kB / 0.5677 GB, free: 9.793 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.298e-05/0.1484, allocations: 105 kB / 0.5678 GB, free: 9.672 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.225e-05/0.1484, allocations: 15.94 kB / 0.5679 GB, free: 9.656 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001102/0.1485, allocations: 15.98 kB / 0.5679 GB, free: 9.641 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.962e-05/0.1486, allocations: 19.98 kB / 0.5679 GB, free: 9.621 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.721e-05/0.1486, allocations: 8 kB / 0.5679 GB, free: 9.613 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0002562/0.1489, allocations: 241.9 kB / 0.5681 GB, free: 9.375 MB / 430.1 MB Notification: Performance of sort global known variables: time 8e-08/0.1489, allocations: 0 / 0.5681 GB, free: 9.375 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0003111/0.1492, allocations: 67.89 kB / 0.5682 GB, free: 9.309 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.001502/0.1507, allocations: 452.1 kB / 0.5686 GB, free: 9 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.0005618/0.1513, allocations: 354 kB / 0.569 GB, free: 8.617 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 2.134e-06/0.1513, allocations: 0 / 0.569 GB, free: 8.617 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003454/0.1516, allocations: 266.8 kB / 0.5692 GB, free: 8.32 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003413/0.152, allocations: 64.78 kB / 0.5693 GB, free: 8.258 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008323/0.1528, allocations: 490.8 kB / 0.5697 GB, free: 7.738 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003974/0.1532, allocations: 0.7518 MB / 0.5705 GB, free: 6.957 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.065e-05/0.1532, allocations: 23.44 kB / 0.5705 GB, free: 6.938 MB / 430.1 MB Notification: Performance of SimCode: time 3.3e-07/0.1532, allocations: 0 / 0.5705 GB, free: 6.938 MB / 430.1 MB Notification: Performance of Templates: time 0.006205/0.1594, allocations: 3.601 MB / 0.574 GB, free: 3.348 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/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Blocks/OnDelay/OnDelay.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/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.119281296996633]