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.00113/0.00113, allocations: 103.8 kB / 17.03 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.001166/0.001167, allocations: 192.1 kB / 17.96 MB, free: 5.066 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.444/1.444, allocations: 205.1 MB / 223.8 MB, free: 12.25 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.2095/0.2095, allocations: 43.52 MB / 314.7 MB, free: 480 kB / 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.00145/0.001451, allocations: 70.61 kB / 384.2 MB, free: 56.39 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1018/0.1032, allocations: 57.79 MB / 442 MB, free: 6.141 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.OnDelay): time 0.002857/0.1062, allocations: 1.875 MB / 443.8 MB, free: 4.254 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001116/0.1073, allocations: 0.9636 MB / 444.8 MB, free: 3.281 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.78e-05/0.1074, allocations: 3.938 kB / 444.8 MB, free: 3.277 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005671/0.108, allocations: 183.5 kB / 445 MB, free: 3.098 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000277/0.1083, allocations: 127.5 kB / 445.1 MB, free: 2.973 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003697/0.1086, allocations: 171.1 kB / 445.3 MB, free: 2.809 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002453/0.1089, allocations: 275.4 kB / 445.5 MB, free: 2.539 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001085/0.109, allocations: 41.61 kB / 445.6 MB, free: 2.496 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001165/0.1091, allocations: 111.6 kB / 445.7 MB, free: 2.387 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001202/0.1093, allocations: 111.6 kB / 445.8 MB, free: 2.277 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.873e-05/0.1093, allocations: 16 kB / 445.8 MB, free: 2.262 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001318/0.1094, allocations: 67.97 kB / 445.9 MB, free: 2.195 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 7.708e-05/0.1095, allocations: 59.81 kB / 445.9 MB, free: 2.137 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 9.977e-05/0.1096, allocations: 111.4 kB / 446 MB, free: 2.027 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002834/0.1099, allocations: 279.1 kB / 446.3 MB, free: 1.754 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.749e-06/0.1099, allocations: 0 / 446.3 MB, free: 1.754 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.764e-06/0.1099, allocations: 0 / 446.3 MB, free: 1.754 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.224e-06/0.1099, allocations: 0 / 446.3 MB, free: 1.754 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.0009172/0.1109, allocations: 0.6611 MB / 447 MB, free: 1.02 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.327e-05/0.1109, allocations: 11.89 kB / 447 MB, free: 1.008 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.701e-05/0.111, allocations: 28.66 kB / 447 MB, free: 0.9805 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002887/0.1113, allocations: 282.6 kB / 447.3 MB, free: 0.668 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.529e-05/0.1114, allocations: 97.67 kB / 447.4 MB, free: 0.5547 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.738e-05/0.1114, allocations: 15.94 kB / 447.4 MB, free: 0.5391 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002571/0.1117, allocations: 154.2 kB / 447.6 MB, free: 380 kB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.131e-05/0.1117, allocations: 0 / 447.6 MB, free: 380 kB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.328e-05/0.1117, allocations: 8 kB / 447.6 MB, free: 372 kB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.222e-06/0.1117, allocations: 4 kB / 447.6 MB, free: 368 kB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002085/0.1119, allocations: 95.86 kB / 447.7 MB, free: 272 kB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008044/0.1127, allocations: 0.5947 MB / 448.3 MB, free: 15.61 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000352/0.1131, allocations: 183.9 kB / 448.4 MB, free: 15.41 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000161/0.1133, allocations: 90.48 kB / 448.5 MB, free: 15.31 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.393e-05/0.1133, allocations: 8 kB / 448.5 MB, free: 15.3 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004244/0.1138, allocations: 435 kB / 449 MB, free: 14.8 MB / 334.1 MB Notification: Performance of pre-optimization done (n=23): time 1.613e-06/0.1138, allocations: 0 / 449 MB, free: 14.8 MB / 334.1 MB Notification: Performance of matching and sorting (n=23): time 0.0007992/0.1146, allocations: 446.6 kB / 449.4 MB, free: 14.34 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001173/0.1147, allocations: 225.6 kB / 449.6 MB, free: 14.07 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000326/0.115, allocations: 309 kB / 449.9 MB, free: 13.76 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.695e-05/0.1151, allocations: 33.7 kB / 449.9 MB, free: 13.72 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001195/0.1152, allocations: 140.5 kB / 450.1 MB, free: 13.58 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.912e-05/0.1152, allocations: 51.34 kB / 450.1 MB, free: 13.53 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.536e-05/0.1153, allocations: 53.7 kB / 450.2 MB, free: 13.47 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001291/0.1155, allocations: 338.8 kB / 450.5 MB, free: 13.13 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001422/0.1156, allocations: 59.97 kB / 450.6 MB, free: 13.07 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002001/0.1158, allocations: 146.1 kB / 450.7 MB, free: 12.89 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003846/0.1162, allocations: 354.7 kB / 451.1 MB, free: 12.48 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.266e-06/0.1162, allocations: 8 kB / 451.1 MB, free: 12.47 MB / 334.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0005159/0.1168, allocations: 342.3 kB / 451.4 MB, free: 12.11 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.014e-05/0.1168, allocations: 97.09 kB / 451.5 MB, free: 12 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.43e-06/0.1169, allocations: 48 / 451.5 MB, free: 12 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.024e-05/0.1169, allocations: 7.984 kB / 451.5 MB, free: 11.99 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000101/0.117, allocations: 23.92 kB / 451.5 MB, free: 11.96 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.156e-06/0.117, allocations: 4.219 kB / 451.5 MB, free: 11.96 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001307/0.1171, allocations: 27.89 kB / 451.6 MB, free: 11.93 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.92e-05/0.1172, allocations: 8 kB / 451.6 MB, free: 11.93 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.0002191/0.1174, allocations: 277.3 kB / 451.8 MB, free: 11.63 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.097e-05/0.1175, allocations: 35.66 kB / 451.9 MB, free: 11.59 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.757e-05/0.1175, allocations: 25.7 kB / 451.9 MB, free: 11.57 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.027e-06/0.1175, allocations: 4 kB / 451.9 MB, free: 11.56 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.352e-06/0.1175, allocations: 8 kB / 451.9 MB, free: 11.55 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.717e-06/0.1175, allocations: 0 / 451.9 MB, free: 11.55 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000272/0.1178, allocations: 293.4 kB / 452.2 MB, free: 11.22 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.463e-06/0.1178, allocations: 3.938 kB / 452.2 MB, free: 11.21 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.22e-05/0.1179, allocations: 11.88 kB / 452.2 MB, free: 11.2 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.204e-06/0.1179, allocations: 0 / 452.2 MB, free: 11.2 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.329e-05/0.1179, allocations: 8 kB / 452.2 MB, free: 11.2 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.904e-06/0.1179, allocations: 0 / 452.2 MB, free: 11.2 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.253e-06/0.1179, allocations: 4 kB / 452.2 MB, free: 11.19 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006158/0.1185, allocations: 443.4 kB / 452.7 MB, free: 10.71 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.344e-05/0.1186, allocations: 104.7 kB / 452.8 MB, free: 10.59 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.333e-05/0.1187, allocations: 15.98 kB / 452.8 MB, free: 10.58 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001073/0.1188, allocations: 15.94 kB / 452.8 MB, free: 10.56 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.456e-05/0.1189, allocations: 19.97 kB / 452.8 MB, free: 10.54 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.984e-05/0.1189, allocations: 19.94 kB / 452.8 MB, free: 10.52 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002167/0.1191, allocations: 236.4 kB / 453.1 MB, free: 10.29 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.1192, allocations: 0 / 453.1 MB, free: 10.29 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003074/0.1195, allocations: 60 kB / 453.1 MB, free: 10.23 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.00097/0.1204, allocations: 430.9 kB / 453.5 MB, free: 9.898 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0005366/0.121, allocations: 390.1 kB / 453.9 MB, free: 9.48 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 4.588e-06/0.121, allocations: 4 kB / 453.9 MB, free: 9.477 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003615/0.1214, allocations: 346.2 kB / 454.3 MB, free: 9.102 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003341/0.1217, allocations: 61.59 kB / 454.3 MB, free: 9.043 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000798/0.1225, allocations: 449.3 kB / 454.8 MB, free: 8.574 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003185/0.1229, allocations: 0.7521 MB / 455.5 MB, free: 7.797 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 8.631e-05/0.123, allocations: 25.53 kB / 455.5 MB, free: 7.773 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.3e-05/0.123, allocations: 19.44 kB / 455.6 MB, free: 7.754 MB / 334.1 MB Notification: Performance of SimCode: time 2.71e-07/0.123, allocations: 4 kB / 455.6 MB, free: 7.75 MB / 334.1 MB Notification: Performance of Templates: time 0.007182/0.1302, allocations: 3.446 MB / 459 MB, free: 4.305 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 -s gbode -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