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.00102/0.00102, allocations: 121.8 kB / 17.79 MB, free: 5.273 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00113/0.00113, allocations: 201.2 kB / 18.74 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.414/1.414, allocations: 227.4 MB / 246.9 MB, free: 10.45 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2365/0.2365, allocations: 46.1 MB / 344.3 MB, free: 11.51 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001789/0.001789, allocations: 71.88 kB / 481.3 MB, free: 4.105 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.523/0.5248, allocations: 62.44 MB / 0.531 GB, free: 13.82 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.OnDelay): time 0.004445/0.5293, allocations: 1.917 MB / 0.5329 GB, free: 12.31 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002161/0.5315, allocations: 1.185 MB / 0.534 GB, free: 11.38 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001355/0.5316, allocations: 1.375 kB / 0.534 GB, free: 11.38 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008541/0.5325, allocations: 183.1 kB / 0.5342 GB, free: 11.28 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004675/0.533, allocations: 171.7 kB / 0.5344 GB, free: 11.16 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005762/0.5336, allocations: 164.6 kB / 0.5345 GB, free: 11.04 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005445/0.5341, allocations: 282.7 kB / 0.5348 GB, free: 10.88 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000174/0.5343, allocations: 29.23 kB / 0.5348 GB, free: 10.87 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002861/0.5346, allocations: 113.1 kB / 0.5349 GB, free: 10.8 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002562/0.5348, allocations: 119.8 kB / 0.535 GB, free: 10.73 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 5.827e-05/0.5349, allocations: 17.72 kB / 0.535 GB, free: 10.73 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002297/0.5352, allocations: 70.52 kB / 0.5351 GB, free: 10.7 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001189/0.5353, allocations: 61.48 kB / 0.5352 GB, free: 10.66 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000181/0.5355, allocations: 113.7 kB / 0.5353 GB, free: 10.58 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000571/0.536, allocations: 283.4 kB / 0.5356 GB, free: 10.39 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.791e-06/0.5361, allocations: 0 / 0.5356 GB, free: 10.39 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.264e-06/0.5361, allocations: 0 / 0.5356 GB, free: 10.39 MB / 398.1 MB Notification: Performance of Transformations before backend: time 2.055e-05/0.5361, allocations: 0 / 0.5356 GB, free: 10.39 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.00135/0.5374, allocations: 0.6725 MB / 0.5362 GB, free: 9.734 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.196e-05/0.5375, allocations: 15.11 kB / 0.5362 GB, free: 9.73 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001262/0.5376, allocations: 28.23 kB / 0.5362 GB, free: 9.719 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005074/0.5382, allocations: 289.8 kB / 0.5365 GB, free: 9.438 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001173/0.5383, allocations: 88.42 kB / 0.5366 GB, free: 9.344 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.245e-05/0.5383, allocations: 27.81 kB / 0.5366 GB, free: 9.328 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003995/0.5387, allocations: 158.6 kB / 0.5368 GB, free: 9.211 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.596e-05/0.5388, allocations: 8 kB / 0.5368 GB, free: 9.203 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.572e-05/0.5388, allocations: 8.25 kB / 0.5368 GB, free: 9.199 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.578e-06/0.5388, allocations: 2.188 kB / 0.5368 GB, free: 9.199 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002658/0.5391, allocations: 88.62 kB / 0.5369 GB, free: 9.16 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00102/0.5401, allocations: 0.6085 MB / 0.5375 GB, free: 8.574 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004134/0.5405, allocations: 172.2 kB / 0.5376 GB, free: 8.445 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002011/0.5407, allocations: 102.3 kB / 0.5377 GB, free: 8.375 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.577e-05/0.5408, allocations: 2.016 kB / 0.5377 GB, free: 8.375 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005352/0.5413, allocations: 434 kB / 0.5382 GB, free: 7.941 MB / 398.1 MB Notification: Performance of pre-optimization done (n=23): time 2.154e-06/0.5413, allocations: 0 / 0.5382 GB, free: 7.941 MB / 398.1 MB Notification: Performance of matching and sorting (n=23): time 0.001001/0.5424, allocations: 452.5 kB / 0.5386 GB, free: 7.664 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001392/0.5425, allocations: 216.4 kB / 0.5388 GB, free: 7.41 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004609/0.543, allocations: 330.1 kB / 0.5391 GB, free: 7.199 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.703e-05/0.543, allocations: 34.42 kB / 0.5391 GB, free: 7.164 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001203/0.5431, allocations: 135 kB / 0.5393 GB, free: 7.039 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.622e-05/0.5432, allocations: 53.38 kB / 0.5393 GB, free: 6.996 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001125/0.5433, allocations: 56.16 kB / 0.5394 GB, free: 6.957 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001573/0.5435, allocations: 336.7 kB / 0.5397 GB, free: 6.625 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001608/0.5437, allocations: 54.34 kB / 0.5398 GB, free: 6.602 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002201/0.5439, allocations: 144.1 kB / 0.5399 GB, free: 6.465 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004553/0.5444, allocations: 354.5 kB / 0.5402 GB, free: 6.125 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.77e-06/0.5444, allocations: 1.094 kB / 0.5402 GB, free: 6.125 MB / 398.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0006578/0.545, allocations: 351.2 kB / 0.5406 GB, free: 5.891 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.759e-05/0.5451, allocations: 98.38 kB / 0.5407 GB, free: 5.789 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.356e-05/0.5452, allocations: 6.469 kB / 0.5407 GB, free: 5.785 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.376e-05/0.5452, allocations: 7.375 kB / 0.5407 GB, free: 5.781 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001203/0.5453, allocations: 23.95 kB / 0.5407 GB, free: 5.773 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.273e-05/0.5453, allocations: 3.219 kB / 0.5407 GB, free: 5.773 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001886/0.5455, allocations: 28.25 kB / 0.5407 GB, free: 5.758 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.279e-05/0.5456, allocations: 10.16 kB / 0.5407 GB, free: 5.758 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.0003273/0.5459, allocations: 265.9 kB / 0.541 GB, free: 5.508 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.721e-05/0.546, allocations: 37.67 kB / 0.541 GB, free: 5.488 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.023e-05/0.5461, allocations: 26.8 kB / 0.541 GB, free: 5.465 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.332e-06/0.5461, allocations: 2.25 kB / 0.5411 GB, free: 5.465 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.076e-05/0.5461, allocations: 1.094 kB / 0.5411 GB, free: 5.465 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.865e-06/0.5461, allocations: 1.062 kB / 0.5411 GB, free: 5.465 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004001/0.5465, allocations: 295.5 kB / 0.5413 GB, free: 5.176 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.388e-06/0.5466, allocations: 1.094 kB / 0.5413 GB, free: 5.176 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.842e-05/0.5466, allocations: 16.41 kB / 0.5414 GB, free: 5.164 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.959e-06/0.5466, allocations: 2.562 kB / 0.5414 GB, free: 5.164 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.864e-05/0.5467, allocations: 7.031 kB / 0.5414 GB, free: 5.164 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.532e-06/0.5467, allocations: 9.078 kB / 0.5414 GB, free: 5.156 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.857e-06/0.5467, allocations: 1.594 kB / 0.5414 GB, free: 5.156 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008302/0.5475, allocations: 433.2 kB / 0.5418 GB, free: 4.867 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001139/0.5476, allocations: 116.2 kB / 0.5419 GB, free: 4.742 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.185e-05/0.5477, allocations: 9.375 kB / 0.5419 GB, free: 4.742 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001245/0.5478, allocations: 23.67 kB / 0.5419 GB, free: 4.73 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001141/0.548, allocations: 19.77 kB / 0.5419 GB, free: 4.719 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.162e-05/0.548, allocations: 13.28 kB / 0.542 GB, free: 4.715 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0003493/0.5484, allocations: 242.6 kB / 0.5422 GB, free: 4.562 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.5484, allocations: 1.469 kB / 0.5422 GB, free: 4.562 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0004375/0.5488, allocations: 71.94 kB / 0.5423 GB, free: 4.547 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.00128/0.5501, allocations: 421.2 kB / 0.5427 GB, free: 4.328 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0007859/0.5509, allocations: 386.9 kB / 0.543 GB, free: 4.035 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 4.068e-06/0.5509, allocations: 1.25 kB / 0.543 GB, free: 4.035 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004884/0.5514, allocations: 345.3 kB / 0.5434 GB, free: 3.75 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004353/0.5519, allocations: 67.38 kB / 0.5434 GB, free: 3.719 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001047/0.5529, allocations: 476 kB / 0.5439 GB, free: 3.395 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004107/0.5533, allocations: 0.7446 MB / 0.5446 GB, free: 2.668 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.000135/0.5535, allocations: 38.58 kB / 0.5446 GB, free: 2.648 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.925e-05/0.5536, allocations: 20.41 kB / 0.5447 GB, free: 2.645 MB / 398.1 MB Notification: Performance of SimCode: time 2.1e-07/0.5536, allocations: 0 / 0.5447 GB, free: 2.645 MB / 398.1 MB Notification: Performance of Templates: time 0.009199/0.5628, allocations: 3.497 MB / 0.5481 GB, free: 15.71 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/OnDelay/OnDelay.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Blocks.OnDelay.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches