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: "" <> buildModelFMU(ModelicaTest.Blocks.OnDelay,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_Blocks_OnDelay",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.OnDelay,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_Blocks_OnDelay",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009447/0.0009447, allocations: 195.6 kB / 16.1 MB, free: 5.527 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.177/1.177, allocations: 226.5 MB / 243.4 MB, free: 8.188 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007323/0.0007323, allocations: 103.2 kB / 295.5 MB, free: 6.879 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2789/0.2789, allocations: 44.83 MB / 392.3 MB, free: 35.73 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002234/0.0002234, allocations: 4 kB / 465.4 MB, free: 12.59 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2592/0.2594, allocations: 62.96 MB / 0.516 GB, free: 36.82 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.OnDelay): time 0.001604/0.2611, allocations: 1.582 MB / 0.5175 GB, free: 35.67 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.001148/0.2622, allocations: 1.109 MB / 0.5186 GB, free: 34.91 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.607e-05/0.2623, allocations: 0 / 0.5186 GB, free: 34.91 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004669/0.2628, allocations: 175.5 kB / 0.5187 GB, free: 34.86 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002429/0.2631, allocations: 133.3 kB / 0.5189 GB, free: 34.8 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003387/0.2634, allocations: 165.9 kB / 0.519 GB, free: 34.72 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001927/0.2636, allocations: 236.6 kB / 0.5193 GB, free: 34.62 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.583e-05/0.2637, allocations: 39.7 kB / 0.5193 GB, free: 34.61 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 9.851e-05/0.2638, allocations: 99.36 kB / 0.5194 GB, free: 34.57 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001066/0.2639, allocations: 108 kB / 0.5195 GB, free: 34.54 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 2.623e-05/0.264, allocations: 5.75 kB / 0.5195 GB, free: 34.54 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.983e-05/0.2641, allocations: 47.05 kB / 0.5195 GB, free: 34.53 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 5.926e-05/0.2641, allocations: 55.91 kB / 0.5196 GB, free: 34.51 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 9.066e-05/0.2642, allocations: 127.3 kB / 0.5197 GB, free: 34.41 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001736/0.2644, allocations: 213.2 kB / 0.5199 GB, free: 34.36 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.318e-06/0.2644, allocations: 2.719 kB / 0.5199 GB, free: 34.36 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.052e-06/0.2644, allocations: 0 / 0.5199 GB, free: 34.36 MB / 378.7 MB Notification: Performance of Transformations before backend: time 4.048e-06/0.2644, allocations: 0 / 0.5199 GB, free: 34.36 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.0006033/0.2651, allocations: 0.6127 MB / 0.5205 GB, free: 33.77 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.216e-05/0.2651, allocations: 12.88 kB / 0.5205 GB, free: 33.77 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.517e-05/0.2651, allocations: 48.06 kB / 0.5206 GB, free: 33.72 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.823e-05/0.2652, allocations: 32.03 kB / 0.5206 GB, free: 33.71 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002339/0.2654, allocations: 281.2 kB / 0.5209 GB, free: 33.45 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.247e-05/0.2655, allocations: 100.3 kB / 0.521 GB, free: 33.34 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.399e-05/0.2655, allocations: 14.88 kB / 0.521 GB, free: 33.34 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002527/0.2658, allocations: 167.9 kB / 0.5211 GB, free: 33.24 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.206e-06/0.2658, allocations: 0 / 0.5211 GB, free: 33.24 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.689e-05/0.2658, allocations: 6.938 kB / 0.5212 GB, free: 33.24 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.558e-06/0.2658, allocations: 2.969 kB / 0.5212 GB, free: 33.24 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001891/0.266, allocations: 91.55 kB / 0.5212 GB, free: 33.21 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005696/0.2666, allocations: 0.6163 MB / 0.5218 GB, free: 32.7 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002569/0.2669, allocations: 173.8 kB / 0.522 GB, free: 32.58 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001383/0.267, allocations: 98.92 kB / 0.5221 GB, free: 32.53 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.258e-05/0.2671, allocations: 2.938 kB / 0.5221 GB, free: 32.53 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000311/0.2674, allocations: 434.5 kB / 0.5225 GB, free: 32.13 MB / 378.7 MB Notification: Performance of pre-optimization done (n=23): time 1.523e-06/0.2674, allocations: 0 / 0.5225 GB, free: 32.13 MB / 378.7 MB Notification: Performance of matching and sorting (n=23): time 0.0006393/0.268, allocations: 455.6 kB / 0.523 GB, free: 31.88 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.237e-05/0.2681, allocations: 217 kB / 0.5232 GB, free: 31.63 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000254/0.2684, allocations: 325.4 kB / 0.5235 GB, free: 31.46 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 1.785e-05/0.2684, allocations: 32.95 kB / 0.5235 GB, free: 31.43 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.619e-05/0.2684, allocations: 134.5 kB / 0.5236 GB, free: 31.31 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.446e-05/0.2685, allocations: 53.86 kB / 0.5237 GB, free: 31.27 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.022e-05/0.2685, allocations: 4 kB / 0.5237 GB, free: 31.27 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 4.927e-05/0.2686, allocations: 341.2 kB / 0.524 GB, free: 30.94 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001208/0.2687, allocations: 61.09 kB / 0.5241 GB, free: 30.92 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001414/0.2688, allocations: 152 kB / 0.5242 GB, free: 30.79 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000275/0.2691, allocations: 359.4 kB / 0.5246 GB, free: 30.46 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.096e-06/0.2691, allocations: 2.438 kB / 0.5246 GB, free: 30.46 MB / 378.7 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0003998/0.2695, allocations: 356.8 kB / 0.5249 GB, free: 30.24 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.623e-05/0.2696, allocations: 98.48 kB / 0.525 GB, free: 30.14 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.02e-06/0.2696, allocations: 2.938 kB / 0.525 GB, free: 30.14 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.121e-05/0.2696, allocations: 3 kB / 0.525 GB, free: 30.14 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.571e-05/0.2697, allocations: 22.06 kB / 0.525 GB, free: 30.14 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.462e-06/0.2697, allocations: 2.938 kB / 0.525 GB, free: 30.14 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001199/0.2698, allocations: 31.94 kB / 0.5251 GB, free: 30.12 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.641e-05/0.2699, allocations: 10.31 kB / 0.5251 GB, free: 30.12 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.0001409/0.27, allocations: 268 kB / 0.5253 GB, free: 29.88 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.77e-05/0.27, allocations: 33.25 kB / 0.5254 GB, free: 29.87 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.11e-05/0.2701, allocations: 27.81 kB / 0.5254 GB, free: 29.86 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.775e-06/0.2701, allocations: 2.5 kB / 0.5254 GB, free: 29.86 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.096e-06/0.2701, allocations: 0 / 0.5254 GB, free: 29.86 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.476e-06/0.2701, allocations: 0 / 0.5254 GB, free: 29.86 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001739/0.2703, allocations: 302.7 kB / 0.5257 GB, free: 29.61 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.232e-06/0.2703, allocations: 4 kB / 0.5257 GB, free: 29.61 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.673e-05/0.2703, allocations: 13.31 kB / 0.5257 GB, free: 29.6 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.745e-06/0.2703, allocations: 6.609 kB / 0.5257 GB, free: 29.6 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.97e-05/0.2704, allocations: 9.594 kB / 0.5257 GB, free: 29.59 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.524e-06/0.2704, allocations: 6.094 kB / 0.5257 GB, free: 29.59 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.91e-07/0.2704, allocations: 0 / 0.5257 GB, free: 29.59 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004798/0.2709, allocations: 451.7 kB / 0.5261 GB, free: 29.31 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.282e-05/0.2709, allocations: 107.8 kB / 0.5262 GB, free: 29.2 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.352e-05/0.271, allocations: 11.2 kB / 0.5263 GB, free: 29.2 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001085/0.2711, allocations: 23.08 kB / 0.5263 GB, free: 29.2 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.696e-05/0.2712, allocations: 23.05 kB / 0.5263 GB, free: 29.19 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.362e-05/0.2712, allocations: 8.75 kB / 0.5263 GB, free: 29.19 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001682/0.2714, allocations: 244.1 kB / 0.5265 GB, free: 29.06 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2714, allocations: 0 / 0.5265 GB, free: 29.06 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0002623/0.2717, allocations: 71.67 kB / 0.5266 GB, free: 29.05 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.001283/0.2729, allocations: 1.309 MB / 0.5279 GB, free: 28.12 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.000412/0.2734, allocations: 388.5 kB / 0.5283 GB, free: 27.86 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.903e-06/0.2734, allocations: 448 / 0.5283 GB, free: 27.86 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000249/0.2736, allocations: 346.5 kB / 0.5286 GB, free: 27.59 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003019/0.2739, allocations: 48.61 kB / 0.5286 GB, free: 27.57 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001802/0.2758, allocations: 1.552 MB / 0.5302 GB, free: 26.68 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000141/0.2759, allocations: 0.7546 MB / 0.5309 GB, free: 25.98 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.687e-05/0.276, allocations: 64.95 kB / 0.531 GB, free: 25.93 MB / 378.7 MB Notification: Performance of SimCode: time 2.61e-07/0.276, allocations: 0 / 0.531 GB, free: 25.93 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.067/3.343, allocations: 4.071 MB / 0.5349 GB, free: 25.48 MB / 378.7 MB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_cpp_ModelicaTest.Blocks.OnDelay_res.mat --tempDir=temp_ModelicaTest_trunk_cpp_ModelicaTest_Blocks_OnDelay_fmu --startTime=0 --stopTime=11 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_cpp_ModelicaTest_Blocks_OnDelay.fmu > ModelicaTest_trunk_cpp_ModelicaTest.Blocks.OnDelay.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_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_cpp_ModelicaTest.Blocks.OnDelay.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches