Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.1_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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.1+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.1+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.1_ModelicaTest.Blocks.OnDelay") translateModel(ModelicaTest.Blocks.OnDelay,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.1_ModelicaTest.Blocks.OnDelay") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.006902/0.006902, allocations: 101.4 kB / 15.73 MB, free: 6.031 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.001726/0.001727, allocations: 197 kB / 16.67 MB, free: 5.969 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.503/1.503, allocations: 205.1 MB / 222.5 MB, free: 4.531 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.1+maint.om/package.mo): time 0.3818/0.3818, allocations: 37.99 MB / 307.9 MB, free: 10.08 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: ModelicaTest requested package Modelica of version 3.2.1. Modelica 3.2.3 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001937/0.001937, allocations: 67.91 kB / 433 MB, free: 5.43 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4691/0.471, allocations: 56.47 MB / 489.4 MB, free: 19.87 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.OnDelay): time 0.003598/0.4747, allocations: 1.858 MB / 491.3 MB, free: 18.57 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001748/0.4764, allocations: 0.9725 MB / 492.3 MB, free: 17.9 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001151/0.4766, allocations: 5.344 kB / 492.3 MB, free: 17.89 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007836/0.4774, allocations: 184.3 kB / 492.5 MB, free: 17.84 MB / 382.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Utilities/Strings.mo:139:3-175:14:writable] Warning: Pure function 'Modelica.Utilities.Strings.isEmpty' contains a call to impure function 'Modelica.Utilities.Strings.Advanced.skipWhiteSpace'. Notification: Performance of NFTyping.typeBindings: time 0.000338/0.4777, allocations: 122.3 kB / 492.6 MB, free: 17.78 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004626/0.4782, allocations: 168.9 kB / 492.7 MB, free: 17.69 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003974/0.4786, allocations: 275.3 kB / 493 MB, free: 17.57 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001476/0.4788, allocations: 42.8 kB / 493.1 MB, free: 17.55 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001734/0.4789, allocations: 116.2 kB / 493.2 MB, free: 17.5 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001927/0.4791, allocations: 115.2 kB / 493.3 MB, free: 17.45 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 4.606e-05/0.4792, allocations: 16.88 kB / 493.3 MB, free: 17.45 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001813/0.4794, allocations: 61.33 kB / 493.4 MB, free: 17.44 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001107/0.4795, allocations: 61.75 kB / 493.4 MB, free: 17.41 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001348/0.4796, allocations: 115.3 kB / 493.5 MB, free: 17.34 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005641/0.4802, allocations: 275.5 kB / 493.8 MB, free: 17.23 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.823e-06/0.4802, allocations: 4 kB / 493.8 MB, free: 17.23 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.295e-06/0.4802, allocations: 0 / 493.8 MB, free: 17.23 MB / 382.1 MB Notification: Performance of Transformations before backend: time 8.425e-06/0.4803, allocations: 1.375 kB / 493.8 MB, free: 17.23 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.0011/0.4814, allocations: 0.6507 MB / 494.5 MB, free: 16.62 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.321e-05/0.4814, allocations: 12.55 kB / 494.5 MB, free: 16.62 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.378e-05/0.4815, allocations: 32.72 kB / 494.5 MB, free: 16.61 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000376/0.4819, allocations: 274.6 kB / 494.8 MB, free: 16.36 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.686e-05/0.482, allocations: 92.91 kB / 494.9 MB, free: 16.26 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.18e-05/0.4821, allocations: 16.16 kB / 494.9 MB, free: 16.26 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003598/0.4824, allocations: 156 kB / 495 MB, free: 16.16 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.149e-05/0.4824, allocations: 7.938 kB / 495 MB, free: 16.16 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.738e-05/0.4825, allocations: 8.094 kB / 495 MB, free: 16.15 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.718e-06/0.4825, allocations: 2.719 kB / 495 MB, free: 16.15 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002751/0.4828, allocations: 94.73 kB / 495.1 MB, free: 16.12 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009023/0.4837, allocations: 0.6083 MB / 495.7 MB, free: 15.61 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003737/0.4841, allocations: 170.2 kB / 495.9 MB, free: 15.5 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002153/0.4843, allocations: 91.52 kB / 496 MB, free: 15.45 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.092e-05/0.4843, allocations: 6.953 kB / 496 MB, free: 15.44 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004317/0.4848, allocations: 438.5 kB / 496.4 MB, free: 15.04 MB / 382.1 MB Notification: Performance of pre-optimization done (n=23): time 1.643e-06/0.4848, allocations: 0 / 496.4 MB, free: 15.04 MB / 382.1 MB Notification: Performance of matching and sorting (n=23): time 0.0008827/0.4857, allocations: 443.9 kB / 496.9 MB, free: 14.8 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.482e-05/0.4858, allocations: 217.9 kB / 497.1 MB, free: 14.54 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003885/0.4862, allocations: 317.2 kB / 497.4 MB, free: 14.38 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.446e-05/0.4862, allocations: 35.22 kB / 497.4 MB, free: 14.34 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.726e-05/0.4863, allocations: 137 kB / 497.6 MB, free: 14.22 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.228e-05/0.4864, allocations: 52.03 kB / 497.6 MB, free: 14.18 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.542e-05/0.4864, allocations: 48.98 kB / 497.7 MB, free: 14.16 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 9.835e-05/0.4865, allocations: 341.7 kB / 498 MB, free: 13.83 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001466/0.4867, allocations: 57.84 kB / 498 MB, free: 13.81 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001974/0.4869, allocations: 137.2 kB / 498.2 MB, free: 13.69 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003629/0.4873, allocations: 366.2 kB / 498.5 MB, free: 13.35 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.537e-06/0.4873, allocations: 0.7812 kB / 498.5 MB, free: 13.35 MB / 382.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0005206/0.4878, allocations: 343.4 kB / 498.9 MB, free: 13.14 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.59e-05/0.4879, allocations: 99.19 kB / 499 MB, free: 13.04 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.518e-06/0.4879, allocations: 2.719 kB / 499 MB, free: 13.04 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.868e-05/0.488, allocations: 8.562 kB / 499 MB, free: 13.04 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000125/0.4881, allocations: 18.81 kB / 499 MB, free: 13.04 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.316e-05/0.4881, allocations: 11.52 kB / 499 MB, free: 13.03 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001481/0.4883, allocations: 28.22 kB / 499 MB, free: 13.02 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.185e-05/0.4883, allocations: 9.812 kB / 499.1 MB, free: 13.02 MB / 382.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.0001963/0.4885, allocations: 268.2 kB / 499.3 MB, free: 12.78 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.302e-05/0.4886, allocations: 34.05 kB / 499.3 MB, free: 12.77 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.743e-05/0.4886, allocations: 30.25 kB / 499.4 MB, free: 12.74 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.438e-06/0.4886, allocations: 1.891 kB / 499.4 MB, free: 12.74 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.204e-06/0.4887, allocations: 1.375 kB / 499.4 MB, free: 12.74 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.562e-06/0.4887, allocations: 1.984 kB / 499.4 MB, free: 12.74 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002905/0.489, allocations: 297 kB / 499.7 MB, free: 12.5 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.266e-06/0.489, allocations: 2.125 kB / 499.7 MB, free: 12.5 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.946e-05/0.489, allocations: 8.859 kB / 499.7 MB, free: 12.49 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.477e-06/0.489, allocations: 1.375 kB / 499.7 MB, free: 12.49 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.845e-05/0.489, allocations: 16.27 kB / 499.7 MB, free: 12.48 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.873e-06/0.4891, allocations: 5.312 kB / 499.7 MB, free: 12.48 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.214e-06/0.4891, allocations: 6.219 kB / 499.7 MB, free: 12.48 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006179/0.4897, allocations: 435 kB / 0.4884 GB, free: 12.21 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.899e-05/0.4898, allocations: 102.8 kB / 0.4885 GB, free: 12.1 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.109e-05/0.4898, allocations: 12.75 kB / 0.4885 GB, free: 12.1 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001126/0.4899, allocations: 19.44 kB / 0.4885 GB, free: 12.09 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.672e-05/0.49, allocations: 21.05 kB / 0.4886 GB, free: 12.09 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.054e-05/0.4901, allocations: 11.09 kB / 0.4886 GB, free: 12.09 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0002354/0.4903, allocations: 232.3 kB / 0.4888 GB, free: 11.96 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.71e-07/0.4903, allocations: 0 / 0.4888 GB, free: 11.96 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003322/0.4906, allocations: 70.06 kB / 0.4889 GB, free: 11.95 MB / 382.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.0009775/0.4916, allocations: 442.2 kB / 0.4893 GB, free: 11.62 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0005527/0.4922, allocations: 390 kB / 0.4897 GB, free: 11.35 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.426e-06/0.4922, allocations: 0 / 0.4897 GB, free: 11.35 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003397/0.4926, allocations: 344 kB / 0.49 GB, free: 11.08 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003695/0.4929, allocations: 51.42 kB / 0.49 GB, free: 11.07 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008955/0.4938, allocations: 461.2 kB / 0.4905 GB, free: 10.79 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002748/0.4941, allocations: 0.7465 MB / 0.4912 GB, free: 10.09 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001024/0.4942, allocations: 27.55 kB / 0.4912 GB, free: 10.08 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.14e-05/0.4943, allocations: 25.25 kB / 0.4913 GB, free: 10.07 MB / 382.1 MB Notification: Performance of SimCode: time 2.11e-07/0.4943, allocations: 0 / 0.4913 GB, free: 10.07 MB / 382.1 MB Notification: Performance of Templates: time 0.008949/0.5033, allocations: 3.576 MB / 0.4947 GB, free: 9.645 MB / 382.1 MB make -j1 -f ModelicaTest_3.2.1_ModelicaTest.Blocks.OnDelay.makefile (rm -f ModelicaTest_3.2.1_ModelicaTest.Blocks.OnDelay.pipe ; mkfifo ModelicaTest_3.2.1_ModelicaTest.Blocks.OnDelay.pipe ; head -c 1048576 < ModelicaTest_3.2.1_ModelicaTest.Blocks.OnDelay.pipe >> ../files/ModelicaTest_3.2.1_ModelicaTest.Blocks.OnDelay.sim & ./ModelicaTest_3.2.1_ModelicaTest.Blocks.OnDelay -abortSlowSimulation -alarm=480 -lv LOG_STATS > ModelicaTest_3.2.1_ModelicaTest.Blocks.OnDelay.pipe 2>&1)