Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3.2.3_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_3.2.3_ModelicaTest.Blocks.OnDelay") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001178/0.001178, allocations: 98.58 kB / 16.93 MB, free: 5.785 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.001278/0.001278, allocations: 191.3 kB / 17.86 MB, free: 5.18 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.496/1.496, allocations: 205.1 MB / 223.7 MB, free: 12.31 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2504/0.2504, allocations: 43.51 MB / 314.6 MB, free: 0.5391 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001838/0.001838, allocations: 69.67 kB / 383.4 MB, free: 56.75 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1213/0.1232, allocations: 57.78 MB / 441.2 MB, free: 6.938 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.OnDelay): time 0.003191/0.1264, allocations: 1.881 MB / 443.1 MB, free: 5.039 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001389/0.1278, allocations: 0.9597 MB / 444 MB, free: 4.07 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001535/0.128, allocations: 4 kB / 444 MB, free: 4.066 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006349/0.1286, allocations: 183.5 kB / 444.2 MB, free: 3.887 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003176/0.129, allocations: 131.5 kB / 444.3 MB, free: 3.758 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004325/0.1294, allocations: 170.8 kB / 444.5 MB, free: 3.594 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003021/0.1297, allocations: 271.3 kB / 444.8 MB, free: 3.328 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001034/0.1298, allocations: 33.95 kB / 444.8 MB, free: 3.293 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001465/0.13, allocations: 107.7 kB / 444.9 MB, free: 3.188 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001336/0.1301, allocations: 115.5 kB / 445 MB, free: 3.074 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.616e-05/0.1302, allocations: 20 kB / 445 MB, free: 3.055 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001501/0.1303, allocations: 59.97 kB / 445.1 MB, free: 2.996 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 8.078e-05/0.1304, allocations: 59.81 kB / 445.1 MB, free: 2.938 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000118/0.1305, allocations: 111.4 kB / 445.3 MB, free: 2.828 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003485/0.1309, allocations: 275.1 kB / 445.5 MB, free: 2.559 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.226e-06/0.1309, allocations: 0 / 445.5 MB, free: 2.559 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.152e-06/0.1309, allocations: 0 / 445.5 MB, free: 2.559 MB / 318.1 MB Notification: Performance of Transformations before backend: time 8.125e-06/0.1309, allocations: 8 kB / 445.5 MB, free: 2.551 MB / 318.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.001106/0.132, allocations: 0.6494 MB / 446.2 MB, free: 1.828 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.59e-05/0.1321, allocations: 11.89 kB / 446.2 MB, free: 1.816 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.722e-05/0.1322, allocations: 32.66 kB / 446.2 MB, free: 1.785 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003238/0.1325, allocations: 286.6 kB / 446.5 MB, free: 1.469 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.517e-05/0.1326, allocations: 89.67 kB / 446.6 MB, free: 1.363 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.124e-05/0.1326, allocations: 15.94 kB / 446.6 MB, free: 1.348 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003036/0.133, allocations: 157 kB / 446.8 MB, free: 1.176 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.124e-05/0.133, allocations: 7.875 kB / 446.8 MB, free: 1.168 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.309e-05/0.133, allocations: 11.98 kB / 446.8 MB, free: 1.156 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.252e-06/0.133, allocations: 0 / 446.8 MB, free: 1.156 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000214/0.1332, allocations: 95.86 kB / 446.9 MB, free: 1.062 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007171/0.134, allocations: 0.6024 MB / 447.5 MB, free: 412 kB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003004/0.1343, allocations: 179.9 kB / 447.7 MB, free: 204 kB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001422/0.1344, allocations: 90.55 kB / 447.7 MB, free: 104 kB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.928e-05/0.1345, allocations: 7.938 kB / 447.7 MB, free: 96 kB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004782/0.1349, allocations: 431.1 kB / 448.2 MB, free: 15.6 MB / 334.1 MB Notification: Performance of pre-optimization done (n=23): time 1.472e-06/0.135, allocations: 0 / 448.2 MB, free: 15.6 MB / 334.1 MB Notification: Performance of matching and sorting (n=23): time 0.0008384/0.1358, allocations: 442.3 kB / 448.6 MB, free: 15.14 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001223/0.1359, allocations: 221.6 kB / 448.8 MB, free: 14.88 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003415/0.1363, allocations: 317 kB / 449.1 MB, free: 14.55 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.253e-05/0.1363, allocations: 33.7 kB / 449.2 MB, free: 14.52 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001161/0.1365, allocations: 140.5 kB / 449.3 MB, free: 14.38 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.345e-05/0.1365, allocations: 51.34 kB / 449.3 MB, free: 14.32 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.451e-05/0.1366, allocations: 49.7 kB / 449.4 MB, free: 14.27 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001544/0.1368, allocations: 338.8 kB / 449.7 MB, free: 13.93 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000147/0.1369, allocations: 55.97 kB / 449.8 MB, free: 13.88 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002102/0.1371, allocations: 138.3 kB / 449.9 MB, free: 13.7 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004172/0.1376, allocations: 366.9 kB / 450.3 MB, free: 13.28 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.847e-06/0.1376, allocations: 384 / 450.3 MB, free: 13.28 MB / 334.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0005661/0.1382, allocations: 354.1 kB / 450.6 MB, free: 12.91 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.38e-05/0.1382, allocations: 97.09 kB / 450.7 MB, free: 12.79 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.918e-06/0.1383, allocations: 4 kB / 450.7 MB, free: 12.79 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.686e-05/0.1383, allocations: 4 kB / 450.7 MB, free: 12.79 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001074/0.1384, allocations: 19.92 kB / 450.7 MB, free: 12.77 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.037e-06/0.1384, allocations: 4 kB / 450.7 MB, free: 12.76 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001423/0.1386, allocations: 28.11 kB / 450.8 MB, free: 12.73 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.192e-05/0.1386, allocations: 12.16 kB / 450.8 MB, free: 12.72 MB / 334.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.0002466/0.1388, allocations: 277.3 kB / 451.1 MB, free: 12.43 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.92e-05/0.1389, allocations: 31.66 kB / 451.1 MB, free: 12.39 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.798e-05/0.139, allocations: 33.69 kB / 451.1 MB, free: 12.36 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.425e-06/0.139, allocations: 0 / 451.1 MB, free: 12.36 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.04e-06/0.139, allocations: 0 / 451.1 MB, free: 12.36 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.072e-06/0.139, allocations: 8 kB / 451.1 MB, free: 12.35 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002761/0.1393, allocations: 285.4 kB / 451.4 MB, free: 12.02 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.384e-06/0.1393, allocations: 0 / 451.4 MB, free: 12.02 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.197e-05/0.1393, allocations: 7.938 kB / 451.4 MB, free: 12.02 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.971e-06/0.1393, allocations: 4 kB / 451.4 MB, free: 12.01 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.42e-05/0.1394, allocations: 8 kB / 451.4 MB, free: 12 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.2e-06/0.1394, allocations: 0 / 451.4 MB, free: 12 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.473e-06/0.1394, allocations: 3.938 kB / 451.4 MB, free: 12 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000643/0.14, allocations: 451.4 kB / 451.9 MB, free: 11.52 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.668e-05/0.1401, allocations: 104.9 kB / 452 MB, free: 11.39 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.551e-05/0.1402, allocations: 19.92 kB / 452 MB, free: 11.38 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001091/0.1403, allocations: 12 kB / 452 MB, free: 11.36 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.872e-05/0.1404, allocations: 31.94 kB / 452 MB, free: 11.33 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.719e-05/0.1404, allocations: 12 kB / 452 MB, free: 11.32 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002326/0.1407, allocations: 236.4 kB / 452.3 MB, free: 11.09 MB / 334.1 MB Notification: Performance of sort global known variables: time 2.41e-07/0.1407, allocations: 4 kB / 452.3 MB, free: 11.09 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003294/0.141, allocations: 64 kB / 452.3 MB, free: 11.02 MB / 334.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.00102/0.1421, allocations: 436.5 kB / 452.8 MB, free: 10.68 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0006067/0.1427, allocations: 390.4 kB / 453.2 MB, free: 10.26 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.396e-06/0.1427, allocations: 4.062 kB / 453.2 MB, free: 10.26 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003772/0.1431, allocations: 346.1 kB / 453.5 MB, free: 9.883 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003576/0.1434, allocations: 73.16 kB / 453.6 MB, free: 9.812 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009372/0.1444, allocations: 479.1 kB / 454 MB, free: 9.309 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004412/0.1448, allocations: 0.7479 MB / 454.8 MB, free: 8.535 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.505e-05/0.1449, allocations: 27.44 kB / 454.8 MB, free: 8.508 MB / 334.1 MB Notification: Performance of SimCode: time 6.01e-07/0.1449, allocations: 0 / 454.8 MB, free: 8.508 MB / 334.1 MB Notification: Performance of Templates: time 0.007128/0.1521, allocations: 3.509 MB / 458.3 MB, free: 5 MB / 334.1 MB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Blocks.OnDelay.makefile (rm -f ModelicaTest_3.2.3_ModelicaTest.Blocks.OnDelay.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Blocks.OnDelay.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Blocks.OnDelay.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Blocks.OnDelay.sim & ./ModelicaTest_3.2.3_ModelicaTest.Blocks.OnDelay -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Blocks.OnDelay.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Blocks.OnDelay_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Blocks/OnDelay/OnDelay.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.Blocks.OnDelay.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches