Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.Blocks.OnDelay.conf.json 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/ModelicaServices 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 ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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) 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_cpp_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_cpp_ModelicaTest.Blocks.OnDelay") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001028/0.001028, allocations: 201 kB / 15.8 MB, free: 6.309 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.238/1.238, allocations: 226.5 MB / 243.1 MB, free: 12.57 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007072/0.0007072, allocations: 95.22 kB / 295.1 MB, free: 4.48 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.174/0.174, allocations: 44.84 MB / 392 MB, free: 11.39 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002747/0.0002747, allocations: 8 kB / 464.7 MB, free: 68.1 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09198/0.09227, allocations: 62.96 MB / 0.5153 GB, free: 5.137 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.OnDelay): time 0.001673/0.09398, allocations: 1.583 MB / 0.5169 GB, free: 3.535 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.00121/0.09521, allocations: 1.092 MB / 0.5179 GB, free: 2.438 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.924e-05/0.0953, allocations: 4 kB / 0.5179 GB, free: 2.434 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004576/0.09577, allocations: 171.6 kB / 0.5181 GB, free: 2.266 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002447/0.09602, allocations: 151.5 kB / 0.5182 GB, free: 2.117 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003193/0.09635, allocations: 158.2 kB / 0.5184 GB, free: 1.965 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001798/0.09654, allocations: 243.3 kB / 0.5186 GB, free: 1.727 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.305e-05/0.09664, allocations: 29.67 kB / 0.5187 GB, free: 1.699 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 9.437e-05/0.09674, allocations: 95.67 kB / 0.5187 GB, free: 1.605 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001044/0.09685, allocations: 107.6 kB / 0.5189 GB, free: 1.5 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 2.519e-05/0.09688, allocations: 8 kB / 0.5189 GB, free: 1.492 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001067/0.09699, allocations: 43.97 kB / 0.5189 GB, free: 1.449 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 5.733e-05/0.09706, allocations: 55.81 kB / 0.519 GB, free: 1.395 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 4.977e-05/0.09711, allocations: 73.58 kB / 0.519 GB, free: 1.316 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001778/0.0973, allocations: 211.7 kB / 0.5192 GB, free: 1.109 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.739e-06/0.09731, allocations: 3.984 kB / 0.5192 GB, free: 1.105 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.573e-06/0.09732, allocations: 4 kB / 0.5192 GB, free: 1.102 MB / 346.7 MB Notification: Performance of Transformations before backend: time 5.119e-06/0.09733, allocations: 0 / 0.5192 GB, free: 1.102 MB / 346.7 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.0006737/0.098, allocations: 0.6221 MB / 0.5198 GB, free: 416 kB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.203e-05/0.09804, allocations: 12.03 kB / 0.5199 GB, free: 404 kB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.702e-05/0.09811, allocations: 27.72 kB / 0.5199 GB, free: 376 kB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002526/0.09837, allocations: 262.6 kB / 0.5201 GB, free: 68 kB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001076/0.09848, allocations: 101 kB / 0.5202 GB, free: 15.95 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.072e-05/0.09852, allocations: 12 kB / 0.5202 GB, free: 15.94 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002932/0.09882, allocations: 170.9 kB / 0.5204 GB, free: 15.76 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.834e-06/0.09884, allocations: 3.938 kB / 0.5204 GB, free: 15.75 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.933e-05/0.09886, allocations: 8 kB / 0.5204 GB, free: 15.75 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.019e-06/0.09887, allocations: 0 / 0.5204 GB, free: 15.75 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002348/0.09911, allocations: 91.88 kB / 0.5205 GB, free: 15.66 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007491/0.09987, allocations: 0.6219 MB / 0.5211 GB, free: 14.98 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003067/0.1002, allocations: 179.9 kB / 0.5213 GB, free: 14.77 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000163/0.1004, allocations: 90.55 kB / 0.5214 GB, free: 14.68 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.128e-05/0.1004, allocations: 0 / 0.5214 GB, free: 14.68 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004184/0.1008, allocations: 437.1 kB / 0.5218 GB, free: 14.17 MB / 362.7 MB Notification: Performance of pre-optimization done (n=23): time 1.453e-06/0.1008, allocations: 0 / 0.5218 GB, free: 14.17 MB / 362.7 MB Notification: Performance of matching and sorting (n=23): time 0.0007444/0.1016, allocations: 450.6 kB / 0.5222 GB, free: 13.71 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.968e-05/0.1017, allocations: 217.6 kB / 0.5224 GB, free: 13.45 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003315/0.102, allocations: 326.6 kB / 0.5227 GB, free: 13.12 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.476e-05/0.1021, allocations: 29.7 kB / 0.5228 GB, free: 13.09 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.444e-05/0.1022, allocations: 140.6 kB / 0.5229 GB, free: 12.94 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.306e-05/0.1022, allocations: 51.34 kB / 0.5229 GB, free: 12.89 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.989e-06/0.1022, allocations: 7.938 kB / 0.5229 GB, free: 12.88 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001161/0.1024, allocations: 338.8 kB / 0.5233 GB, free: 12.54 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001373/0.1025, allocations: 60.16 kB / 0.5233 GB, free: 12.48 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001851/0.1027, allocations: 147.2 kB / 0.5235 GB, free: 12.3 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00019/0.1029, allocations: 153.3 kB / 0.5236 GB, free: 12.14 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.755e-06/0.1029, allocations: 0 / 0.5236 GB, free: 12.14 MB / 362.7 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0004977/0.1034, allocations: 354.2 kB / 0.524 GB, free: 11.77 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.363e-05/0.1035, allocations: 97.08 kB / 0.524 GB, free: 11.65 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.913e-06/0.1035, allocations: 4.188 kB / 0.5241 GB, free: 11.65 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.356e-05/0.1035, allocations: 4 kB / 0.5241 GB, free: 11.64 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.415e-05/0.1036, allocations: 20.16 kB / 0.5241 GB, free: 11.62 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.086e-05/0.1036, allocations: 15.94 kB / 0.5241 GB, free: 11.61 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000128/0.1038, allocations: 31.83 kB / 0.5241 GB, free: 11.58 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.752e-05/0.1038, allocations: 8 kB / 0.5241 GB, free: 11.57 MB / 362.7 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,$whenCondition5,$PRE.booleanTable.combiTimeTable.nextTimeEvent,$whenCondition6,$whenCondition7,onDelay1.u,onDelay1.y,onDelay1.delaySignal,onDelay1.t_next,booleanTable.combiTimeTable.nextTimeEvent,$PRE.booleanTable.combiTimeTable.nextTimeEventScaled,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: 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002022/0.104, allocations: 269.7 kB / 0.5244 GB, free: 11.28 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.171e-05/0.1041, allocations: 31.72 kB / 0.5244 GB, free: 11.25 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.24e-05/0.1041, allocations: 29.7 kB / 0.5244 GB, free: 11.22 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.029e-06/0.1041, allocations: 4 kB / 0.5244 GB, free: 11.22 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.809e-06/0.1041, allocations: 0 / 0.5244 GB, free: 11.22 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.129e-06/0.1041, allocations: 3.953 kB / 0.5244 GB, free: 11.21 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002424/0.1044, allocations: 297.3 kB / 0.5247 GB, free: 10.88 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.333e-06/0.1044, allocations: 0 / 0.5247 GB, free: 10.88 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.812e-05/0.1044, allocations: 7.984 kB / 0.5247 GB, free: 10.87 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.526e-06/0.1044, allocations: 4 kB / 0.5247 GB, free: 10.86 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.041e-05/0.1045, allocations: 4 kB / 0.5247 GB, free: 10.86 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.526e-06/0.1045, allocations: 7.938 kB / 0.5248 GB, free: 10.85 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.415e-06/0.1045, allocations: 3.938 kB / 0.5248 GB, free: 10.85 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000571/0.1051, allocations: 458.4 kB / 0.5252 GB, free: 10.36 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.84e-05/0.1051, allocations: 100.8 kB / 0.5253 GB, free: 10.24 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.669e-05/0.1052, allocations: 15.98 kB / 0.5253 GB, free: 10.23 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001126/0.1053, allocations: 20 kB / 0.5253 GB, free: 10.21 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.78e-05/0.1054, allocations: 19.97 kB / 0.5253 GB, free: 10.19 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.847e-05/0.1054, allocations: 20 kB / 0.5254 GB, free: 10.17 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.000219/0.1056, allocations: 237.9 kB / 0.5256 GB, free: 9.938 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.1057, allocations: 0 / 0.5256 GB, free: 9.938 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002823/0.1059, allocations: 71.88 kB / 0.5257 GB, free: 9.867 MB / 362.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000811/0.1068, allocations: 427.3 kB / 0.5261 GB, free: 9.582 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0005133/0.1073, allocations: 394 kB / 0.5264 GB, free: 9.16 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.687e-06/0.1073, allocations: 4 kB / 0.5264 GB, free: 9.156 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000326/0.1076, allocations: 346.5 kB / 0.5268 GB, free: 8.781 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003124/0.108, allocations: 53.19 kB / 0.5268 GB, free: 8.73 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007549/0.1087, allocations: 0.5146 MB / 0.5273 GB, free: 8.176 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002742/0.109, allocations: 0.7521 MB / 0.5281 GB, free: 7.398 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.235e-05/0.1091, allocations: 19.44 kB / 0.5281 GB, free: 7.379 MB / 362.7 MB Notification: Performance of SimCode: time 2.21e-07/0.1091, allocations: 0 / 0.5281 GB, free: 7.379 MB / 362.7 MB Notification: Performance of Templates: time 0.005125/0.1142, allocations: 3.555 MB / 0.5316 GB, free: 3.828 MB / 362.7 MB make -j1 -f ModelicaTest_trunk_cpp_ModelicaTest.Blocks.OnDelay.makefile (rm -f ModelicaTest_trunk_cpp_ModelicaTest.Blocks.OnDelay.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.Blocks.OnDelay.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.Blocks.OnDelay.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.Blocks.OnDelay.sim & ./ModelicaTest_trunk_cpp_ModelicaTest.Blocks.OnDelay --alarm=480 -emit_protected > ModelicaTest_trunk_cpp_ModelicaTest.Blocks.OnDelay.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_ModelicaTest.Blocks.OnDelay_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/OnDelay/OnDelay.csv","../files/ModelicaTest_trunk_cpp_ModelicaTest.Blocks.OnDelay.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches