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.0009389/0.0009423, allocations: 195.2 kB / 16.1 MB, free: 5.707 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.319/1.319, allocations: 226.5 MB / 243.4 MB, free: 8.113 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007943/0.0007943, allocations: 93.25 kB / 295.5 MB, free: 6.891 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3123/0.3123, allocations: 44.83 MB / 392.3 MB, free: 35.69 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002736/0.0002736, allocations: 12 kB / 465.3 MB, free: 12.68 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2986/0.2989, allocations: 62.96 MB / 0.5159 GB, free: 37.07 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.OnDelay): time 0.001874/0.3009, allocations: 1.576 MB / 0.5174 GB, free: 35.92 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.00126/0.3021, allocations: 1.119 MB / 0.5185 GB, free: 35.15 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.15e-05/0.3022, allocations: 0 / 0.5185 GB, free: 35.15 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004791/0.3027, allocations: 174.2 kB / 0.5187 GB, free: 35.1 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002599/0.303, allocations: 131.8 kB / 0.5188 GB, free: 35.05 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003541/0.3034, allocations: 167.2 kB / 0.519 GB, free: 34.96 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002137/0.3036, allocations: 244.9 kB / 0.5192 GB, free: 34.86 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001345/0.3037, allocations: 32.92 kB / 0.5192 GB, free: 34.85 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001113/0.3038, allocations: 95.05 kB / 0.5193 GB, free: 34.82 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001154/0.304, allocations: 109.3 kB / 0.5194 GB, free: 34.78 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 2.621e-05/0.304, allocations: 8.531 kB / 0.5194 GB, free: 34.78 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001129/0.3041, allocations: 50.88 kB / 0.5195 GB, free: 34.77 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 6.732e-05/0.3042, allocations: 50.62 kB / 0.5195 GB, free: 34.75 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 9.613e-05/0.3043, allocations: 135.6 kB / 0.5196 GB, free: 34.65 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000198/0.3045, allocations: 205.4 kB / 0.5198 GB, free: 34.6 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.42e-06/0.3045, allocations: 0 / 0.5198 GB, free: 34.6 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.553e-06/0.3045, allocations: 0 / 0.5198 GB, free: 34.6 MB / 378.7 MB Notification: Performance of Transformations before backend: time 4.729e-06/0.3045, allocations: 3.969 kB / 0.5198 GB, free: 34.6 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.0007077/0.3052, allocations: 0.6202 MB / 0.5205 GB, free: 34.01 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.586e-05/0.3053, allocations: 8.781 kB / 0.5205 GB, free: 34.01 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.593e-05/0.3054, allocations: 30 kB / 0.5205 GB, free: 34 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002761/0.3056, allocations: 279.7 kB / 0.5208 GB, free: 33.74 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.182e-05/0.3057, allocations: 90.48 kB / 0.5208 GB, free: 33.64 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.546e-05/0.3058, allocations: 19.62 kB / 0.5209 GB, free: 33.63 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002672/0.306, allocations: 170.2 kB / 0.521 GB, free: 33.53 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.807e-06/0.306, allocations: 0 / 0.521 GB, free: 33.53 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.999e-05/0.3061, allocations: 5.875 kB / 0.521 GB, free: 33.53 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.859e-06/0.3061, allocations: 0 / 0.521 GB, free: 33.53 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001977/0.3063, allocations: 101.9 kB / 0.5211 GB, free: 33.5 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00064/0.3069, allocations: 0.6131 MB / 0.5217 GB, free: 32.99 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002863/0.3072, allocations: 179.9 kB / 0.5219 GB, free: 32.87 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001409/0.3074, allocations: 93.25 kB / 0.522 GB, free: 32.82 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.546e-05/0.3074, allocations: 2.781 kB / 0.522 GB, free: 32.82 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003445/0.3078, allocations: 430.3 kB / 0.5224 GB, free: 32.42 MB / 378.7 MB Notification: Performance of pre-optimization done (n=23): time 1.553e-06/0.3078, allocations: 0 / 0.5224 GB, free: 32.42 MB / 378.7 MB Notification: Performance of matching and sorting (n=23): time 0.0006863/0.3085, allocations: 457.6 kB / 0.5228 GB, free: 32.17 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.078e-05/0.3085, allocations: 218.1 kB / 0.523 GB, free: 31.92 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002737/0.3088, allocations: 323.8 kB / 0.5234 GB, free: 31.75 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.171e-05/0.3089, allocations: 35.52 kB / 0.5234 GB, free: 31.72 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.885e-05/0.3089, allocations: 134.7 kB / 0.5235 GB, free: 31.6 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.391e-05/0.309, allocations: 51.27 kB / 0.5236 GB, free: 31.56 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.246e-05/0.309, allocations: 6.938 kB / 0.5236 GB, free: 31.55 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 6.376e-05/0.3091, allocations: 340.3 kB / 0.5239 GB, free: 31.23 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001217/0.3092, allocations: 54.91 kB / 0.5239 GB, free: 31.21 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001507/0.3094, allocations: 150.6 kB / 0.5241 GB, free: 31.08 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002922/0.3097, allocations: 367.2 kB / 0.5244 GB, free: 30.75 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.186e-06/0.3097, allocations: 3 kB / 0.5244 GB, free: 30.75 MB / 378.7 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0004035/0.3101, allocations: 345.4 kB / 0.5248 GB, free: 30.54 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.647e-05/0.3101, allocations: 103.8 kB / 0.5249 GB, free: 30.43 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.743e-06/0.3101, allocations: 2.875 kB / 0.5249 GB, free: 30.43 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.539e-05/0.3102, allocations: 6.75 kB / 0.5249 GB, free: 30.43 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.453e-05/0.3103, allocations: 21.81 kB / 0.5249 GB, free: 30.43 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.025e-06/0.3103, allocations: 2.812 kB / 0.5249 GB, free: 30.43 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001213/0.3104, allocations: 32.25 kB / 0.5249 GB, free: 30.41 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.657e-05/0.3104, allocations: 8.719 kB / 0.5249 GB, free: 30.41 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,$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.0001593/0.3106, allocations: 274.2 kB / 0.5252 GB, free: 30.17 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.865e-05/0.3106, allocations: 32.5 kB / 0.5252 GB, free: 30.15 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.755e-05/0.3107, allocations: 25.83 kB / 0.5253 GB, free: 30.14 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.068e-06/0.3107, allocations: 2.938 kB / 0.5253 GB, free: 30.14 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.97e-06/0.3107, allocations: 0 / 0.5253 GB, free: 30.14 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.34e-06/0.3107, allocations: 6.156 kB / 0.5253 GB, free: 30.14 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000191/0.3109, allocations: 295.2 kB / 0.5255 GB, free: 29.9 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.443e-06/0.3109, allocations: 4 kB / 0.5256 GB, free: 29.9 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.495e-05/0.311, allocations: 6.906 kB / 0.5256 GB, free: 29.89 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.757e-06/0.311, allocations: 6.719 kB / 0.5256 GB, free: 29.89 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.263e-05/0.311, allocations: 16.05 kB / 0.5256 GB, free: 29.89 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.763e-06/0.311, allocations: 0 / 0.5256 GB, free: 29.89 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.162e-06/0.311, allocations: 0 / 0.5256 GB, free: 29.89 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004975/0.3115, allocations: 459.5 kB / 0.526 GB, free: 29.61 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.263e-05/0.3116, allocations: 109.8 kB / 0.5261 GB, free: 29.49 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.601e-05/0.3116, allocations: 13.2 kB / 0.5261 GB, free: 29.48 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001191/0.3118, allocations: 20.45 kB / 0.5262 GB, free: 29.48 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.604e-05/0.3118, allocations: 21.62 kB / 0.5262 GB, free: 29.48 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.515e-05/0.3119, allocations: 13.5 kB / 0.5262 GB, free: 29.47 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001807/0.312, allocations: 239.8 kB / 0.5264 GB, free: 29.35 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.312, allocations: 0 / 0.5264 GB, free: 29.35 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0002789/0.3123, allocations: 71.98 kB / 0.5265 GB, free: 29.34 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 (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.0007974/0.3131, allocations: 425 kB / 0.5269 GB, free: 29.13 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.000432/0.3136, allocations: 397.2 kB / 0.5273 GB, free: 28.86 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.265e-06/0.3136, allocations: 0 / 0.5273 GB, free: 28.86 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002562/0.3139, allocations: 344.4 kB / 0.5276 GB, free: 28.59 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003193/0.3142, allocations: 49.62 kB / 0.5276 GB, free: 28.58 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006573/0.3149, allocations: 0.5167 MB / 0.5282 GB, free: 28.24 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001616/0.315, allocations: 0.7552 MB / 0.5289 GB, free: 27.53 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.276e-05/0.3151, allocations: 24.47 kB / 0.5289 GB, free: 27.52 MB / 378.7 MB Notification: Performance of SimCode: time 2.31e-07/0.3151, allocations: 0 / 0.5289 GB, free: 27.52 MB / 378.7 MB Notification: Performance of Templates: time 0.004555/0.3197, allocations: 3.538 MB / 0.5324 GB, free: 27.11 MB / 378.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