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.0008712/0.0008712, allocations: 92.77 kB / 17.35 MB, free: 6.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001027/0.001027, allocations: 203 kB / 18.28 MB, free: 5.477 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.456/1.456, allocations: 227.7 MB / 246.8 MB, free: 9.645 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2048/0.2048, allocations: 46.18 MB / 345.2 MB, free: 11.15 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002853/0.0002854, allocations: 11.98 kB / 419.5 MB, free: 19.68 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1199/0.1202, allocations: 63.56 MB / 483.1 MB, free: 4.109 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.OnDelay): time 0.002657/0.1229, allocations: 1.616 MB / 484.7 MB, free: 2.48 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001892/0.1248, allocations: 1.154 MB / 485.8 MB, free: 1.32 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.993e-05/0.125, allocations: 4 kB / 485.9 MB, free: 1.316 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005791/0.1256, allocations: 171.6 kB / 486 MB, free: 1.148 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003917/0.126, allocations: 159.5 kB / 486.2 MB, free: 0.9922 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000391/0.1264, allocations: 135.4 kB / 486.3 MB, free: 0.8633 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003493/0.1267, allocations: 271.3 kB / 486.6 MB, free: 0.5977 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001157/0.1268, allocations: 25.66 kB / 486.6 MB, free: 0.5742 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001502/0.127, allocations: 99.67 kB / 486.7 MB, free: 488 kB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001553/0.1272, allocations: 111.5 kB / 486.8 MB, free: 376 kB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.074e-05/0.1272, allocations: 8 kB / 486.8 MB, free: 368 kB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000152/0.1274, allocations: 51.97 kB / 486.9 MB, free: 316 kB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.075e-05/0.1275, allocations: 55.75 kB / 486.9 MB, free: 260 kB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001157/0.1276, allocations: 125.2 kB / 487 MB, free: 128 kB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003324/0.1279, allocations: 275.2 kB / 487.3 MB, free: 15.86 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.628e-06/0.1279, allocations: 0 / 487.3 MB, free: 15.86 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.663e-06/0.1279, allocations: 0 / 487.3 MB, free: 15.86 MB / 366.1 MB Notification: Performance of Transformations before backend: time 4.659e-06/0.128, allocations: 0 / 487.3 MB, free: 15.86 MB / 366.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.0008708/0.1288, allocations: 0.6184 MB / 487.9 MB, free: 15.16 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.33e-05/0.1289, allocations: 17.89 kB / 487.9 MB, free: 15.15 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.328e-05/0.129, allocations: 28.66 kB / 488 MB, free: 15.12 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003684/0.1293, allocations: 283.5 kB / 488.2 MB, free: 14.8 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.208e-05/0.1294, allocations: 89.67 kB / 488.3 MB, free: 14.7 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.371e-05/0.1295, allocations: 23.94 kB / 488.4 MB, free: 14.68 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003251/0.1298, allocations: 161 kB / 488.5 MB, free: 14.5 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.706e-06/0.1298, allocations: 3.938 kB / 488.5 MB, free: 14.5 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.226e-05/0.1299, allocations: 4 kB / 488.5 MB, free: 14.49 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.52e-06/0.1299, allocations: 0 / 488.5 MB, free: 14.49 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002617/0.1302, allocations: 99.88 kB / 488.6 MB, free: 14.39 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000907/0.1311, allocations: 0.618 MB / 489.2 MB, free: 13.72 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003602/0.1314, allocations: 175.9 kB / 489.4 MB, free: 13.52 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001821/0.1316, allocations: 98.53 kB / 489.5 MB, free: 13.41 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.288e-05/0.1317, allocations: 4 kB / 489.5 MB, free: 13.41 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004515/0.1322, allocations: 441 kB / 489.9 MB, free: 12.9 MB / 366.1 MB Notification: Performance of pre-optimization done (n=23): time 1.924e-06/0.1322, allocations: 0 / 489.9 MB, free: 12.9 MB / 366.1 MB Notification: Performance of matching and sorting (n=23): time 0.000879/0.1331, allocations: 446.3 kB / 490.4 MB, free: 12.44 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001123/0.1332, allocations: 213.6 kB / 490.6 MB, free: 12.18 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003735/0.1336, allocations: 330.6 kB / 490.9 MB, free: 11.86 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.498e-05/0.1336, allocations: 37.7 kB / 490.9 MB, free: 11.81 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001002/0.1337, allocations: 132.6 kB / 491.1 MB, free: 11.68 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.673e-05/0.1338, allocations: 51.34 kB / 491.1 MB, free: 11.62 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.622e-05/0.1338, allocations: 33.7 kB / 491.2 MB, free: 11.59 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001183/0.134, allocations: 342.8 kB / 491.5 MB, free: 11.24 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000152/0.1341, allocations: 55.97 kB / 491.5 MB, free: 11.19 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002073/0.1343, allocations: 142.8 kB / 491.7 MB, free: 11.01 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004285/0.1348, allocations: 366.9 kB / 492 MB, free: 10.59 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.88e-06/0.1348, allocations: 0 / 492 MB, free: 10.59 MB / 366.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0005681/0.1354, allocations: 354.2 kB / 492.4 MB, free: 10.21 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.78e-05/0.1355, allocations: 103.4 kB / 492.5 MB, free: 10.1 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.983e-06/0.1355, allocations: 0 / 492.5 MB, free: 10.1 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.647e-05/0.1355, allocations: 4 kB / 492.5 MB, free: 10.09 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001057/0.1356, allocations: 24.14 kB / 492.5 MB, free: 10.07 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.084e-05/0.1356, allocations: 8.375 kB / 492.5 MB, free: 10.06 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00015/0.1358, allocations: 31.83 kB / 492.6 MB, free: 10.03 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.634e-05/0.1358, allocations: 8 kB / 492.6 MB, free: 10.02 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.0002363/0.1361, allocations: 269.9 kB / 492.8 MB, free: 9.734 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.132e-05/0.1361, allocations: 43.62 kB / 492.9 MB, free: 9.691 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.756e-05/0.1362, allocations: 25.72 kB / 492.9 MB, free: 9.668 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.232e-06/0.1362, allocations: 4 kB / 492.9 MB, free: 9.664 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.093e-06/0.1362, allocations: 3.984 kB / 492.9 MB, free: 9.66 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.438e-06/0.1362, allocations: 0 / 492.9 MB, free: 9.66 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002755/0.1365, allocations: 293.4 kB / 493.2 MB, free: 9.324 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.617e-06/0.1365, allocations: 0 / 493.2 MB, free: 9.324 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.347e-05/0.1366, allocations: 11.94 kB / 493.2 MB, free: 9.312 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.091e-06/0.1366, allocations: 7.938 kB / 493.2 MB, free: 9.305 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.21e-05/0.1366, allocations: 4 kB / 493.2 MB, free: 9.301 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.124e-06/0.1366, allocations: 7.938 kB / 493.2 MB, free: 9.293 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.894e-06/0.1366, allocations: 0 / 493.2 MB, free: 9.293 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006793/0.1373, allocations: 458.8 kB / 493.7 MB, free: 8.805 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.578e-05/0.1374, allocations: 108.8 kB / 493.8 MB, free: 8.68 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.438e-05/0.1374, allocations: 12 kB / 493.8 MB, free: 8.668 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000131/0.1376, allocations: 23.98 kB / 493.8 MB, free: 8.645 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.759e-05/0.1377, allocations: 15.98 kB / 493.8 MB, free: 8.629 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.238e-05/0.1377, allocations: 15.98 kB / 493.8 MB, free: 8.613 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002732/0.138, allocations: 238 kB / 494.1 MB, free: 8.383 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.138, allocations: 0 / 494.1 MB, free: 8.383 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003432/0.1383, allocations: 71.83 kB / 494.1 MB, free: 8.312 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.001027/0.1394, allocations: 432 kB / 494.6 MB, free: 8.02 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0006049/0.14, allocations: 390 kB / 495 MB, free: 7.602 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.296e-06/0.14, allocations: 0 / 495 MB, free: 7.602 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003728/0.1404, allocations: 346.5 kB / 495.3 MB, free: 7.227 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004124/0.1408, allocations: 56.78 kB / 495.3 MB, free: 7.172 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009044/0.1417, allocations: 0.5045 MB / 495.8 MB, free: 6.633 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003315/0.1421, allocations: 0.7521 MB / 496.6 MB, free: 5.855 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001059/0.1422, allocations: 29.89 kB / 496.6 MB, free: 5.828 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.376e-05/0.1423, allocations: 19.44 kB / 496.6 MB, free: 5.809 MB / 366.1 MB Notification: Performance of SimCode: time 2.334e-06/0.1423, allocations: 0 / 496.6 MB, free: 5.809 MB / 366.1 MB Notification: Performance of Templates: time 0.007408/0.1497, allocations: 3.19 MB / 499.8 MB, free: 2.633 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