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.005529/0.005529, allocations: 102.3 kB / 15.73 MB, free: 6.043 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.001266/0.001267, allocations: 189.4 kB / 16.67 MB, free: 5.957 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.7/1.7, allocations: 205.1 MB / 222.5 MB, free: 4.516 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.3826/0.3826, allocations: 38 MB / 307.9 MB, free: 10.1 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.001534/0.001534, allocations: 67.91 kB / 433 MB, free: 5.43 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3741/0.3757, allocations: 56.47 MB / 489.4 MB, free: 20.25 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.OnDelay): time 0.003115/0.3788, allocations: 1.87 MB / 491.3 MB, free: 18.95 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001504/0.3804, allocations: 0.9669 MB / 492.3 MB, free: 18.27 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001135/0.3805, allocations: 1.875 kB / 492.3 MB, free: 18.27 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006628/0.3812, allocations: 183.7 kB / 492.5 MB, free: 18.21 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.0003137/0.3815, allocations: 126.2 kB / 492.6 MB, free: 18.16 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004648/0.382, allocations: 164.9 kB / 492.7 MB, free: 18.07 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003213/0.3823, allocations: 274.9 kB / 493 MB, free: 17.95 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000141/0.3825, allocations: 51.81 kB / 493.1 MB, free: 17.92 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001671/0.3827, allocations: 106.8 kB / 493.2 MB, free: 17.88 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001858/0.3829, allocations: 120.8 kB / 493.3 MB, free: 17.83 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 4.056e-05/0.3829, allocations: 16.66 kB / 493.3 MB, free: 17.83 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000177/0.3831, allocations: 60.39 kB / 493.4 MB, free: 17.82 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000105/0.3832, allocations: 57.56 kB / 493.4 MB, free: 17.79 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001209/0.3833, allocations: 119.9 kB / 493.5 MB, free: 17.71 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003951/0.3837, allocations: 275.5 kB / 493.8 MB, free: 17.61 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.068e-06/0.3837, allocations: 0 / 493.8 MB, free: 17.61 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.503e-06/0.3838, allocations: 0 / 493.8 MB, free: 17.61 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.733e-06/0.3838, allocations: 0 / 493.8 MB, free: 17.61 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.0008774/0.3846, allocations: 0.6504 MB / 494.5 MB, free: 17 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.774e-05/0.3847, allocations: 13.38 kB / 494.5 MB, free: 17 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.128e-05/0.3848, allocations: 32.66 kB / 494.5 MB, free: 16.98 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003096/0.3851, allocations: 277.7 kB / 494.8 MB, free: 16.73 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.1e-05/0.3852, allocations: 93.44 kB / 494.9 MB, free: 16.64 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.221e-05/0.3852, allocations: 16.19 kB / 494.9 MB, free: 16.63 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003277/0.3856, allocations: 165 kB / 495 MB, free: 16.53 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.008e-05/0.3856, allocations: 0 / 495 MB, free: 16.53 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.345e-05/0.3856, allocations: 12.16 kB / 495 MB, free: 16.52 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.362e-06/0.3856, allocations: 2.469 kB / 495.1 MB, free: 16.52 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002434/0.3859, allocations: 89.77 kB / 495.1 MB, free: 16.5 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007614/0.3866, allocations: 0.6013 MB / 495.7 MB, free: 15.99 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003357/0.387, allocations: 178.1 kB / 495.9 MB, free: 15.87 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001753/0.3872, allocations: 96.62 kB / 496 MB, free: 15.82 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.063e-05/0.3872, allocations: 6.469 kB / 496 MB, free: 15.81 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004559/0.3877, allocations: 431.7 kB / 496.4 MB, free: 15.41 MB / 382.1 MB Notification: Performance of pre-optimization done (n=23): time 3.146e-06/0.3877, allocations: 0 / 496.4 MB, free: 15.41 MB / 382.1 MB Notification: Performance of matching and sorting (n=23): time 0.000855/0.3886, allocations: 447.5 kB / 496.9 MB, free: 15.17 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001032/0.3887, allocations: 218 kB / 497.1 MB, free: 14.92 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004382/0.3891, allocations: 317.7 kB / 497.4 MB, free: 14.75 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.786e-05/0.3891, allocations: 34.05 kB / 497.4 MB, free: 14.72 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.184e-05/0.3892, allocations: 133.4 kB / 497.6 MB, free: 14.6 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.784e-05/0.3893, allocations: 47.61 kB / 497.6 MB, free: 14.57 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.424e-05/0.3894, allocations: 52.45 kB / 497.7 MB, free: 14.54 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 8.785e-05/0.3895, allocations: 342 kB / 498 MB, free: 14.21 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001461/0.3896, allocations: 54.02 kB / 498 MB, free: 14.19 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002029/0.3898, allocations: 142 kB / 498.2 MB, free: 14.07 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004387/0.3903, allocations: 374.1 kB / 498.5 MB, free: 13.72 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.827e-06/0.3903, allocations: 0 / 498.5 MB, free: 13.72 MB / 382.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0006747/0.391, allocations: 342.1 kB / 498.9 MB, free: 13.52 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001013/0.3911, allocations: 98.31 kB / 499 MB, free: 13.42 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.442e-05/0.3911, allocations: 2.75 kB / 499 MB, free: 13.42 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.378e-05/0.3912, allocations: 2.969 kB / 499 MB, free: 13.42 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001349/0.3913, allocations: 27.53 kB / 499 MB, free: 13.41 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.438e-05/0.3913, allocations: 3.5 kB / 499 MB, free: 13.41 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001912/0.3915, allocations: 27.55 kB / 499 MB, free: 13.4 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.98e-05/0.3916, allocations: 9.625 kB / 499.1 MB, free: 13.4 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.000336/0.3919, allocations: 270.2 kB / 499.3 MB, free: 13.16 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.5e-05/0.392, allocations: 33.53 kB / 499.3 MB, free: 13.14 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001113/0.3921, allocations: 29.34 kB / 499.4 MB, free: 13.12 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.524e-06/0.3921, allocations: 1.375 kB / 499.4 MB, free: 13.12 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.177e-05/0.3921, allocations: 1.375 kB / 499.4 MB, free: 13.12 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.463e-05/0.3922, allocations: 2.641 kB / 499.4 MB, free: 13.12 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004814/0.3927, allocations: 292.8 kB / 499.7 MB, free: 12.88 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.139e-06/0.3927, allocations: 1.375 kB / 499.7 MB, free: 12.88 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.015e-05/0.3927, allocations: 13.22 kB / 499.7 MB, free: 12.87 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.749e-06/0.3927, allocations: 1.375 kB / 499.7 MB, free: 12.87 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.021e-05/0.3928, allocations: 17.64 kB / 499.7 MB, free: 12.86 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.434e-06/0.3928, allocations: 10.16 kB / 499.7 MB, free: 12.86 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.685e-06/0.3928, allocations: 0 / 499.7 MB, free: 12.86 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007704/0.3936, allocations: 436.2 kB / 0.4884 GB, free: 12.59 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.204e-05/0.3937, allocations: 100.7 kB / 0.4885 GB, free: 12.48 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.931e-05/0.3937, allocations: 13.61 kB / 0.4885 GB, free: 12.48 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001169/0.3938, allocations: 15.19 kB / 0.4885 GB, free: 12.48 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001038/0.394, allocations: 30.11 kB / 0.4886 GB, free: 12.46 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.26e-05/0.394, allocations: 10.03 kB / 0.4886 GB, free: 12.46 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.000287/0.3943, allocations: 233.7 kB / 0.4888 GB, free: 12.34 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3943, allocations: 0 / 0.4888 GB, free: 12.34 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0004729/0.3948, allocations: 64.8 kB / 0.4889 GB, free: 12.33 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.001271/0.3961, allocations: 446 kB / 0.4893 GB, free: 11.99 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0007259/0.3968, allocations: 393.6 kB / 0.4897 GB, free: 11.72 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.368e-06/0.3968, allocations: 1.281 kB / 0.4897 GB, free: 11.72 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004174/0.3972, allocations: 343.1 kB / 0.49 GB, free: 11.45 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004678/0.3977, allocations: 47 kB / 0.49 GB, free: 11.44 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001063/0.3988, allocations: 465.5 kB / 0.4905 GB, free: 11.16 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003232/0.3991, allocations: 0.7466 MB / 0.4912 GB, free: 10.46 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001287/0.3993, allocations: 30.73 kB / 0.4912 GB, free: 10.45 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.594e-05/0.3993, allocations: 26.19 kB / 0.4913 GB, free: 10.44 MB / 382.1 MB Notification: Performance of SimCode: time 6.91e-07/0.3994, allocations: 0 / 0.4913 GB, free: 10.44 MB / 382.1 MB Notification: Performance of Templates: time 0.01043/0.4098, allocations: 3.462 MB / 0.4946 GB, free: 10.01 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)