Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Blocks.OnDelay.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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_4.0.0_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_4.0.0_ModelicaTest.Blocks.OnDelay") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00133/0.00133, allocations: 112.3 kB / 17.33 MB, free: 6.012 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001161/0.001162, allocations: 193.3 kB / 18.25 MB, free: 5.102 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.358/1.358, allocations: 222.9 MB / 241.9 MB, free: 13.74 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2001/0.2001, allocations: 44.18 MB / 336.2 MB, free: 2.742 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001183/0.001183, allocations: 65.17 kB / 407.9 MB, free: 27.61 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1111/0.1123, allocations: 60.83 MB / 468.7 MB, free: 14.74 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.OnDelay): time 0.00393/0.1163, allocations: 1.939 MB / 470.6 MB, free: 12.78 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001896/0.1182, allocations: 1.009 MB / 471.7 MB, free: 11.77 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001704/0.1184, allocations: 0 / 471.7 MB, free: 11.77 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006785/0.1191, allocations: 175.6 kB / 471.8 MB, free: 11.59 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003277/0.1194, allocations: 119.6 kB / 471.9 MB, free: 11.48 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005304/0.12, allocations: 182.2 kB / 472.1 MB, free: 11.3 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003704/0.1203, allocations: 275.3 kB / 472.4 MB, free: 11.03 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001199/0.1205, allocations: 29.67 kB / 472.4 MB, free: 11 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002003/0.1207, allocations: 115.6 kB / 472.5 MB, free: 10.89 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002093/0.1209, allocations: 115.6 kB / 472.6 MB, free: 10.78 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.872e-05/0.121, allocations: 16 kB / 472.7 MB, free: 10.76 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000168/0.1211, allocations: 63.91 kB / 472.7 MB, free: 10.7 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000117/0.1213, allocations: 63.83 kB / 472.8 MB, free: 10.64 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001527/0.1214, allocations: 115.4 kB / 472.9 MB, free: 10.52 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004498/0.1219, allocations: 271.4 kB / 473.2 MB, free: 10.26 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.968e-06/0.1219, allocations: 0 / 473.2 MB, free: 10.26 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.994e-06/0.1219, allocations: 0 / 473.2 MB, free: 10.26 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.618e-06/0.1219, allocations: 0 / 473.2 MB, free: 10.26 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.001166/0.1231, allocations: 0.6533 MB / 473.8 MB, free: 9.531 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.367e-05/0.1231, allocations: 8.031 kB / 473.8 MB, free: 9.523 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.952e-05/0.1232, allocations: 28.66 kB / 473.9 MB, free: 9.496 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000445/0.1237, allocations: 278.7 kB / 474.1 MB, free: 9.184 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001001/0.1238, allocations: 97.66 kB / 474.2 MB, free: 9.07 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.572e-05/0.1238, allocations: 19.94 kB / 474.2 MB, free: 9.051 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003552/0.1242, allocations: 157 kB / 474.4 MB, free: 8.883 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.05e-05/0.1242, allocations: 7.938 kB / 474.4 MB, free: 8.875 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.551e-05/0.1243, allocations: 7.984 kB / 474.4 MB, free: 8.867 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.042e-06/0.1243, allocations: 4 kB / 474.4 MB, free: 8.863 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002413/0.1245, allocations: 91.88 kB / 474.5 MB, free: 8.773 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000856/0.1254, allocations: 0.6064 MB / 475.1 MB, free: 8.109 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003422/0.1257, allocations: 175.9 kB / 475.3 MB, free: 7.91 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001817/0.1259, allocations: 94.55 kB / 475.4 MB, free: 7.809 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.608e-05/0.126, allocations: 0 / 475.4 MB, free: 7.809 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004431/0.1264, allocations: 437 kB / 475.8 MB, free: 7.305 MB / 350.1 MB Notification: Performance of pre-optimization done (n=23): time 1.693e-06/0.1264, allocations: 0 / 475.8 MB, free: 7.305 MB / 350.1 MB Notification: Performance of matching and sorting (n=23): time 0.0008785/0.1273, allocations: 446.3 kB / 476.2 MB, free: 6.844 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001032/0.1274, allocations: 217.6 kB / 476.4 MB, free: 6.582 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003267/0.1278, allocations: 320.9 kB / 476.8 MB, free: 6.262 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.41e-05/0.1278, allocations: 33.7 kB / 476.8 MB, free: 6.223 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001253/0.1279, allocations: 124.7 kB / 476.9 MB, free: 6.094 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.805e-05/0.128, allocations: 55.34 kB / 477 MB, free: 6.039 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001149/0.1281, allocations: 49.64 kB / 477 MB, free: 5.984 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001673/0.1283, allocations: 342.8 kB / 477.4 MB, free: 5.641 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001552/0.1285, allocations: 55.97 kB / 477.4 MB, free: 5.586 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002221/0.1287, allocations: 154.7 kB / 477.6 MB, free: 5.398 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005555/0.1293, allocations: 354.7 kB / 477.9 MB, free: 4.984 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.146e-06/0.1293, allocations: 0 / 477.9 MB, free: 4.984 MB / 350.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0006153/0.1299, allocations: 350 kB / 478.2 MB, free: 4.617 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.758e-05/0.13, allocations: 97.08 kB / 478.3 MB, free: 4.504 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.957e-06/0.13, allocations: 224 / 478.3 MB, free: 4.504 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.675e-05/0.13, allocations: 8 kB / 478.3 MB, free: 4.496 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001123/0.1302, allocations: 27.92 kB / 478.4 MB, free: 4.469 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.556e-06/0.1302, allocations: 4 kB / 478.4 MB, free: 4.465 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001436/0.1303, allocations: 15.94 kB / 478.4 MB, free: 4.449 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.835e-05/0.1304, allocations: 20.36 kB / 478.4 MB, free: 4.43 MB / 350.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.0002567/0.1306, allocations: 265.5 kB / 478.7 MB, free: 4.145 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.465e-05/0.1307, allocations: 35.56 kB / 478.7 MB, free: 4.109 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.985e-05/0.1308, allocations: 29.7 kB / 478.7 MB, free: 4.082 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.091e-06/0.1308, allocations: 4 kB / 478.7 MB, free: 4.078 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.274e-06/0.1308, allocations: 0 / 478.7 MB, free: 4.078 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.202e-06/0.1308, allocations: 3.984 kB / 478.7 MB, free: 4.074 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003028/0.1311, allocations: 289.4 kB / 479 MB, free: 3.742 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.344e-06/0.1311, allocations: 0 / 479 MB, free: 3.742 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.599e-05/0.1312, allocations: 15.88 kB / 479 MB, free: 3.727 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.869e-06/0.1312, allocations: 4 kB / 479 MB, free: 3.723 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.703e-05/0.1312, allocations: 7.984 kB / 479.1 MB, free: 3.715 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.839e-06/0.1312, allocations: 4.156 kB / 479.1 MB, free: 3.711 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.262e-06/0.1312, allocations: 4 kB / 479.1 MB, free: 3.707 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006464/0.1319, allocations: 439 kB / 479.5 MB, free: 3.238 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.44e-05/0.132, allocations: 108.9 kB / 479.6 MB, free: 3.113 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.539e-05/0.132, allocations: 8 kB / 479.6 MB, free: 3.105 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000112/0.1321, allocations: 27.92 kB / 479.6 MB, free: 3.078 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.965e-05/0.1322, allocations: 19.97 kB / 479.7 MB, free: 3.059 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.233e-05/0.1323, allocations: 19.98 kB / 479.7 MB, free: 3.039 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002333/0.1325, allocations: 228.5 kB / 479.9 MB, free: 2.816 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.1325, allocations: 0 / 479.9 MB, free: 2.816 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003429/0.1329, allocations: 67.92 kB / 480 MB, free: 2.75 MB / 350.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.0009891/0.1339, allocations: 443 kB / 480.4 MB, free: 2.473 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0005592/0.1344, allocations: 397.9 kB / 480.8 MB, free: 2.047 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.455e-06/0.1344, allocations: 0 / 480.8 MB, free: 2.047 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003487/0.1348, allocations: 342.1 kB / 481.1 MB, free: 1.676 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003401/0.1352, allocations: 54.98 kB / 481.2 MB, free: 1.625 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007686/0.1359, allocations: 0.4978 MB / 481.7 MB, free: 1.098 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003211/0.1363, allocations: 0.744 MB / 482.4 MB, free: 328 kB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001004/0.1364, allocations: 29.53 kB / 482.4 MB, free: 300 kB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.581e-05/0.1364, allocations: 23.44 kB / 482.5 MB, free: 276 kB / 350.1 MB Notification: Performance of SimCode: time 3.11e-07/0.1364, allocations: 0 / 482.5 MB, free: 276 kB / 350.1 MB Notification: Performance of Templates: time 0.007122/0.1436, allocations: 3.343 MB / 485.8 MB, free: 12.95 MB / 366.1 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Blocks.OnDelay.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Blocks.OnDelay.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Blocks.OnDelay.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Blocks.OnDelay.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Blocks.OnDelay.sim & ./ModelicaTest_4.0.0_ModelicaTest.Blocks.OnDelay -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Blocks.OnDelay.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_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_4.0.0_ModelicaTest.Blocks.OnDelay.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches