Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Blocks.OnDelay.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/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=5000,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_trunk_ModelicaTest.Blocks.OnDelay") translateModel(ModelicaTest.Blocks.OnDelay,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,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_trunk_ModelicaTest.Blocks.OnDelay") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001549/0.001549, allocations: 103.8 kB / 17.63 MB, free: 5.48 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001898/0.001899, allocations: 212.6 kB / 18.58 MB, free: 4.535 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.347/1.347, allocations: 227.4 MB / 246.8 MB, free: 10.61 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2103/0.2103, allocations: 46.09 MB / 344.1 MB, free: 11.62 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001443/0.001443, allocations: 80.03 kB / 417.6 MB, free: 19.77 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.111/0.1125, allocations: 62.45 MB / 480 MB, free: 5.312 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.OnDelay): time 0.003615/0.1161, allocations: 1.906 MB / 481.9 MB, free: 3.391 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002048/0.1182, allocations: 1.183 MB / 483.1 MB, free: 2.203 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001547/0.1184, allocations: 7.938 kB / 483.1 MB, free: 2.195 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007422/0.1191, allocations: 187.4 kB / 483.3 MB, free: 2.012 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004432/0.1196, allocations: 167.3 kB / 483.5 MB, free: 1.848 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004629/0.1201, allocations: 155.6 kB / 483.6 MB, free: 1.695 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004081/0.1205, allocations: 295.3 kB / 483.9 MB, free: 1.406 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001487/0.1206, allocations: 29.67 kB / 483.9 MB, free: 1.379 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002262/0.1209, allocations: 107.7 kB / 484 MB, free: 1.273 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001999/0.1211, allocations: 119.6 kB / 484.2 MB, free: 1.156 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.33e-05/0.1211, allocations: 16 kB / 484.2 MB, free: 1.141 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001956/0.1213, allocations: 59.92 kB / 484.2 MB, free: 1.082 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 9.378e-05/0.1214, allocations: 71.75 kB / 484.3 MB, free: 1.012 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001387/0.1216, allocations: 111.5 kB / 484.4 MB, free: 0.9023 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003892/0.122, allocations: 279.4 kB / 484.7 MB, free: 0.6289 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.721e-06/0.122, allocations: 4 kB / 484.7 MB, free: 0.625 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.816e-06/0.122, allocations: 3.984 kB / 484.7 MB, free: 0.6211 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.364e-06/0.122, allocations: 0 / 484.7 MB, free: 0.6211 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: 21 * Number of variables: 21 Notification: Performance of Generate backend data structure: time 0.001135/0.1232, allocations: 0.6533 MB / 485.3 MB, free: 15.89 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.675e-05/0.1232, allocations: 13.11 kB / 485.4 MB, free: 15.88 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.83e-05/0.1233, allocations: 32.59 kB / 485.4 MB, free: 15.85 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004093/0.1237, allocations: 283.6 kB / 485.7 MB, free: 15.54 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001041/0.1238, allocations: 89.67 kB / 485.7 MB, free: 15.43 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.427e-05/0.1239, allocations: 23.92 kB / 485.8 MB, free: 15.41 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003385/0.1242, allocations: 157 kB / 485.9 MB, free: 15.23 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.023e-05/0.1243, allocations: 4 kB / 485.9 MB, free: 15.23 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.317e-05/0.1243, allocations: 4 kB / 485.9 MB, free: 15.23 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.394e-06/0.1243, allocations: 4 kB / 485.9 MB, free: 15.22 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002379/0.1245, allocations: 91.88 kB / 486 MB, free: 15.13 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009264/0.1255, allocations: 0.6063 MB / 486.6 MB, free: 14.47 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003598/0.1259, allocations: 175.9 kB / 486.8 MB, free: 14.27 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001701/0.126, allocations: 98.53 kB / 486.9 MB, free: 14.16 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.482e-05/0.1261, allocations: 0 / 486.9 MB, free: 14.16 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004523/0.1265, allocations: 441 kB / 487.3 MB, free: 13.66 MB / 366.1 MB Notification: Performance of pre-optimization done (n=23): time 2.014e-06/0.1265, allocations: 0 / 487.3 MB, free: 13.66 MB / 366.1 MB Notification: Performance of matching and sorting (n=23): time 0.000806/0.1274, allocations: 446.7 kB / 487.8 MB, free: 13.2 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001048/0.1275, allocations: 217.6 kB / 488 MB, free: 12.93 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003334/0.1278, allocations: 330.5 kB / 488.3 MB, free: 12.6 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.755e-05/0.1279, allocations: 33.7 kB / 488.3 MB, free: 12.56 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001019/0.128, allocations: 132.7 kB / 488.5 MB, free: 12.43 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.862e-05/0.128, allocations: 51.38 kB / 488.5 MB, free: 12.38 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.533e-05/0.1281, allocations: 53.69 kB / 488.6 MB, free: 12.32 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0002107/0.1283, allocations: 338.8 kB / 488.9 MB, free: 11.98 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001401/0.1285, allocations: 51.97 kB / 488.9 MB, free: 11.93 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002193/0.1287, allocations: 154.1 kB / 489.1 MB, free: 11.74 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003934/0.1291, allocations: 362.6 kB / 489.5 MB, free: 11.32 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.374e-06/0.1291, allocations: 0 / 489.5 MB, free: 11.32 MB / 366.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0005384/0.1296, allocations: 346.3 kB / 489.8 MB, free: 10.95 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.816e-05/0.1297, allocations: 101.1 kB / 489.9 MB, free: 10.84 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.125e-06/0.1298, allocations: 4 kB / 489.9 MB, free: 10.83 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.53e-05/0.1298, allocations: 0 / 489.9 MB, free: 10.83 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001014/0.1299, allocations: 23.92 kB / 489.9 MB, free: 10.81 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.107e-06/0.1299, allocations: 4 kB / 489.9 MB, free: 10.8 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001358/0.13, allocations: 23.92 kB / 489.9 MB, free: 10.78 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.954e-05/0.1301, allocations: 12.38 kB / 490 MB, free: 10.77 MB / 366.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.0002232/0.1303, allocations: 277.4 kB / 490.2 MB, free: 10.47 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.059e-05/0.1304, allocations: 35.56 kB / 490.3 MB, free: 10.43 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.351e-05/0.1304, allocations: 29.7 kB / 490.3 MB, free: 10.41 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.455e-06/0.1304, allocations: 0 / 490.3 MB, free: 10.41 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.295e-06/0.1304, allocations: 4 kB / 490.3 MB, free: 10.4 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.188e-06/0.1305, allocations: 0 / 490.3 MB, free: 10.4 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002734/0.1307, allocations: 285.5 kB / 490.6 MB, free: 10.07 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.415e-06/0.1307, allocations: 7.938 kB / 490.6 MB, free: 10.07 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.157e-05/0.1308, allocations: 11.88 kB / 490.6 MB, free: 10.05 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.605e-06/0.1308, allocations: 0 / 490.6 MB, free: 10.05 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.434e-05/0.1308, allocations: 16 kB / 490.6 MB, free: 10.04 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.868e-06/0.1308, allocations: 3.984 kB / 490.6 MB, free: 10.04 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.172e-06/0.1308, allocations: 4 kB / 490.6 MB, free: 10.03 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006179/0.1315, allocations: 431.5 kB / 491 MB, free: 9.566 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.173e-05/0.1315, allocations: 108.7 kB / 491.1 MB, free: 9.441 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.271e-05/0.1316, allocations: 16 kB / 491.2 MB, free: 9.426 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001106/0.1317, allocations: 15.98 kB / 491.2 MB, free: 9.41 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.398e-05/0.1318, allocations: 19.98 kB / 491.2 MB, free: 9.391 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.065e-05/0.1318, allocations: 12 kB / 491.2 MB, free: 9.379 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002327/0.1321, allocations: 241.9 kB / 491.4 MB, free: 9.145 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.1321, allocations: 3.938 kB / 491.4 MB, free: 9.141 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003236/0.1324, allocations: 79.83 kB / 491.5 MB, free: 9.062 MB / 366.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.0009272/0.1333, allocations: 429.2 kB / 491.9 MB, free: 8.773 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0005582/0.1339, allocations: 393.9 kB / 492.3 MB, free: 8.352 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.334e-06/0.1339, allocations: 0 / 492.3 MB, free: 8.352 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003452/0.1343, allocations: 342.1 kB / 492.7 MB, free: 7.98 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003329/0.1346, allocations: 59.45 kB / 492.7 MB, free: 7.93 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007607/0.1354, allocations: 465.4 kB / 493.2 MB, free: 7.441 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003839/0.1358, allocations: 0.7518 MB / 493.9 MB, free: 6.66 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 9.74e-05/0.1359, allocations: 25.84 kB / 494 MB, free: 6.637 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.993e-05/0.1359, allocations: 19.44 kB / 494 MB, free: 6.617 MB / 366.1 MB Notification: Performance of SimCode: time 2.31e-07/0.136, allocations: 0 / 494 MB, free: 6.617 MB / 366.1 MB Notification: Performance of Templates: time 0.007249/0.1432, allocations: 3.502 MB / 497.5 MB, free: 3.133 MB / 366.1 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.Blocks.OnDelay.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Blocks.OnDelay.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Blocks.OnDelay.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Blocks.OnDelay.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Blocks.OnDelay.sim & ./ModelicaTest_trunk_ModelicaTest.Blocks.OnDelay -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Blocks.OnDelay.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Blocks.OnDelay_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/OnDelay/OnDelay.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Blocks.OnDelay.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches