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/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_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/Complex trunk/package.mo): time 0.001217/0.001217, allocations: 199.7 kB / 18.11 MB, free: 3.738 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.607/1.607, allocations: 226.5 MB / 245.4 MB, free: 8.25 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008828/0.0008828, allocations: 104 kB / 297.5 MB, free: 6.945 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.4136/0.4136, allocations: 44.82 MB / 394.3 MB, free: 35.81 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002752/0.0002752, allocations: 8 kB / 467.9 MB, free: 12.11 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4667/0.467, allocations: 62.96 MB / 0.5184 GB, free: 37.4 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1428/0.6099, allocations: 91.97 MB / 0.6082 GB, free: 13.38 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002268/0.6102, allocations: 63.97 kB / 0.6083 GB, free: 13.32 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02095/0.6311, allocations: 6.974 MB / 0.6151 GB, free: 6.332 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.164e-06/0.6312, allocations: 0 / 0.6151 GB, free: 6.332 MB / 426.7 MB Notification: Performance of Transformations before backend: time 2.949e-05/0.6312, allocations: 4 kB / 0.6151 GB, free: 6.328 MB / 426.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.00115/0.6324, allocations: 0.6611 MB / 0.6157 GB, free: 5.59 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.718e-05/0.6324, allocations: 8.031 kB / 0.6158 GB, free: 5.582 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001312/0.6326, allocations: 32.66 kB / 0.6158 GB, free: 5.551 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006186/0.6332, allocations: 299.5 kB / 0.6161 GB, free: 5.219 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001126/0.6333, allocations: 93.67 kB / 0.6162 GB, free: 5.109 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.292e-05/0.6334, allocations: 12.38 kB / 0.6162 GB, free: 5.098 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003528/0.6337, allocations: 161.5 kB / 0.6163 GB, free: 4.922 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.996e-06/0.6338, allocations: 0 / 0.6163 GB, free: 4.922 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.236e-05/0.6338, allocations: 11.94 kB / 0.6163 GB, free: 4.91 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.534e-06/0.6338, allocations: 4 kB / 0.6163 GB, free: 4.906 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002464/0.6341, allocations: 99.86 kB / 0.6164 GB, free: 4.809 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009788/0.6351, allocations: 0.6258 MB / 0.617 GB, free: 4.125 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003647/0.6354, allocations: 184.2 kB / 0.6172 GB, free: 3.918 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001838/0.6356, allocations: 102.5 kB / 0.6173 GB, free: 3.809 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.919e-05/0.6357, allocations: 8 kB / 0.6173 GB, free: 3.801 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004613/0.6361, allocations: 434.1 kB / 0.6177 GB, free: 3.301 MB / 426.7 MB Notification: Performance of pre-optimization done (n=23): time 2.074e-06/0.6361, allocations: 0 / 0.6177 GB, free: 3.301 MB / 426.7 MB Notification: Performance of matching and sorting (n=23): time 0.0008688/0.637, allocations: 446.3 kB / 0.6182 GB, free: 2.84 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001481/0.6372, allocations: 225.5 kB / 0.6184 GB, free: 2.57 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004427/0.6376, allocations: 326.4 kB / 0.6187 GB, free: 2.242 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 3.355e-05/0.6377, allocations: 33.7 kB / 0.6187 GB, free: 2.203 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001039/0.6378, allocations: 140.6 kB / 0.6189 GB, free: 2.062 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.377e-05/0.6378, allocations: 55.33 kB / 0.6189 GB, free: 2.008 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.289e-05/0.6379, allocations: 8 kB / 0.6189 GB, free: 2 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001484/0.638, allocations: 338.8 kB / 0.6192 GB, free: 1.66 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001484/0.6382, allocations: 55.97 kB / 0.6193 GB, free: 1.605 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002119/0.6384, allocations: 150.7 kB / 0.6194 GB, free: 1.422 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000425/0.6388, allocations: 354.7 kB / 0.6198 GB, free: 1.008 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.426e-06/0.6389, allocations: 0 / 0.6198 GB, free: 1.008 MB / 426.7 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0005813/0.6394, allocations: 352 kB / 0.6201 GB, free: 0.6406 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.778e-05/0.6395, allocations: 101.1 kB / 0.6202 GB, free: 0.5234 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.484e-06/0.6396, allocations: 3.938 kB / 0.6202 GB, free: 0.5195 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.729e-05/0.6396, allocations: 4 kB / 0.6202 GB, free: 0.5156 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001184/0.6397, allocations: 31.86 kB / 0.6203 GB, free: 496 kB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.039e-05/0.6397, allocations: 4 kB / 0.6203 GB, free: 492 kB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001544/0.6399, allocations: 23.89 kB / 0.6203 GB, free: 468 kB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.3e-05/0.6399, allocations: 16.12 kB / 0.6203 GB, free: 452 kB / 426.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.0002689/0.6402, allocations: 261.8 kB / 0.6205 GB, free: 160 kB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.421e-05/0.6403, allocations: 31.72 kB / 0.6206 GB, free: 128 kB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003883/0.6407, allocations: 209.2 kB / 0.6208 GB, free: 15.91 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.687e-06/0.6407, allocations: 3.938 kB / 0.6208 GB, free: 15.91 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.817e-06/0.6407, allocations: 8 kB / 0.6208 GB, free: 15.9 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.468e-06/0.6407, allocations: 4 kB / 0.6208 GB, free: 15.9 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003218/0.641, allocations: 301.4 kB / 0.6211 GB, free: 15.55 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.494e-06/0.641, allocations: 0 / 0.6211 GB, free: 15.55 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.007e-05/0.6411, allocations: 11.94 kB / 0.6211 GB, free: 15.54 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.585e-06/0.6411, allocations: 0 / 0.6211 GB, free: 15.54 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.668e-05/0.6411, allocations: 12 kB / 0.6211 GB, free: 15.53 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.657e-06/0.6411, allocations: 4.031 kB / 0.6211 GB, free: 15.53 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.639e-06/0.6412, allocations: 11.92 kB / 0.6211 GB, free: 15.52 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006595/0.6418, allocations: 459.2 kB / 0.6216 GB, free: 15.02 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001037/0.6419, allocations: 116.7 kB / 0.6217 GB, free: 14.89 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.408e-05/0.642, allocations: 12 kB / 0.6217 GB, free: 14.88 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001155/0.6421, allocations: 23.92 kB / 0.6217 GB, free: 14.86 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.074e-05/0.6422, allocations: 23.97 kB / 0.6217 GB, free: 14.83 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.499e-05/0.6422, allocations: 12 kB / 0.6217 GB, free: 14.82 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.0002735/0.6425, allocations: 237.9 kB / 0.622 GB, free: 14.59 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.21e-07/0.6425, allocations: 0 / 0.622 GB, free: 14.59 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.000367/0.6429, allocations: 83.92 kB / 0.622 GB, free: 14.51 MB / 442.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,onDelay1.t_next,onDelay1.delaySignal,$whenCondition7,$whenCondition6,booleanTable.combiTimeTable.nextTimeEvent,booleanTable.combiTimeTable.nextTimeEventScaled) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (15): * Single equations (assignments): 10 * 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.001043/0.644, allocations: 437.3 kB / 0.6225 GB, free: 14.22 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.0006148/0.6446, allocations: 409.9 kB / 0.6228 GB, free: 13.78 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 2.735e-06/0.6446, allocations: 0 / 0.6228 GB, free: 13.78 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003635/0.645, allocations: 346.1 kB / 0.6232 GB, free: 13.41 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004135/0.6454, allocations: 48.53 kB / 0.6232 GB, free: 13.36 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008942/0.6463, allocations: 0.4971 MB / 0.6237 GB, free: 12.83 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003289/0.6466, allocations: 0.7521 MB / 0.6244 GB, free: 12.05 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.0001147/0.6468, allocations: 29.53 kB / 0.6245 GB, free: 12.03 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.029e-05/0.6468, allocations: 19.44 kB / 0.6245 GB, free: 12.01 MB / 442.7 MB Notification: Performance of SimCode: time 3.3e-07/0.6468, allocations: 0 / 0.6245 GB, free: 12.01 MB / 442.7 MB Notification: Performance of Templates: time 0.007313/0.6542, allocations: 3.338 MB / 0.6277 GB, free: 8.676 MB / 442.7 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","../files/ModelicaTest_trunk_ModelicaTest.Blocks.OnDelay.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches