Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IndustrialControlSystems_IndustrialControlSystems.Logical.Timers.Examples.testT_OffDelay_Fedge.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/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/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+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 IndustrialControlSystems with version 1.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(IndustrialControlSystems.Logical.Timers.Examples.testT_OffDelay_Fedge,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems.Logical.Timers.Examples.testT_OffDelay_Fedge") translateModel(IndustrialControlSystems.Logical.Timers.Examples.testT_OffDelay_Fedge,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems.Logical.Timers.Examples.testT_OffDelay_Fedge") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001477/0.001477, allocations: 175.2 kB / 12.73 MB, free: 2.59 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.06245/0.06245, allocations: 10.66 MB / 23.92 MB, free: 1.609 MB / 18.57 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.648/1.648, allocations: 205.2 MB / 232.1 MB, free: 12.84 MB / 202.8 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008979/0.000898, allocations: 95.56 kB / 282.6 MB, free: 13.58 MB / 234.8 MB Notification: Performance of FrontEnd - loaded program: time 3.869e-05/3.871e-05, allocations: 0 / 340.5 MB, free: 3.609 MB / 282.8 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4149/0.415, allocations: 49.98 MB / 390.5 MB, free: 35.73 MB / 298.8 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1442/0.5592, allocations: 81.29 MB / 471.8 MB, free: 2.324 MB / 346.8 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002426/0.5595, allocations: 83.95 kB / 471.8 MB, free: 2.242 MB / 346.8 MB Notification: Performance of FrontEnd - DAE generated: time 0.02707/0.5866, allocations: 9.277 MB / 481.1 MB, free: 8.961 MB / 362.8 MB Notification: Performance of FrontEnd: time 2.154e-06/0.5866, allocations: 0 / 481.1 MB, free: 8.961 MB / 362.8 MB Notification: Performance of Transformations before backend: time 4.691e-05/0.5867, allocations: 15.94 kB / 481.1 MB, free: 8.945 MB / 362.8 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 23 * Number of variables: 23 Notification: Performance of Generate backend data structure: time 0.001047/0.5878, allocations: 0.568 MB / 481.7 MB, free: 8.316 MB / 362.8 MB Notification: Performance of prepare preOptimizeDAE: time 5.066e-05/0.5878, allocations: 12.03 kB / 481.7 MB, free: 8.305 MB / 362.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001487/0.588, allocations: 31.58 kB / 481.8 MB, free: 8.273 MB / 362.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006842/0.5887, allocations: 347.9 kB / 482.1 MB, free: 7.891 MB / 362.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.758e-05/0.5887, allocations: 12.19 kB / 482.1 MB, free: 7.879 MB / 362.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.554e-05/0.5888, allocations: 16 kB / 482.1 MB, free: 7.863 MB / 362.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003085/0.5891, allocations: 155.9 kB / 482.3 MB, free: 7.699 MB / 362.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.119e-05/0.5891, allocations: 0 / 482.3 MB, free: 7.699 MB / 362.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.232e-05/0.5891, allocations: 4 kB / 482.3 MB, free: 7.695 MB / 362.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.307e-06/0.5891, allocations: 7.984 kB / 482.3 MB, free: 7.688 MB / 362.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001542/0.5893, allocations: 64.22 kB / 482.3 MB, free: 7.625 MB / 362.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008931/0.5902, allocations: 0.5048 MB / 482.8 MB, free: 7.07 MB / 362.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003719/0.5906, allocations: 142.8 kB / 483 MB, free: 6.922 MB / 362.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001081/0.5907, allocations: 60.83 kB / 483 MB, free: 6.859 MB / 362.8 MB Notification: Performance of preOpt evalFunc (simulation): time 1.635e-05/0.5907, allocations: 3.953 kB / 483.1 MB, free: 6.855 MB / 362.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002327/0.591, allocations: 136.2 kB / 483.2 MB, free: 6.711 MB / 362.8 MB Notification: Performance of pre-optimization done (n=18): time 2.084e-06/0.591, allocations: 0 / 483.2 MB, free: 6.711 MB / 362.8 MB Notification: Performance of matching and sorting (n=18): time 0.0004912/0.5915, allocations: 226.1 kB / 483.4 MB, free: 6.484 MB / 362.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.993e-05/0.5916, allocations: 114.8 kB / 483.5 MB, free: 6.348 MB / 362.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004867/0.5921, allocations: 378.7 kB / 483.9 MB, free: 5.969 MB / 362.8 MB Notification: Performance of collectPreVariables (initialization): time 3.642e-05/0.5921, allocations: 29.7 kB / 483.9 MB, free: 5.934 MB / 362.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001149/0.5923, allocations: 164.3 kB / 484.1 MB, free: 5.766 MB / 362.8 MB Notification: Performance of collectInitialBindings (initialization): time 5.369e-05/0.5923, allocations: 47.58 kB / 484.1 MB, free: 5.719 MB / 362.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.586e-06/0.5923, allocations: 4 kB / 484.1 MB, free: 5.715 MB / 362.8 MB Notification: Performance of setup shared object (initialization): time 0.0001353/0.5925, allocations: 346.8 kB / 484.5 MB, free: 5.367 MB / 362.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.525e-05/0.5926, allocations: 40.23 kB / 484.5 MB, free: 5.324 MB / 362.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001705/0.5927, allocations: 153.4 kB / 484.7 MB, free: 5.133 MB / 362.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001299/0.5929, allocations: 63.91 kB / 484.7 MB, free: 5.07 MB / 362.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.635e-06/0.5929, allocations: 0 / 484.7 MB, free: 5.07 MB / 362.8 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.0003728/0.5933, allocations: 225 kB / 484.9 MB, free: 4.844 MB / 362.8 MB Notification: Performance of prepare postOptimizeDAE: time 2.164e-05/0.5933, allocations: 11.95 kB / 484.9 MB, free: 4.832 MB / 362.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.989e-06/0.5933, allocations: 4 kB / 485 MB, free: 4.828 MB / 362.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.288e-05/0.5934, allocations: 4 kB / 485 MB, free: 4.824 MB / 362.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001259/0.5935, allocations: 31.92 kB / 485 MB, free: 4.793 MB / 362.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.375e-05/0.5935, allocations: 4 kB / 485 MB, free: 4.789 MB / 362.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001478/0.5937, allocations: 19.92 kB / 485 MB, free: 4.77 MB / 362.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.159e-05/0.5937, allocations: 12.22 kB / 485 MB, free: 4.758 MB / 362.8 MB Warning: Assuming fixed start value for the following 3 variables: timer.Sd:DISCRETE(fixed = false ) type: Boolean timer.Q:DISCRETE(fixed = false ) "status of the timer" type: Boolean timer.tr:DISCRETE(fixed = false ) "residual time" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 23 ($PRE.timer.Sd,timer.Sd,$PRE.timer.run,timer.run,$PRE.timer.startTime,timer.startTime,$PRE.timer.Q,timer.Q,$PRE.timer.tr,timer.tr,$whenCondition3,$PRE.ResetSignal.combiTimeTable.nextTimeEvent,$whenCondition2,$PRE.SetSignal.combiTimeTable.nextTimeEvent,$whenCondition1,ResetSignal.y,ResetSignal.combiTimeTable.nextTimeEvent,$PRE.ResetSignal.combiTimeTable.nextTimeEventScaled,ResetSignal.combiTimeTable.nextTimeEventScaled,SetSignal.y,SetSignal.combiTimeTable.nextTimeEvent,$PRE.SetSignal.combiTimeTable.nextTimeEventScaled,SetSignal.combiTimeTable.nextTimeEventScaled) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (27): * Single equations (assignments): 27 * Array equations: 0 * Algorithm blocks: 0 * 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.000171/0.5939, allocations: 148.3 kB / 485.2 MB, free: 4.609 MB / 362.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.854e-05/0.5939, allocations: 27.62 kB / 485.2 MB, free: 4.582 MB / 362.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000444/0.5944, allocations: 256.5 kB / 485.4 MB, free: 4.328 MB / 362.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.487e-06/0.5944, allocations: 0 / 485.4 MB, free: 4.328 MB / 362.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.773e-06/0.5944, allocations: 3.953 kB / 485.4 MB, free: 4.324 MB / 362.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.982e-06/0.5944, allocations: 8 kB / 485.5 MB, free: 4.316 MB / 362.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003591/0.5948, allocations: 317.4 kB / 485.8 MB, free: 3.957 MB / 362.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.914e-06/0.5948, allocations: 0 / 485.8 MB, free: 3.957 MB / 362.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.954e-05/0.5949, allocations: 8 kB / 485.8 MB, free: 3.949 MB / 362.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.412e-06/0.5949, allocations: 4 kB / 485.8 MB, free: 3.945 MB / 362.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.252e-05/0.5949, allocations: 7.984 kB / 485.8 MB, free: 3.938 MB / 362.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.509e-06/0.5949, allocations: 4 kB / 485.8 MB, free: 3.934 MB / 362.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.526e-06/0.5949, allocations: 3.953 kB / 485.8 MB, free: 3.93 MB / 362.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004113/0.5953, allocations: 270.6 kB / 486.1 MB, free: 3.648 MB / 362.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001466/0.5955, allocations: 120.7 kB / 486.2 MB, free: 3.512 MB / 362.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.258e-05/0.5956, allocations: 8 kB / 486.2 MB, free: 3.504 MB / 362.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001051/0.5957, allocations: 11.98 kB / 486.2 MB, free: 3.492 MB / 362.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.594e-05/0.5957, allocations: 16.02 kB / 486.2 MB, free: 3.477 MB / 362.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.972e-05/0.5958, allocations: 11.98 kB / 486.2 MB, free: 3.465 MB / 362.8 MB Notification: Performance of sorting global known variables: time 0.000355/0.5961, allocations: 302.1 kB / 486.5 MB, free: 3.164 MB / 362.8 MB Notification: Performance of sort global known variables: time 1.052e-06/0.5961, allocations: 0 / 486.5 MB, free: 3.164 MB / 362.8 MB Notification: Performance of remove unused functions: time 0.0003918/0.5965, allocations: 80.05 kB / 486.6 MB, free: 3.086 MB / 362.8 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 14 ($whenCondition3,$whenCondition2,$whenCondition1,timer.Q,timer.tr,timer.run,timer.startTime,timer.Sd,SetSignal.y,SetSignal.combiTimeTable.nextTimeEvent,SetSignal.combiTimeTable.nextTimeEventScaled,ResetSignal.y,ResetSignal.combiTimeTable.nextTimeEvent,ResetSignal.combiTimeTable.nextTimeEventScaled) * Number of discrete states: 6 (timer.Sd,timer.run,SetSignal.combiTimeTable.nextTimeEvent,ResetSignal.combiTimeTable.nextTimeEvent,SetSignal.combiTimeTable.nextTimeEventScaled,ResetSignal.combiTimeTable.nextTimeEventScaled) * Top-level inputs: 0 Notification: Strong component statistics for simulation (19): * Single equations (assignments): 11 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 8 * 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.001094/0.5976, allocations: 432.9 kB / 487 MB, free: 2.73 MB / 362.8 MB Notification: Performance of simCode: created initialization part: time 0.000355/0.598, allocations: 160 kB / 487.2 MB, free: 2.574 MB / 362.8 MB Notification: Performance of simCode: created event and clocks part: time 3.076e-06/0.598, allocations: 0 / 487.2 MB, free: 2.574 MB / 362.8 MB Notification: Performance of simCode: created simulation system equations: time 0.0001438/0.5982, allocations: 83.02 kB / 487.3 MB, free: 2.496 MB / 362.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004693/0.5987, allocations: 76.52 kB / 487.3 MB, free: 2.422 MB / 362.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008148/0.5995, allocations: 387.2 kB / 487.7 MB, free: 2.023 MB / 362.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003978/0.5999, allocations: 0.7833 MB / 488.5 MB, free: 1.211 MB / 362.8 MB Notification: Performance of simCode: alias equations: time 0.0001588/0.6001, allocations: 46.05 kB / 488.5 MB, free: 1.164 MB / 362.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.943e-05/0.6001, allocations: 35.42 kB / 488.6 MB, free: 1.133 MB / 362.8 MB Notification: Performance of SimCode: time 7.52e-07/0.6002, allocations: 0 / 488.6 MB, free: 1.133 MB / 362.8 MB Notification: Performance of Templates: time 0.01078/0.6109, allocations: 4.172 MB / 492.7 MB, free: 12.97 MB / 378.8 MB make -j1 -f IndustrialControlSystems_IndustrialControlSystems.Logical.Timers.Examples.testT_OffDelay_Fedge.makefile (rm -f IndustrialControlSystems_IndustrialControlSystems.Logical.Timers.Examples.testT_OffDelay_Fedge.pipe ; mkfifo IndustrialControlSystems_IndustrialControlSystems.Logical.Timers.Examples.testT_OffDelay_Fedge.pipe ; head -c 1048576 < IndustrialControlSystems_IndustrialControlSystems.Logical.Timers.Examples.testT_OffDelay_Fedge.pipe >> ../files/IndustrialControlSystems_IndustrialControlSystems.Logical.Timers.Examples.testT_OffDelay_Fedge.sim & ./IndustrialControlSystems_IndustrialControlSystems.Logical.Timers.Examples.testT_OffDelay_Fedge -abortSlowSimulation -alarm=480 -lv LOG_STATS > IndustrialControlSystems_IndustrialControlSystems.Logical.Timers.Examples.testT_OffDelay_Fedge.pipe 2>&1)