Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Blocks.OnDelay.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_ModelicaTest.Blocks.OnDelay") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001213/0.001213, allocations: 115.8 kB / 18.4 MB, free: 4.754 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001265/0.001265, allocations: 203.4 kB / 19.35 MB, free: 3.809 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.24/1.24, allocations: 227.4 MB / 247.5 MB, free: 10.42 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1893/0.1893, allocations: 46.1 MB / 344.9 MB, free: 11.51 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001268/0.001268, allocations: 75.61 kB / 419 MB, free: 19.02 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09287/0.09416, allocations: 62.45 MB / 481.4 MB, free: 4.547 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.OnDelay): time 0.003175/0.09737, allocations: 1.916 MB / 483.4 MB, free: 2.617 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001725/0.09911, allocations: 1.181 MB / 484.5 MB, free: 1.43 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.862e-05/0.09923, allocations: 0 / 484.5 MB, free: 1.43 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005626/0.0998, allocations: 191.1 kB / 484.7 MB, free: 1.246 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003781/0.1002, allocations: 171.3 kB / 484.9 MB, free: 1.078 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003456/0.1005, allocations: 159.5 kB / 485 MB, free: 0.9219 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002898/0.1008, allocations: 291.3 kB / 485.3 MB, free: 0.6367 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.625e-05/0.1009, allocations: 29.67 kB / 485.4 MB, free: 0.6094 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001207/0.1011, allocations: 111.7 kB / 485.5 MB, free: 0.5 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001336/0.1012, allocations: 115.6 kB / 485.6 MB, free: 396 kB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.931e-05/0.1013, allocations: 16 kB / 485.6 MB, free: 380 kB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001261/0.1014, allocations: 79.89 kB / 485.7 MB, free: 300 kB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.537e-05/0.1015, allocations: 59.77 kB / 485.7 MB, free: 240 kB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001086/0.1016, allocations: 107.5 kB / 485.8 MB, free: 132 kB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003139/0.1019, allocations: 291 kB / 486.1 MB, free: 15.84 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.427e-06/0.1019, allocations: 0 / 486.1 MB, free: 15.84 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.555e-06/0.1019, allocations: 4 kB / 486.1 MB, free: 15.84 MB / 366.1 MB Notification: Performance of Transformations before backend: time 4.669e-06/0.1019, allocations: 0 / 486.1 MB, free: 15.84 MB / 366.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.0007944/0.1027, allocations: 0.6572 MB / 486.8 MB, free: 15.11 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.838e-05/0.1028, allocations: 13.11 kB / 486.8 MB, free: 15.1 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.297e-05/0.1028, allocations: 28.66 kB / 486.8 MB, free: 15.07 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003325/0.1032, allocations: 283.5 kB / 487.1 MB, free: 14.75 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.965e-05/0.1033, allocations: 93.67 kB / 487.2 MB, free: 14.64 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.64e-05/0.1033, allocations: 15.94 kB / 487.2 MB, free: 14.63 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002846/0.1036, allocations: 161 kB / 487.4 MB, free: 14.45 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.354e-06/0.1036, allocations: 0 / 487.4 MB, free: 14.45 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.888e-05/0.1036, allocations: 8 kB / 487.4 MB, free: 14.45 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.027e-06/0.1036, allocations: 0 / 487.4 MB, free: 14.45 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002065/0.1039, allocations: 91.86 kB / 487.5 MB, free: 14.36 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007057/0.1046, allocations: 0.6063 MB / 488.1 MB, free: 13.69 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003085/0.1049, allocations: 171.9 kB / 488.2 MB, free: 13.5 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001612/0.1051, allocations: 98.48 kB / 488.3 MB, free: 13.39 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.015e-05/0.1051, allocations: 3.984 kB / 488.3 MB, free: 13.39 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000381/0.1055, allocations: 441 kB / 488.8 MB, free: 12.88 MB / 366.1 MB Notification: Performance of pre-optimization done (n=23): time 3.146e-06/0.1055, allocations: 7.984 kB / 488.8 MB, free: 12.87 MB / 366.1 MB Notification: Performance of matching and sorting (n=23): time 0.000745/0.1062, allocations: 434.3 kB / 489.2 MB, free: 12.42 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.258e-05/0.1064, allocations: 225.5 kB / 489.4 MB, free: 12.15 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003009/0.1067, allocations: 330.5 kB / 489.7 MB, free: 11.82 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.555e-05/0.1067, allocations: 33.7 kB / 489.8 MB, free: 11.78 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.687e-05/0.1068, allocations: 136.7 kB / 489.9 MB, free: 11.64 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.332e-05/0.1068, allocations: 51.34 kB / 490 MB, free: 11.59 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.585e-05/0.1069, allocations: 53.7 kB / 490 MB, free: 11.53 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001167/0.107, allocations: 338.8 kB / 490.3 MB, free: 11.19 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001276/0.1072, allocations: 55.97 kB / 490.4 MB, free: 11.14 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001854/0.1074, allocations: 146.6 kB / 490.5 MB, free: 10.96 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003503/0.1077, allocations: 354.7 kB / 490.9 MB, free: 10.54 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.928e-06/0.1077, allocations: 4 kB / 490.9 MB, free: 10.54 MB / 366.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0004814/0.1082, allocations: 350 kB / 491.2 MB, free: 10.17 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.892e-05/0.1083, allocations: 93.31 kB / 491.3 MB, free: 10.06 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.759e-06/0.1083, allocations: 8 kB / 491.3 MB, free: 10.05 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.472e-05/0.1083, allocations: 4 kB / 491.3 MB, free: 10.05 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.466e-05/0.1084, allocations: 27.92 kB / 491.4 MB, free: 10.02 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.823e-06/0.1084, allocations: 7.938 kB / 491.4 MB, free: 10.02 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001193/0.1086, allocations: 19.92 kB / 491.4 MB, free: 9.996 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.854e-05/0.1086, allocations: 12 kB / 491.4 MB, free: 9.984 MB / 366.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.0001906/0.1088, allocations: 265.4 kB / 491.7 MB, free: 9.695 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.585e-05/0.1089, allocations: 43.55 kB / 491.7 MB, free: 9.652 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.777e-05/0.1089, allocations: 21.72 kB / 491.7 MB, free: 9.633 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.647e-06/0.1089, allocations: 4 kB / 491.7 MB, free: 9.629 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.927e-06/0.1089, allocations: 0 / 491.7 MB, free: 9.629 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.668e-06/0.1089, allocations: 3.984 kB / 491.7 MB, free: 9.625 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002285/0.1092, allocations: 293.5 kB / 492 MB, free: 9.289 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.333e-06/0.1092, allocations: 0 / 492 MB, free: 9.289 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.985e-05/0.1092, allocations: 11.94 kB / 492 MB, free: 9.277 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.356e-06/0.1092, allocations: 4 kB / 492 MB, free: 9.273 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.098e-05/0.1092, allocations: 8 kB / 492 MB, free: 9.266 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.813e-06/0.1092, allocations: 4 kB / 492 MB, free: 9.262 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.22e-07/0.1093, allocations: 0 / 492 MB, free: 9.262 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005739/0.1098, allocations: 443.4 kB / 492.5 MB, free: 8.785 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.006e-05/0.1099, allocations: 104.8 kB / 492.6 MB, free: 8.664 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.788e-05/0.11, allocations: 15.98 kB / 492.6 MB, free: 8.648 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001045/0.1101, allocations: 16 kB / 492.6 MB, free: 8.633 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.986e-05/0.1102, allocations: 19.97 kB / 492.6 MB, free: 8.613 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.845e-05/0.1102, allocations: 15.94 kB / 492.7 MB, free: 8.598 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002221/0.1104, allocations: 245.9 kB / 492.9 MB, free: 8.359 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.1104, allocations: 0 / 492.9 MB, free: 8.359 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002897/0.1107, allocations: 67.84 kB / 493 MB, free: 8.293 MB / 366.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.0008719/0.1116, allocations: 429.7 kB / 493.4 MB, free: 8.004 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.000507/0.1121, allocations: 398 kB / 493.8 MB, free: 7.578 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.904e-06/0.1121, allocations: 0 / 493.8 MB, free: 7.578 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003207/0.1125, allocations: 338.4 kB / 494.1 MB, free: 7.211 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003056/0.1128, allocations: 62.27 kB / 494.2 MB, free: 7.156 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006666/0.1135, allocations: 453.8 kB / 494.6 MB, free: 6.68 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002853/0.1138, allocations: 0.7479 MB / 495.3 MB, free: 5.902 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 8.073e-05/0.1138, allocations: 33.83 kB / 495.4 MB, free: 5.871 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.283e-05/0.1139, allocations: 31.38 kB / 495.4 MB, free: 5.84 MB / 366.1 MB Notification: Performance of SimCode: time 4.1e-07/0.1139, allocations: 0 / 495.4 MB, free: 5.84 MB / 366.1 MB Notification: Performance of Templates: time 0.006339/0.1203, allocations: 3.486 MB / 498.9 MB, free: 2.371 MB / 366.1 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.Blocks.OnDelay.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Blocks.OnDelay.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Blocks.OnDelay.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Blocks.OnDelay.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Blocks.OnDelay.sim & ./ModelicaTest_trunk_ModelicaTest.Blocks.OnDelay -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Blocks.OnDelay.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_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_trunk_ModelicaTest.Blocks.OnDelay.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches