Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Blocks.OnDelay.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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_4.0.0_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_4.0.0_ModelicaTest.Blocks.OnDelay") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001106/0.00111, allocations: 108.7 kB / 18.45 MB, free: 4.645 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009433/0.0009433, allocations: 183.1 kB / 19.38 MB, free: 3.723 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.223/1.223, allocations: 222.9 MB / 243.1 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.1856/0.1856, allocations: 44.2 MB / 337.4 MB, free: 2.676 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001116/0.001116, allocations: 60.09 kB / 471.2 MB, free: 13.2 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3133/0.3144, allocations: 60.82 MB / 0.5195 GB, free: 3.617 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.OnDelay): time 0.002921/0.3174, allocations: 1.894 MB / 0.5214 GB, free: 2.297 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001444/0.3189, allocations: 1.026 MB / 0.5224 GB, free: 1.59 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.271e-05/0.319, allocations: 2.719 kB / 0.5224 GB, free: 1.59 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006386/0.3196, allocations: 186.4 kB / 0.5226 GB, free: 1.527 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002791/0.3199, allocations: 128.8 kB / 0.5227 GB, free: 1.469 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004136/0.3203, allocations: 192.7 kB / 0.5229 GB, free: 1.371 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003192/0.3207, allocations: 280.1 kB / 0.5232 GB, free: 1.25 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001205/0.3208, allocations: 31.73 kB / 0.5232 GB, free: 1.238 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001394/0.3209, allocations: 116.4 kB / 0.5233 GB, free: 1.188 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001639/0.3211, allocations: 116 kB / 0.5234 GB, free: 1.141 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 4.298e-05/0.3212, allocations: 20.22 kB / 0.5234 GB, free: 1.137 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000156/0.3213, allocations: 65.41 kB / 0.5235 GB, free: 1.121 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 9.612e-05/0.3214, allocations: 60.91 kB / 0.5235 GB, free: 1.094 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001107/0.3215, allocations: 107.5 kB / 0.5236 GB, free: 1.027 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003488/0.3219, allocations: 279.2 kB / 0.5239 GB, free: 0.918 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.606e-06/0.3219, allocations: 0 / 0.5239 GB, free: 0.918 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.432e-06/0.3219, allocations: 0 / 0.5239 GB, free: 0.918 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.221e-06/0.3219, allocations: 1.125 kB / 0.5239 GB, free: 0.918 MB / 382.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.000811/0.3227, allocations: 0.6653 MB / 0.5246 GB, free: 308 kB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.654e-05/0.3228, allocations: 10.12 kB / 0.5246 GB, free: 308 kB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.616e-05/0.3229, allocations: 28.06 kB / 0.5246 GB, free: 296 kB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003176/0.3232, allocations: 270.7 kB / 0.5249 GB, free: 44 kB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001062/0.3233, allocations: 92.7 kB / 0.5249 GB, free: 15.95 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.416e-05/0.3233, allocations: 20.12 kB / 0.525 GB, free: 15.94 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003311/0.3237, allocations: 162.4 kB / 0.5251 GB, free: 15.84 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.678e-06/0.3237, allocations: 1.062 kB / 0.5251 GB, free: 15.84 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.948e-05/0.3237, allocations: 3.406 kB / 0.5251 GB, free: 15.84 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.911e-06/0.3237, allocations: 2.188 kB / 0.5251 GB, free: 15.84 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002441/0.324, allocations: 95.58 kB / 0.5252 GB, free: 15.81 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008095/0.3248, allocations: 0.6114 MB / 0.5258 GB, free: 15.29 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000342/0.3252, allocations: 179.4 kB / 0.526 GB, free: 15.17 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001673/0.3253, allocations: 90.94 kB / 0.5261 GB, free: 15.12 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.529e-05/0.3254, allocations: 2.562 kB / 0.5261 GB, free: 15.12 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000413/0.3258, allocations: 443 kB / 0.5265 GB, free: 14.71 MB / 398.1 MB Notification: Performance of pre-optimization done (n=23): time 1.533e-06/0.3258, allocations: 0 / 0.5265 GB, free: 14.71 MB / 398.1 MB Notification: Performance of matching and sorting (n=23): time 0.0008211/0.3266, allocations: 439.6 kB / 0.5269 GB, free: 14.48 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001156/0.3268, allocations: 215.2 kB / 0.5271 GB, free: 14.23 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003729/0.3271, allocations: 320.2 kB / 0.5274 GB, free: 14.06 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.802e-05/0.3272, allocations: 34.58 kB / 0.5275 GB, free: 14.03 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.653e-05/0.3273, allocations: 133.7 kB / 0.5276 GB, free: 13.91 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.953e-05/0.3273, allocations: 52.17 kB / 0.5276 GB, free: 13.87 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.497e-05/0.3274, allocations: 52.3 kB / 0.5277 GB, free: 13.84 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001362/0.3276, allocations: 338.5 kB / 0.528 GB, free: 13.51 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001389/0.3277, allocations: 53.98 kB / 0.5281 GB, free: 13.5 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002017/0.3279, allocations: 144.9 kB / 0.5282 GB, free: 13.37 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003761/0.3283, allocations: 358.6 kB / 0.5285 GB, free: 13.04 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.705e-06/0.3283, allocations: 0 / 0.5285 GB, free: 13.04 MB / 398.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0005159/0.3288, allocations: 353.7 kB / 0.5289 GB, free: 12.82 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.057e-05/0.3289, allocations: 95.53 kB / 0.529 GB, free: 12.71 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.642e-06/0.3289, allocations: 3.688 kB / 0.529 GB, free: 12.71 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.831e-05/0.329, allocations: 3.219 kB / 0.529 GB, free: 12.71 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001051/0.3291, allocations: 31.17 kB / 0.529 GB, free: 12.7 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.086e-06/0.3291, allocations: 2.469 kB / 0.529 GB, free: 12.7 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001339/0.3292, allocations: 25.8 kB / 0.529 GB, free: 12.69 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.273e-05/0.3293, allocations: 17.19 kB / 0.5291 GB, free: 12.68 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.0002149/0.3295, allocations: 257.4 kB / 0.5293 GB, free: 12.44 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.142e-05/0.3295, allocations: 37.48 kB / 0.5293 GB, free: 12.42 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.664e-05/0.3296, allocations: 26.72 kB / 0.5294 GB, free: 12.4 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.458e-06/0.3296, allocations: 2.781 kB / 0.5294 GB, free: 12.4 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.58e-06/0.3296, allocations: 0 / 0.5294 GB, free: 12.4 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.212e-06/0.3296, allocations: 5.516 kB / 0.5294 GB, free: 12.39 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002694/0.3299, allocations: 286.5 kB / 0.5296 GB, free: 12.11 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.533e-06/0.3299, allocations: 1 kB / 0.5296 GB, free: 12.11 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.196e-05/0.33, allocations: 21.86 kB / 0.5297 GB, free: 12.1 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.014e-06/0.33, allocations: 0 / 0.5297 GB, free: 12.1 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.655e-05/0.33, allocations: 16.47 kB / 0.5297 GB, free: 12.09 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.745e-06/0.33, allocations: 1.781 kB / 0.5297 GB, free: 12.09 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.152e-06/0.33, allocations: 160 / 0.5297 GB, free: 12.09 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006254/0.3306, allocations: 445.9 kB / 0.5301 GB, free: 11.79 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.553e-05/0.3307, allocations: 103.5 kB / 0.5302 GB, free: 11.68 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.353e-05/0.3308, allocations: 12.78 kB / 0.5302 GB, free: 11.67 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001142/0.3309, allocations: 16.05 kB / 0.5302 GB, free: 11.67 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.226e-05/0.331, allocations: 19.89 kB / 0.5302 GB, free: 11.66 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.032e-05/0.331, allocations: 14.73 kB / 0.5303 GB, free: 11.65 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002415/0.3313, allocations: 229 kB / 0.5305 GB, free: 11.51 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3313, allocations: 0 / 0.5305 GB, free: 11.51 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0003146/0.3316, allocations: 71.55 kB / 0.5306 GB, free: 11.49 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.0009439/0.3325, allocations: 440.4 kB / 0.531 GB, free: 11.28 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0005644/0.3331, allocations: 394.8 kB / 0.5313 GB, free: 10.98 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.266e-06/0.3331, allocations: 1.094 kB / 0.5313 GB, free: 10.98 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003471/0.3335, allocations: 346 kB / 0.5317 GB, free: 10.7 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000341/0.3338, allocations: 53.25 kB / 0.5317 GB, free: 10.67 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007435/0.3346, allocations: 477.8 kB / 0.5322 GB, free: 10.34 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002793/0.3349, allocations: 0.7552 MB / 0.5329 GB, free: 9.602 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.599e-05/0.3349, allocations: 23.5 kB / 0.5329 GB, free: 9.59 MB / 398.1 MB Notification: Performance of SimCode: time 2.41e-07/0.335, allocations: 0 / 0.5329 GB, free: 9.59 MB / 398.1 MB Notification: Performance of Templates: time 0.005564/0.3405, allocations: 3.551 MB / 0.5364 GB, free: 7.727 MB / 398.1 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Blocks.OnDelay.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Blocks.OnDelay.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Blocks.OnDelay.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Blocks.OnDelay.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Blocks.OnDelay.sim & ./ModelicaTest_4.0.0_ModelicaTest.Blocks.OnDelay -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Blocks.OnDelay.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_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","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Blocks.OnDelay.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches