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.0007808/0.0007808, allocations: 94.3 kB / 18 MB, free: 5.602 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.0008797/0.0008797, allocations: 177.3 kB / 18.91 MB, free: 4.738 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.429/1.429, allocations: 223.3 MB / 243 MB, free: 14.31 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.1971/0.1971, allocations: 44.24 MB / 338.3 MB, free: 2.41 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003239/0.0003239, allocations: 11.94 kB / 411 MB, free: 27.27 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1013/0.1016, allocations: 61.93 MB / 472.9 MB, free: 13.32 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.OnDelay): time 0.002592/0.1043, allocations: 1.6 MB / 474.5 MB, free: 11.71 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001822/0.1061, allocations: 1.002 MB / 475.5 MB, free: 10.7 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001398/0.1063, allocations: 4 kB / 475.5 MB, free: 10.7 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006525/0.1069, allocations: 167.6 kB / 475.7 MB, free: 10.53 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003362/0.1073, allocations: 115.7 kB / 475.8 MB, free: 10.42 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005228/0.1078, allocations: 170.9 kB / 476 MB, free: 10.25 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.000341/0.1082, allocations: 255.4 kB / 476.2 MB, free: 10 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001384/0.1083, allocations: 41.59 kB / 476.2 MB, free: 9.965 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001855/0.1085, allocations: 87.69 kB / 476.3 MB, free: 9.879 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002157/0.1088, allocations: 111.5 kB / 476.4 MB, free: 9.77 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.87e-05/0.1088, allocations: 8 kB / 476.4 MB, free: 9.762 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001494/0.109, allocations: 47.97 kB / 476.5 MB, free: 9.715 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.756e-05/0.1091, allocations: 63.75 kB / 476.6 MB, free: 9.652 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001392/0.1092, allocations: 125.1 kB / 476.7 MB, free: 9.523 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002868/0.1095, allocations: 199.8 kB / 476.9 MB, free: 9.328 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.643e-06/0.1095, allocations: 4 kB / 476.9 MB, free: 9.324 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.245e-06/0.1095, allocations: 3.938 kB / 476.9 MB, free: 9.32 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.769e-06/0.1095, allocations: 0 / 476.9 MB, free: 9.32 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.001005/0.1106, allocations: 0.6223 MB / 477.5 MB, free: 8.625 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.859e-05/0.1106, allocations: 8.031 kB / 477.5 MB, free: 8.617 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.145e-05/0.1107, allocations: 32.66 kB / 477.5 MB, free: 8.586 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003905/0.1111, allocations: 274.7 kB / 477.8 MB, free: 8.277 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001347/0.1113, allocations: 93.66 kB / 477.9 MB, free: 8.168 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.89e-05/0.1113, allocations: 15.94 kB / 477.9 MB, free: 8.152 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003323/0.1116, allocations: 161 kB / 478.1 MB, free: 7.977 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.127e-06/0.1117, allocations: 0 / 478.1 MB, free: 7.977 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.337e-05/0.1117, allocations: 12 kB / 478.1 MB, free: 7.965 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.059e-06/0.1117, allocations: 0 / 478.1 MB, free: 7.965 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002516/0.112, allocations: 91.88 kB / 478.2 MB, free: 7.875 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000863/0.1128, allocations: 0.6141 MB / 478.8 MB, free: 7.203 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003816/0.1132, allocations: 176 kB / 479 MB, free: 7.004 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001835/0.1134, allocations: 102.5 kB / 479.1 MB, free: 6.895 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.635e-05/0.1135, allocations: 0 / 479.1 MB, free: 6.895 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004549/0.1139, allocations: 437 kB / 479.5 MB, free: 6.391 MB / 350.1 MB Notification: Performance of pre-optimization done (n=23): time 1.543e-06/0.1139, allocations: 0 / 479.5 MB, free: 6.391 MB / 350.1 MB Notification: Performance of matching and sorting (n=23): time 0.0008502/0.1148, allocations: 446.5 kB / 479.9 MB, free: 5.93 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001084/0.1149, allocations: 225.6 kB / 480.1 MB, free: 5.66 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003989/0.1153, allocations: 316.9 kB / 480.5 MB, free: 5.344 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.072e-05/0.1154, allocations: 37.69 kB / 480.5 MB, free: 5.301 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.587e-05/0.1155, allocations: 128.7 kB / 480.6 MB, free: 5.168 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.918e-05/0.1156, allocations: 51.34 kB / 480.7 MB, free: 5.117 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.853e-05/0.1156, allocations: 33.7 kB / 480.7 MB, free: 5.078 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001299/0.1158, allocations: 334.8 kB / 481 MB, free: 4.742 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001581/0.1159, allocations: 63.97 kB / 481.1 MB, free: 4.68 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002127/0.1161, allocations: 146.7 kB / 481.2 MB, free: 4.5 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004659/0.1166, allocations: 371 kB / 481.6 MB, free: 4.07 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.008e-06/0.1166, allocations: 0 / 481.6 MB, free: 4.07 MB / 350.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.000575/0.1172, allocations: 350.1 kB / 481.9 MB, free: 3.703 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.307e-05/0.1173, allocations: 103.2 kB / 482 MB, free: 3.586 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.063e-06/0.1173, allocations: 4.219 kB / 482 MB, free: 3.582 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.479e-05/0.1173, allocations: 7.984 kB / 482.1 MB, free: 3.574 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001045/0.1174, allocations: 19.94 kB / 482.1 MB, free: 3.555 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.679e-06/0.1175, allocations: 4 kB / 482.1 MB, free: 3.551 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001584/0.1176, allocations: 35.77 kB / 482.1 MB, free: 3.516 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.145e-05/0.1177, allocations: 8 kB / 482.1 MB, free: 3.508 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.0002643/0.1179, allocations: 265.5 kB / 482.4 MB, free: 3.223 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.41e-05/0.118, allocations: 35.66 kB / 482.4 MB, free: 3.188 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.603e-05/0.1181, allocations: 25.7 kB / 482.4 MB, free: 3.164 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.23e-06/0.1181, allocations: 4 kB / 482.4 MB, free: 3.16 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.33e-06/0.1181, allocations: 0 / 482.4 MB, free: 3.16 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.598e-06/0.1181, allocations: 0 / 482.4 MB, free: 3.16 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002994/0.1184, allocations: 301.3 kB / 482.7 MB, free: 2.816 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.385e-06/0.1184, allocations: 0 / 482.7 MB, free: 2.816 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.155e-05/0.1184, allocations: 4 kB / 482.7 MB, free: 2.812 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.348e-06/0.1185, allocations: 3.938 kB / 482.7 MB, free: 2.809 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.25e-05/0.1185, allocations: 12 kB / 482.8 MB, free: 2.797 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.123e-06/0.1185, allocations: 7.984 kB / 482.8 MB, free: 2.789 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.303e-06/0.1185, allocations: 0 / 482.8 MB, free: 2.789 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007895/0.1193, allocations: 447.5 kB / 483.2 MB, free: 2.309 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.266e-05/0.1194, allocations: 116.7 kB / 483.3 MB, free: 2.176 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.338e-05/0.1195, allocations: 12 kB / 483.3 MB, free: 2.164 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000126/0.1196, allocations: 19.98 kB / 483.3 MB, free: 2.145 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.638e-05/0.1197, allocations: 19.97 kB / 483.4 MB, free: 2.125 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.833e-05/0.1197, allocations: 19.98 kB / 483.4 MB, free: 2.105 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.000239/0.12, allocations: 228.5 kB / 483.6 MB, free: 1.883 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.21e-07/0.12, allocations: 0 / 483.6 MB, free: 1.883 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003341/0.1203, allocations: 67.92 kB / 483.7 MB, free: 1.816 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.0009831/0.1213, allocations: 428.4 kB / 484.1 MB, free: 1.551 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0005778/0.1219, allocations: 396.2 kB / 484.5 MB, free: 1.129 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.485e-06/0.1219, allocations: 4.375 kB / 484.5 MB, free: 1.125 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003668/0.1223, allocations: 346.1 kB / 484.8 MB, free: 0.75 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003778/0.1227, allocations: 60.2 kB / 484.9 MB, free: 0.6953 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008373/0.1235, allocations: 0.5256 MB / 485.4 MB, free: 128 kB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000319/0.1239, allocations: 0.7482 MB / 486.2 MB, free: 15.35 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.346e-05/0.1239, allocations: 23.42 kB / 486.2 MB, free: 15.32 MB / 366.1 MB Notification: Performance of SimCode: time 3.51e-07/0.1239, allocations: 0 / 486.2 MB, free: 15.32 MB / 366.1 MB Notification: Performance of Templates: time 0.006096/0.13, allocations: 3.483 MB / 489.7 MB, free: 11.85 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