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.00148/0.00148, allocations: 108.6 kB / 18.45 MB, free: 4.621 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001762/0.001762, allocations: 204 kB / 19.4 MB, free: 3.68 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.409/1.409, allocations: 227.4 MB / 247.6 MB, free: 10.47 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.21/0.21, allocations: 46.1 MB / 344.9 MB, free: 11.51 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001471/0.001471, allocations: 71.88 kB / 482 MB, free: 4.082 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2903/0.2917, allocations: 62.44 MB / 0.5316 GB, free: 13.59 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.OnDelay): time 0.003195/0.295, allocations: 1.908 MB / 0.5335 GB, free: 12.09 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002008/0.297, allocations: 1.178 MB / 0.5347 GB, free: 11.17 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.05e-05/0.2971, allocations: 2.75 kB / 0.5347 GB, free: 11.17 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006241/0.2978, allocations: 190 kB / 0.5348 GB, free: 11.06 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004131/0.2982, allocations: 166.4 kB / 0.535 GB, free: 10.95 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004454/0.2986, allocations: 165.5 kB / 0.5352 GB, free: 10.83 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003919/0.299, allocations: 290.5 kB / 0.5354 GB, free: 10.66 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001534/0.2992, allocations: 41.47 kB / 0.5355 GB, free: 10.64 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001404/0.2994, allocations: 108.8 kB / 0.5356 GB, free: 10.58 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001553/0.2995, allocations: 120.3 kB / 0.5357 GB, free: 10.5 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 3.823e-05/0.2996, allocations: 17.84 kB / 0.5357 GB, free: 10.5 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001526/0.2997, allocations: 62.31 kB / 0.5358 GB, free: 10.48 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000138/0.2999, allocations: 73.16 kB / 0.5358 GB, free: 10.43 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001476/0.3, allocations: 110.4 kB / 0.536 GB, free: 10.36 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003346/0.3004, allocations: 274.8 kB / 0.5362 GB, free: 10.18 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.773e-06/0.3004, allocations: 5.312 kB / 0.5362 GB, free: 10.17 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.845e-06/0.3004, allocations: 4 kB / 0.5362 GB, free: 10.17 MB / 398.1 MB Notification: Performance of Transformations before backend: time 6.041e-06/0.3004, allocations: 3.938 kB / 0.5362 GB, free: 10.16 MB / 398.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.0009369/0.3013, allocations: 0.6612 MB / 0.5369 GB, free: 9.52 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.105e-05/0.3014, allocations: 13.92 kB / 0.5369 GB, free: 9.516 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.779e-05/0.3015, allocations: 29.06 kB / 0.5369 GB, free: 9.504 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000397/0.3019, allocations: 277.2 kB / 0.5372 GB, free: 9.234 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.49e-05/0.302, allocations: 91.61 kB / 0.5373 GB, free: 9.137 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.089e-05/0.302, allocations: 24.28 kB / 0.5373 GB, free: 9.125 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003223/0.3023, allocations: 156 kB / 0.5374 GB, free: 9.008 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.576e-06/0.3024, allocations: 0 / 0.5374 GB, free: 9.008 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.953e-05/0.3024, allocations: 4.094 kB / 0.5374 GB, free: 9.008 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.28e-06/0.3024, allocations: 2.656 kB / 0.5374 GB, free: 9.008 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003194/0.3027, allocations: 96.92 kB / 0.5375 GB, free: 8.961 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008548/0.3036, allocations: 0.6077 MB / 0.5381 GB, free: 8.375 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003402/0.3039, allocations: 179.6 kB / 0.5383 GB, free: 8.238 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001809/0.3041, allocations: 91.23 kB / 0.5384 GB, free: 8.18 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.344e-05/0.3042, allocations: 5.969 kB / 0.5384 GB, free: 8.176 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005054/0.3047, allocations: 438 kB / 0.5388 GB, free: 7.738 MB / 398.1 MB Notification: Performance of pre-optimization done (n=23): time 1.603e-06/0.3047, allocations: 0 / 0.5388 GB, free: 7.738 MB / 398.1 MB Notification: Performance of matching and sorting (n=23): time 0.0008393/0.3055, allocations: 444.3 kB / 0.5392 GB, free: 7.469 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001414/0.3057, allocations: 219.5 kB / 0.5394 GB, free: 7.211 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000333/0.306, allocations: 330.3 kB / 0.5398 GB, free: 7 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.659e-05/0.3061, allocations: 33.98 kB / 0.5398 GB, free: 6.965 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.433e-05/0.3062, allocations: 131.5 kB / 0.5399 GB, free: 6.844 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.969e-05/0.3062, allocations: 53.44 kB / 0.54 GB, free: 6.801 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.217e-05/0.3063, allocations: 51.23 kB / 0.54 GB, free: 6.766 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001586/0.3064, allocations: 337.6 kB / 0.5403 GB, free: 6.434 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001386/0.3066, allocations: 54.34 kB / 0.5404 GB, free: 6.41 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002164/0.3068, allocations: 144.5 kB / 0.5405 GB, free: 6.273 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003948/0.3072, allocations: 357.9 kB / 0.5409 GB, free: 5.93 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.455e-06/0.3073, allocations: 1.156 kB / 0.5409 GB, free: 5.93 MB / 398.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.000509/0.3078, allocations: 355.5 kB / 0.5412 GB, free: 5.691 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.681e-05/0.3079, allocations: 100 kB / 0.5413 GB, free: 5.586 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.061e-06/0.3079, allocations: 2.031 kB / 0.5413 GB, free: 5.586 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.466e-05/0.3079, allocations: 3.219 kB / 0.5413 GB, free: 5.586 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001047/0.308, allocations: 19.06 kB / 0.5413 GB, free: 5.582 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.758e-06/0.3081, allocations: 7.578 kB / 0.5413 GB, free: 5.578 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001702/0.3082, allocations: 29.59 kB / 0.5414 GB, free: 5.562 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.987e-05/0.3083, allocations: 13.47 kB / 0.5414 GB, free: 5.559 MB / 398.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.0002054/0.3085, allocations: 266 kB / 0.5416 GB, free: 5.309 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.332e-05/0.3085, allocations: 33.97 kB / 0.5417 GB, free: 5.293 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.916e-05/0.3086, allocations: 26.39 kB / 0.5417 GB, free: 5.27 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.406e-06/0.3086, allocations: 2.938 kB / 0.5417 GB, free: 5.27 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.518e-06/0.3086, allocations: 0 / 0.5417 GB, free: 5.27 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.478e-06/0.3086, allocations: 1.375 kB / 0.5417 GB, free: 5.27 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002549/0.3089, allocations: 296.2 kB / 0.542 GB, free: 4.98 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.264e-06/0.3089, allocations: 1.75 kB / 0.542 GB, free: 4.98 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.651e-05/0.3089, allocations: 16.05 kB / 0.542 GB, free: 4.969 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.446e-06/0.3089, allocations: 1.531 kB / 0.542 GB, free: 4.969 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.701e-05/0.309, allocations: 11.53 kB / 0.542 GB, free: 4.965 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.364e-06/0.309, allocations: 1.719 kB / 0.542 GB, free: 4.965 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.162e-06/0.309, allocations: 0 / 0.542 GB, free: 4.965 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006855/0.3097, allocations: 457.2 kB / 0.5424 GB, free: 4.652 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.29e-05/0.3098, allocations: 100 kB / 0.5425 GB, free: 4.543 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.44e-05/0.3098, allocations: 12.88 kB / 0.5425 GB, free: 4.539 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001245/0.31, allocations: 16.27 kB / 0.5426 GB, free: 4.535 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001387/0.3101, allocations: 23.81 kB / 0.5426 GB, free: 4.52 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.793e-05/0.3102, allocations: 14.08 kB / 0.5426 GB, free: 4.516 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002324/0.3104, allocations: 242 kB / 0.5428 GB, free: 4.363 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.3104, allocations: 4 kB / 0.5428 GB, free: 4.359 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0003247/0.3107, allocations: 68.75 kB / 0.5429 GB, free: 4.348 MB / 398.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.0009796/0.3117, allocations: 420.7 kB / 0.5433 GB, free: 4.133 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0006002/0.3123, allocations: 388.7 kB / 0.5437 GB, free: 3.84 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 4.028e-06/0.3123, allocations: 4.062 kB / 0.5437 GB, free: 3.836 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003918/0.3127, allocations: 357 kB / 0.544 GB, free: 3.539 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003912/0.3131, allocations: 56.58 kB / 0.5441 GB, free: 3.516 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008455/0.314, allocations: 481.5 kB / 0.5445 GB, free: 3.184 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003072/0.3143, allocations: 0.7527 MB / 0.5453 GB, free: 2.449 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.114e-05/0.3144, allocations: 31.77 kB / 0.5453 GB, free: 2.434 MB / 398.1 MB Notification: Performance of SimCode: time 2.6e-07/0.3144, allocations: 1.156 kB / 0.5453 GB, free: 2.434 MB / 398.1 MB Notification: Performance of Templates: time 0.005968/0.3204, allocations: 3.587 MB / 0.5488 GB, free: 15.46 MB / 414.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 -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