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.007424/0.00743, allocations: 103.9 kB / 15.73 MB, free: 6.473 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.001387/0.001387, allocations: 196.9 kB / 16.67 MB, free: 6.379 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.488/1.488, allocations: 205.1 MB / 222.5 MB, free: 4.539 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.3267/0.3267, allocations: 38 MB / 307.9 MB, free: 10.04 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.001657/0.001658, allocations: 68.42 kB / 433 MB, free: 5.441 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3556/0.3572, allocations: 56.48 MB / 489.4 MB, free: 20.03 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.OnDelay): time 0.004582/0.3619, allocations: 1.867 MB / 491.3 MB, free: 18.72 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001828/0.3637, allocations: 0.9653 MB / 492.3 MB, free: 18.05 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002285/0.364, allocations: 2.062 kB / 492.3 MB, free: 18.05 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001312/0.3653, allocations: 182.5 kB / 492.5 MB, free: 18 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.0006888/0.366, allocations: 130.2 kB / 492.6 MB, free: 17.93 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008396/0.3669, allocations: 164.7 kB / 492.7 MB, free: 17.85 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006635/0.3676, allocations: 272.7 kB / 493 MB, free: 17.73 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001896/0.3678, allocations: 39.44 kB / 493.1 MB, free: 17.71 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003234/0.3681, allocations: 115.9 kB / 493.2 MB, free: 17.66 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000268/0.3684, allocations: 115.8 kB / 493.3 MB, free: 17.62 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 6.036e-05/0.3684, allocations: 16.47 kB / 493.3 MB, free: 17.62 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002696/0.3687, allocations: 60.81 kB / 493.4 MB, free: 17.61 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001252/0.3688, allocations: 61.31 kB / 493.4 MB, free: 17.58 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000187/0.369, allocations: 107.4 kB / 493.5 MB, free: 17.51 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005592/0.3696, allocations: 279.3 kB / 493.8 MB, free: 17.4 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.38e-06/0.3696, allocations: 1.094 kB / 493.8 MB, free: 17.4 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.894e-06/0.3696, allocations: 0 / 493.8 MB, free: 17.4 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.29e-05/0.3697, allocations: 4 kB / 493.8 MB, free: 17.39 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.001212/0.3709, allocations: 0.6541 MB / 494.4 MB, free: 16.79 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.872e-05/0.3709, allocations: 14.55 kB / 494.5 MB, free: 16.79 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001077/0.371, allocations: 28.66 kB / 494.5 MB, free: 16.77 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004193/0.3715, allocations: 280.5 kB / 494.8 MB, free: 16.52 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.631e-05/0.3716, allocations: 93.61 kB / 494.9 MB, free: 16.42 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.54e-05/0.3716, allocations: 21.52 kB / 494.9 MB, free: 16.41 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003409/0.372, allocations: 155.4 kB / 495 MB, free: 16.32 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.275e-05/0.372, allocations: 0 / 495 MB, free: 16.32 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.475e-05/0.372, allocations: 9.328 kB / 495 MB, free: 16.32 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.154e-06/0.372, allocations: 1.156 kB / 495 MB, free: 16.32 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002335/0.3723, allocations: 90.69 kB / 495.1 MB, free: 16.29 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008779/0.3732, allocations: 0.6126 MB / 495.7 MB, free: 15.77 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004192/0.3736, allocations: 179.2 kB / 495.9 MB, free: 15.65 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002062/0.3738, allocations: 92.27 kB / 496 MB, free: 15.6 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.112e-05/0.3739, allocations: 1.344 kB / 496 MB, free: 15.6 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004773/0.3743, allocations: 442.9 kB / 496.4 MB, free: 15.19 MB / 382.1 MB Notification: Performance of pre-optimization done (n=23): time 1.543e-06/0.3743, allocations: 0 / 496.4 MB, free: 15.19 MB / 382.1 MB Notification: Performance of matching and sorting (n=23): time 0.0008693/0.3752, allocations: 436.2 kB / 496.9 MB, free: 14.96 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.135e-05/0.3753, allocations: 222.3 kB / 497.1 MB, free: 14.7 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003783/0.3757, allocations: 317 kB / 497.4 MB, free: 14.54 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.605e-05/0.3757, allocations: 38.91 kB / 497.4 MB, free: 14.5 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.474e-05/0.3758, allocations: 133.1 kB / 497.6 MB, free: 14.38 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.142e-05/0.3759, allocations: 48.66 kB / 497.6 MB, free: 14.35 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.509e-05/0.376, allocations: 52.3 kB / 497.7 MB, free: 14.32 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 7.78e-05/0.3761, allocations: 338.6 kB / 498 MB, free: 13.99 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001363/0.3762, allocations: 52.86 kB / 498 MB, free: 13.98 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000179/0.3764, allocations: 141.8 kB / 498.2 MB, free: 13.86 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003494/0.3767, allocations: 361.6 kB / 498.5 MB, free: 13.52 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.568e-06/0.3768, allocations: 3.938 kB / 498.5 MB, free: 13.52 MB / 382.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0005396/0.3773, allocations: 351.6 kB / 498.9 MB, free: 13.3 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.676e-05/0.3774, allocations: 98.38 kB / 499 MB, free: 13.2 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.498e-06/0.3774, allocations: 2.812 kB / 499 MB, free: 13.2 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.069e-05/0.3774, allocations: 4.094 kB / 499 MB, free: 13.2 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001045/0.3775, allocations: 25.64 kB / 499 MB, free: 13.2 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.113e-05/0.3775, allocations: 8.812 kB / 499 MB, free: 13.19 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001351/0.3777, allocations: 27.22 kB / 499 MB, free: 13.18 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.09e-05/0.3777, allocations: 9.844 kB / 499.1 MB, free: 13.18 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.0001846/0.3779, allocations: 272.5 kB / 499.3 MB, free: 12.94 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.238e-05/0.378, allocations: 34.23 kB / 499.4 MB, free: 12.92 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.807e-05/0.378, allocations: 24.69 kB / 499.4 MB, free: 12.9 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.39e-06/0.378, allocations: 3.5 kB / 499.4 MB, free: 12.9 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.864e-06/0.378, allocations: 1.375 kB / 499.4 MB, free: 12.9 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.42e-06/0.3781, allocations: 0.5625 kB / 499.4 MB, free: 12.9 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002533/0.3783, allocations: 289.3 kB / 499.7 MB, free: 12.66 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.513e-06/0.3783, allocations: 5.562 kB / 499.7 MB, free: 12.66 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.008e-05/0.3784, allocations: 9.469 kB / 499.7 MB, free: 12.66 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.695e-06/0.3784, allocations: 6.688 kB / 499.7 MB, free: 12.65 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.74e-05/0.3784, allocations: 16.31 kB / 499.7 MB, free: 12.64 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.943e-06/0.3784, allocations: 1.375 kB / 499.7 MB, free: 12.64 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.495e-06/0.3784, allocations: 1.375 kB / 499.7 MB, free: 12.64 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005905/0.379, allocations: 448.1 kB / 0.4884 GB, free: 12.37 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.916e-05/0.3791, allocations: 101.7 kB / 0.4885 GB, free: 12.26 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.979e-05/0.3791, allocations: 12.62 kB / 0.4885 GB, free: 12.25 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001105/0.3792, allocations: 16.06 kB / 0.4885 GB, free: 12.25 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.15e-05/0.3793, allocations: 24.91 kB / 0.4886 GB, free: 12.24 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.917e-05/0.3794, allocations: 10.31 kB / 0.4886 GB, free: 12.24 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0002375/0.3796, allocations: 232.7 kB / 0.4888 GB, free: 12.12 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3796, allocations: 0 / 0.4888 GB, free: 12.12 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003581/0.38, allocations: 70.23 kB / 0.4889 GB, free: 12.11 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.0009682/0.3809, allocations: 439.8 kB / 0.4893 GB, free: 11.77 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0005292/0.3815, allocations: 386.2 kB / 0.4897 GB, free: 11.51 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.324e-06/0.3815, allocations: 448 / 0.4897 GB, free: 11.51 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003184/0.3818, allocations: 350.7 kB / 0.49 GB, free: 11.23 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003444/0.3822, allocations: 49.81 kB / 0.49 GB, free: 11.22 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007603/0.383, allocations: 455.5 kB / 0.4905 GB, free: 10.95 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002017/0.3832, allocations: 0.7498 MB / 0.4912 GB, free: 10.24 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 9.193e-05/0.3833, allocations: 24.98 kB / 0.4912 GB, free: 10.24 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.457e-05/0.3833, allocations: 24.83 kB / 0.4913 GB, free: 10.23 MB / 382.1 MB Notification: Performance of SimCode: time 2.4e-07/0.3833, allocations: 0 / 0.4913 GB, free: 10.23 MB / 382.1 MB Notification: Performance of Templates: time 0.008401/0.3917, allocations: 3.469 MB / 0.4946 GB, free: 9.836 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)