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.001388/0.001389, allocations: 101.5 kB / 17.85 MB, free: 5.66 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.001697/0.001697, allocations: 194 kB / 18.77 MB, free: 4.742 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.33/1.33, allocations: 222.9 MB / 242.4 MB, free: 15.47 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.1988/0.1988, allocations: 44.18 MB / 336.8 MB, free: 3 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001296/0.001296, allocations: 67.61 kB / 408.3 MB, free: 27.72 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1086/0.1099, allocations: 60.83 MB / 469.2 MB, free: 14.86 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.OnDelay): time 0.003107/0.1131, allocations: 1.939 MB / 471.1 MB, free: 12.91 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001586/0.1147, allocations: 1.033 MB / 472.1 MB, free: 11.87 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.123e-05/0.1148, allocations: 7.938 kB / 472.2 MB, free: 11.86 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006402/0.1154, allocations: 167.6 kB / 472.3 MB, free: 11.7 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002651/0.1157, allocations: 119.6 kB / 472.4 MB, free: 11.58 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004255/0.1161, allocations: 170 kB / 472.6 MB, free: 11.41 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002628/0.1164, allocations: 259.3 kB / 472.9 MB, free: 11.16 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001145/0.1165, allocations: 29.67 kB / 472.9 MB, free: 11.13 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001315/0.1167, allocations: 99.61 kB / 473 MB, free: 11.04 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001361/0.1168, allocations: 111.6 kB / 473.1 MB, free: 10.93 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.113e-05/0.1169, allocations: 8 kB / 473.1 MB, free: 10.92 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001261/0.117, allocations: 55.91 kB / 473.1 MB, free: 10.86 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.227e-05/0.1171, allocations: 59.81 kB / 473.2 MB, free: 10.8 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001066/0.1172, allocations: 95.47 kB / 473.3 MB, free: 10.71 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002443/0.1175, allocations: 207.8 kB / 473.5 MB, free: 10.51 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.386e-06/0.1175, allocations: 7.938 kB / 473.5 MB, free: 10.5 MB / 350.1 MB Notification: Performance of FrontEnd: time 8.31e-07/0.1175, allocations: 4 kB / 473.5 MB, free: 10.5 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.508e-06/0.1175, allocations: 0 / 473.5 MB, free: 10.5 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.0009437/0.1184, allocations: 0.6456 MB / 474.2 MB, free: 9.777 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.631e-05/0.1185, allocations: 12.03 kB / 474.2 MB, free: 9.766 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.476e-05/0.1186, allocations: 32.64 kB / 474.2 MB, free: 9.734 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003294/0.1189, allocations: 274.7 kB / 474.5 MB, free: 9.426 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.436e-05/0.119, allocations: 93.67 kB / 474.6 MB, free: 9.316 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.349e-05/0.1191, allocations: 19.94 kB / 474.6 MB, free: 9.297 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003509/0.1194, allocations: 165 kB / 474.7 MB, free: 9.117 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.096e-05/0.1194, allocations: 0 / 474.7 MB, free: 9.117 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.337e-05/0.1195, allocations: 4 kB / 474.7 MB, free: 9.113 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.811e-06/0.1195, allocations: 0 / 474.7 MB, free: 9.113 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002412/0.1197, allocations: 95.88 kB / 474.8 MB, free: 9.02 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007972/0.1205, allocations: 0.6062 MB / 475.4 MB, free: 8.355 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003519/0.1209, allocations: 175.9 kB / 475.6 MB, free: 8.156 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001839/0.1211, allocations: 90.55 kB / 475.7 MB, free: 8.059 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.108e-05/0.1211, allocations: 7.984 kB / 475.7 MB, free: 8.051 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004614/0.1216, allocations: 438.8 kB / 476.1 MB, free: 7.547 MB / 350.1 MB Notification: Performance of pre-optimization done (n=23): time 1.674e-06/0.1216, allocations: 0 / 476.1 MB, free: 7.547 MB / 350.1 MB Notification: Performance of matching and sorting (n=23): time 0.0008598/0.1225, allocations: 442.3 kB / 476.6 MB, free: 7.09 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001167/0.1226, allocations: 217.6 kB / 476.8 MB, free: 6.828 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003361/0.1229, allocations: 320.9 kB / 477.1 MB, free: 6.508 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.716e-05/0.123, allocations: 29.7 kB / 477.1 MB, free: 6.473 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.958e-05/0.1231, allocations: 140.7 kB / 477.3 MB, free: 6.328 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.258e-05/0.1232, allocations: 51.34 kB / 477.3 MB, free: 6.277 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.786e-05/0.1233, allocations: 45.7 kB / 477.4 MB, free: 6.227 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001411/0.1234, allocations: 338.8 kB / 477.7 MB, free: 5.887 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001525/0.1236, allocations: 59.97 kB / 477.8 MB, free: 5.828 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002085/0.1238, allocations: 142.7 kB / 477.9 MB, free: 5.652 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004084/0.1242, allocations: 371.3 kB / 478.3 MB, free: 5.223 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.786e-06/0.1242, allocations: 0 / 478.3 MB, free: 5.223 MB / 350.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0005752/0.1248, allocations: 350 kB / 478.6 MB, free: 4.855 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.531e-05/0.1249, allocations: 97.09 kB / 478.7 MB, free: 4.742 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.845e-06/0.1249, allocations: 4 kB / 478.7 MB, free: 4.738 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.5e-05/0.1249, allocations: 4 kB / 478.7 MB, free: 4.734 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001023/0.125, allocations: 20.14 kB / 478.7 MB, free: 4.715 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.616e-06/0.125, allocations: 8 kB / 478.7 MB, free: 4.707 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001341/0.1252, allocations: 23.92 kB / 478.8 MB, free: 4.684 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.963e-05/0.1252, allocations: 12 kB / 478.8 MB, free: 4.672 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.0002331/0.1254, allocations: 265.5 kB / 479 MB, free: 4.387 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.355e-05/0.1255, allocations: 35.56 kB / 479.1 MB, free: 4.352 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.274e-05/0.1256, allocations: 29.7 kB / 479.1 MB, free: 4.324 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.935e-06/0.1256, allocations: 4 kB / 479.1 MB, free: 4.32 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.28e-06/0.1256, allocations: 0 / 479.1 MB, free: 4.32 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.22e-06/0.1256, allocations: 4 kB / 479.1 MB, free: 4.316 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002534/0.1258, allocations: 289.4 kB / 479.4 MB, free: 3.984 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.503e-06/0.1259, allocations: 0 / 479.4 MB, free: 3.984 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.03e-05/0.1259, allocations: 11.88 kB / 479.4 MB, free: 3.973 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.104e-06/0.1259, allocations: 4 kB / 479.4 MB, free: 3.969 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.355e-05/0.1259, allocations: 12 kB / 479.4 MB, free: 3.957 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.883e-06/0.1259, allocations: 0 / 479.4 MB, free: 3.957 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.635e-06/0.1259, allocations: 3.984 kB / 479.4 MB, free: 3.953 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006409/0.1266, allocations: 443.4 kB / 479.8 MB, free: 3.477 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.63e-05/0.1267, allocations: 108.8 kB / 479.9 MB, free: 3.352 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.456e-05/0.1267, allocations: 15.94 kB / 480 MB, free: 3.336 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001179/0.1269, allocations: 15.98 kB / 480 MB, free: 3.32 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.599e-05/0.1269, allocations: 19.98 kB / 480 MB, free: 3.301 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.589e-05/0.127, allocations: 12 kB / 480 MB, free: 3.289 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002217/0.1272, allocations: 236.4 kB / 480.2 MB, free: 3.059 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.1272, allocations: 0 / 480.2 MB, free: 3.059 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003195/0.1275, allocations: 63.94 kB / 480.3 MB, free: 2.996 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.0009933/0.1285, allocations: 429.1 kB / 480.7 MB, free: 2.73 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0005892/0.1291, allocations: 397.9 kB / 481.1 MB, free: 2.305 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.235e-06/0.1292, allocations: 0 / 481.1 MB, free: 2.305 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003689/0.1295, allocations: 342.1 kB / 481.4 MB, free: 1.934 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000346/0.1299, allocations: 60.3 kB / 481.5 MB, free: 1.879 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008022/0.1307, allocations: 0.5324 MB / 482 MB, free: 1.309 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003054/0.131, allocations: 0.7443 MB / 482.8 MB, free: 0.5352 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.052e-05/0.1311, allocations: 23.42 kB / 482.8 MB, free: 0.5117 MB / 350.1 MB Notification: Performance of SimCode: time 3.51e-07/0.1311, allocations: 0 / 482.8 MB, free: 0.5117 MB / 350.1 MB Notification: Performance of Templates: time 0.006131/0.1372, allocations: 3.508 MB / 486.3 MB, free: 13.01 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/OnDelay/OnDelay.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Blocks.OnDelay.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches