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.00126/0.00126, allocations: 207.3 kB / 17.99 MB, free: 3.777 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.296/1.296, allocations: 226.7 MB / 245.5 MB, free: 6.977 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001173/0.001173, allocations: 111 kB / 296.7 MB, free: 6.461 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3441/0.3441, allocations: 44.83 MB / 392.7 MB, free: 34.72 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001286/0.001286, allocations: 59.91 kB / 465.5 MB, free: 12.09 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3202/0.3215, allocations: 62.02 MB / 0.5151 GB, free: 37.85 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.OnDelay): time 0.003259/0.3248, allocations: 1.972 MB / 0.5171 GB, free: 36.47 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.00158/0.3265, allocations: 1.197 MB / 0.5182 GB, free: 35.65 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001031/0.3266, allocations: 3.094 kB / 0.5182 GB, free: 35.65 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000602/0.3272, allocations: 176.9 kB / 0.5184 GB, free: 35.6 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003099/0.3275, allocations: 150.8 kB / 0.5186 GB, free: 35.53 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003904/0.3279, allocations: 169.8 kB / 0.5187 GB, free: 35.44 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002204/0.3281, allocations: 269.3 kB / 0.519 GB, free: 35.34 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001042/0.3283, allocations: 23.34 kB / 0.519 GB, free: 35.33 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001086/0.3284, allocations: 106 kB / 0.5191 GB, free: 35.29 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001257/0.3285, allocations: 111.3 kB / 0.5192 GB, free: 35.25 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 2.825e-05/0.3285, allocations: 8.594 kB / 0.5192 GB, free: 35.25 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001178/0.3287, allocations: 60.12 kB / 0.5193 GB, free: 35.23 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 6.854e-05/0.3287, allocations: 60.22 kB / 0.5193 GB, free: 35.2 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 8.687e-05/0.3288, allocations: 105.2 kB / 0.5194 GB, free: 35.14 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002438/0.3291, allocations: 274.8 kB / 0.5197 GB, free: 35.03 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.569e-06/0.3291, allocations: 6.875 kB / 0.5197 GB, free: 35.03 MB / 378.7 MB Notification: Performance of FrontEnd: time 8.42e-07/0.3291, allocations: 0 / 0.5197 GB, free: 35.03 MB / 378.7 MB Notification: Performance of Transformations before backend: time 4.398e-06/0.3291, allocations: 0 / 0.5197 GB, free: 35.03 MB / 378.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.0007575/0.3299, allocations: 0.6667 MB / 0.5203 GB, free: 34.41 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.123e-05/0.3299, allocations: 6.188 kB / 0.5204 GB, free: 34.41 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.559e-05/0.33, allocations: 29.09 kB / 0.5204 GB, free: 34.4 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000265/0.3303, allocations: 274 kB / 0.5206 GB, free: 34.15 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.668e-05/0.3303, allocations: 100.9 kB / 0.5207 GB, free: 34.05 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.876e-05/0.3304, allocations: 19.41 kB / 0.5208 GB, free: 34.04 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002699/0.3306, allocations: 154.1 kB / 0.5209 GB, free: 33.95 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.338e-06/0.3307, allocations: 0 / 0.5209 GB, free: 33.95 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.798e-05/0.3307, allocations: 5.812 kB / 0.5209 GB, free: 33.95 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.492e-06/0.3307, allocations: 2.812 kB / 0.5209 GB, free: 33.95 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002032/0.3309, allocations: 97.56 kB / 0.521 GB, free: 33.92 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006401/0.3316, allocations: 0.6081 MB / 0.5216 GB, free: 33.41 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002736/0.3318, allocations: 175.7 kB / 0.5218 GB, free: 33.29 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001379/0.332, allocations: 93.02 kB / 0.5219 GB, free: 33.23 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.776e-05/0.332, allocations: 6.969 kB / 0.5219 GB, free: 33.23 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003323/0.3324, allocations: 439 kB / 0.5223 GB, free: 32.82 MB / 378.7 MB Notification: Performance of pre-optimization done (n=23): time 1.563e-06/0.3324, allocations: 0 / 0.5223 GB, free: 32.82 MB / 378.7 MB Notification: Performance of matching and sorting (n=23): time 0.0006875/0.3331, allocations: 446.9 kB / 0.5227 GB, free: 32.59 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.469e-05/0.3331, allocations: 221.1 kB / 0.5229 GB, free: 32.33 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002656/0.3334, allocations: 322.8 kB / 0.5232 GB, free: 32.16 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.007e-05/0.3334, allocations: 38.64 kB / 0.5233 GB, free: 32.12 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.127e-05/0.3335, allocations: 138.9 kB / 0.5234 GB, free: 32 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.61e-05/0.3336, allocations: 48.03 kB / 0.5234 GB, free: 31.96 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.23e-05/0.3336, allocations: 52.19 kB / 0.5235 GB, free: 31.93 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 5.485e-05/0.3337, allocations: 337.9 kB / 0.5238 GB, free: 31.61 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001238/0.3338, allocations: 62.64 kB / 0.5239 GB, free: 31.59 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001511/0.334, allocations: 144 kB / 0.524 GB, free: 31.46 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002889/0.3343, allocations: 364 kB / 0.5244 GB, free: 31.12 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.344e-06/0.3343, allocations: 0 / 0.5244 GB, free: 31.12 MB / 378.7 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0004125/0.3347, allocations: 347.5 kB / 0.5247 GB, free: 30.91 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.598e-05/0.3348, allocations: 100.4 kB / 0.5248 GB, free: 30.81 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.591e-06/0.3348, allocations: 0 / 0.5248 GB, free: 30.81 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.709e-05/0.3348, allocations: 6.062 kB / 0.5248 GB, free: 30.81 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.345e-05/0.3349, allocations: 18.16 kB / 0.5248 GB, free: 30.81 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.816e-06/0.3349, allocations: 10.28 kB / 0.5248 GB, free: 30.8 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001175/0.335, allocations: 28.19 kB / 0.5248 GB, free: 30.79 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.633e-05/0.3351, allocations: 8.719 kB / 0.5249 GB, free: 30.79 MB / 378.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,$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.0001483/0.3352, allocations: 265.6 kB / 0.5251 GB, free: 30.56 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.496e-05/0.3353, allocations: 36.94 kB / 0.5251 GB, free: 30.54 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.642e-05/0.3353, allocations: 27.66 kB / 0.5252 GB, free: 30.53 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.387e-06/0.3353, allocations: 6.562 kB / 0.5252 GB, free: 30.52 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.569e-06/0.3353, allocations: 0 / 0.5252 GB, free: 30.52 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.506e-06/0.3353, allocations: 0 / 0.5252 GB, free: 30.52 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000191/0.3355, allocations: 299.5 kB / 0.5255 GB, free: 30.28 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.763e-06/0.3355, allocations: 2.719 kB / 0.5255 GB, free: 30.28 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.531e-05/0.3356, allocations: 9.969 kB / 0.5255 GB, free: 30.28 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.625e-06/0.3356, allocations: 2.719 kB / 0.5255 GB, free: 30.28 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.065e-05/0.3356, allocations: 12.31 kB / 0.5255 GB, free: 30.27 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.553e-06/0.3356, allocations: 0 / 0.5255 GB, free: 30.27 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.172e-06/0.3356, allocations: 0 / 0.5255 GB, free: 30.27 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007975/0.3364, allocations: 1.115 MB / 0.5266 GB, free: 29.36 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.623e-05/0.3365, allocations: 100.4 kB / 0.5267 GB, free: 29.26 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.376e-05/0.3365, allocations: 12.34 kB / 0.5267 GB, free: 29.25 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001026/0.3366, allocations: 22.52 kB / 0.5267 GB, free: 29.25 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.77e-05/0.3367, allocations: 19.19 kB / 0.5267 GB, free: 29.24 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.574e-05/0.3367, allocations: 14.56 kB / 0.5267 GB, free: 29.24 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001741/0.3369, allocations: 247.9 kB / 0.527 GB, free: 29.11 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.41e-07/0.3369, allocations: 0 / 0.527 GB, free: 29.11 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0003782/0.3373, allocations: 67.78 kB / 0.527 GB, free: 29.1 MB / 378.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 (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.0008284/0.3381, allocations: 437.6 kB / 0.5275 GB, free: 28.88 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0004325/0.3386, allocations: 393.5 kB / 0.5278 GB, free: 28.6 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.385e-06/0.3386, allocations: 2.781 kB / 0.5278 GB, free: 28.6 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002689/0.3389, allocations: 337.7 kB / 0.5282 GB, free: 28.34 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003225/0.3392, allocations: 50.66 kB / 0.5282 GB, free: 28.32 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008143/0.34, allocations: 0.6785 MB / 0.5289 GB, free: 27.84 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001864/0.3402, allocations: 0.7552 MB / 0.5296 GB, free: 27.14 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 8.443e-05/0.3403, allocations: 26.83 kB / 0.5296 GB, free: 27.14 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.74e-05/0.3404, allocations: 25.72 kB / 0.5297 GB, free: 27.12 MB / 378.7 MB Notification: Performance of SimCode: time 2.1e-07/0.3404, allocations: 0 / 0.5297 GB, free: 27.12 MB / 378.7 MB Notification: Performance of Templates: time 0.005974/0.3464, allocations: 3.349 MB / 0.5329 GB, free: 26.78 MB / 378.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/jenkins/ws/OpenModelicaLibraryTestingWork@2/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