Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IndustrialControlSystems_IndustrialControlSystems.Logical.Counter.Examples.countZeroCrossing.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.Counter.Examples.countZeroCrossing,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems.Logical.Counter.Examples.countZeroCrossing") translateModel(IndustrialControlSystems.Logical.Counter.Examples.countZeroCrossing,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems.Logical.Counter.Examples.countZeroCrossing") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.003497/0.003497, allocations: 183.2 kB / 7.457 MB, free: 2.508 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.06316/0.06316, allocations: 10.59 MB / 18.46 MB, free: 2.164 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.616/1.616, allocations: 205.2 MB / 226.5 MB, free: 0.5195 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001198/0.001198, allocations: 86.48 kB / 276.9 MB, free: 1.82 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 7.524e-06/7.704e-06, allocations: 0 / 332.9 MB, free: 9.695 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3601/0.3601, allocations: 49.98 MB / 382.9 MB, free: 39.28 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.119/0.4791, allocations: 81.79 MB / 464.7 MB, free: 6.141 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003188/0.4795, allocations: 87.94 kB / 464.8 MB, free: 6.055 MB / 346.7 MB Notification: Performance of FrontEnd: time 0.03059/0.5101, allocations: 9.749 MB / 474.6 MB, free: 12.31 MB / 362.7 MB Notification: Performance of Transformations before backend: time 3.316e-05/0.5102, allocations: 11.94 kB / 474.6 MB, free: 12.3 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 32 * Number of variables: 32 Notification: Performance of Generate backend data structure: time 0.001187/0.5114, allocations: 0.6003 MB / 475.2 MB, free: 11.64 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.131e-05/0.5115, allocations: 12.03 kB / 475.2 MB, free: 11.62 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.183e-05/0.5116, allocations: 39.53 kB / 475.2 MB, free: 11.59 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006355/0.5122, allocations: 331 kB / 475.5 MB, free: 11.22 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.727e-05/0.5122, allocations: 7.984 kB / 475.5 MB, free: 11.21 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.317e-05/0.5123, allocations: 8 kB / 475.6 MB, free: 11.2 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002218/0.5125, allocations: 75.98 kB / 475.6 MB, free: 11.13 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002993/0.5128, allocations: 174.1 kB / 475.8 MB, free: 10.95 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.608e-06/0.5128, allocations: 0 / 475.8 MB, free: 10.95 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.246e-05/0.5129, allocations: 0 / 475.8 MB, free: 10.95 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.765e-06/0.5129, allocations: 8 kB / 475.8 MB, free: 10.94 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009958/0.5139, allocations: 0.5241 MB / 476.3 MB, free: 10.38 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003477/0.5143, allocations: 146.9 kB / 476.5 MB, free: 10.22 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001323/0.5144, allocations: 48.86 kB / 476.5 MB, free: 10.17 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.932e-05/0.5144, allocations: 4 kB / 476.5 MB, free: 10.17 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002538/0.5147, allocations: 149.6 kB / 476.7 MB, free: 10 MB / 362.7 MB Notification: Performance of pre-optimization done (n=21): time 1.754e-06/0.5147, allocations: 8 kB / 476.7 MB, free: 9.992 MB / 362.7 MB Notification: Performance of matching and sorting (n=21): time 0.0004442/0.5152, allocations: 187 kB / 476.9 MB, free: 9.809 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001015/0.5153, allocations: 144.7 kB / 477 MB, free: 9.637 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004485/0.5157, allocations: 315.4 kB / 477.3 MB, free: 9.32 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 3.327e-05/0.5158, allocations: 29.7 kB / 477.3 MB, free: 9.285 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.307e-05/0.5159, allocations: 124.5 kB / 477.5 MB, free: 9.16 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.786e-05/0.5159, allocations: 51.39 kB / 477.5 MB, free: 9.109 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.606e-06/0.516, allocations: 0 / 477.5 MB, free: 9.109 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001641/0.5161, allocations: 346.8 kB / 477.9 MB, free: 8.762 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.132e-05/0.5162, allocations: 43.98 kB / 477.9 MB, free: 8.719 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001826/0.5164, allocations: 162.3 kB / 478.1 MB, free: 8.508 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001317/0.5166, allocations: 71.81 kB / 478.1 MB, free: 8.438 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.615e-06/0.5166, allocations: 0 / 478.1 MB, free: 8.438 MB / 362.7 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0003824/0.517, allocations: 225 kB / 478.3 MB, free: 8.211 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.161e-05/0.517, allocations: 5.094 kB / 478.3 MB, free: 8.207 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.282e-05/0.517, allocations: 7.984 kB / 478.4 MB, free: 8.199 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.27e-05/0.517, allocations: 4.344 kB / 478.4 MB, free: 8.195 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001741/0.5172, allocations: 48.09 kB / 478.4 MB, free: 8.148 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.087e-05/0.5172, allocations: 4 kB / 478.4 MB, free: 8.145 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001757/0.5174, allocations: 31.77 kB / 478.4 MB, free: 8.113 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.031e-05/0.5174, allocations: 8 kB / 478.4 MB, free: 8.105 MB / 362.7 MB Warning: Assuming fixed start value for the following 6 variables: equal.y:DISCRETE(fixed = false ) "output" type: Boolean counter.CUd:DISCRETE(fixed = false ) type: Boolean counter.CDd:DISCRETE(fixed = false ) type: Boolean counter.Sd:DISCRETE(fixed = false ) type: Boolean counter.Q:DISCRETE(fixed = false ) "status of the counter (1: counting, 0: not counting)" type: Boolean counter.Value:DISCRETE(start = 0 fixed = false ) type: Integer Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * Number of states: 0 () * Number of discrete variables: 26 ($PRE.equal.y,equal.y,$PRE.counter.CUd,counter.CUd,$PRE.counter.CDd,counter.CDd,$PRE.counter.Sd,counter.Sd,$PRE.counter.Q,counter.Q,$PRE.counter.Value,counter.Value,$whenCondition4,$whenCondition3,$PRE.reset.combiTimeTable.nextTimeEvent,$whenCondition2,$PRE.set.combiTimeTable.nextTimeEvent,$whenCondition1,counter.R,reset.combiTimeTable.nextTimeEvent,$PRE.reset.combiTimeTable.nextTimeEventScaled,reset.combiTimeTable.nextTimeEventScaled,counter.S,set.combiTimeTable.nextTimeEvent,$PRE.set.combiTimeTable.nextTimeEventScaled,set.combiTimeTable.nextTimeEventScaled) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (31): * Single equations (assignments): 31 * 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.0002085/0.5177, allocations: 134.4 kB / 478.6 MB, free: 7.973 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.376e-05/0.5177, allocations: 35.53 kB / 478.6 MB, free: 7.938 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004626/0.5182, allocations: 205.2 kB / 478.8 MB, free: 7.73 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.461e-06/0.5182, allocations: 8 kB / 478.8 MB, free: 7.723 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.783e-06/0.5182, allocations: 0 / 478.8 MB, free: 7.723 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.67e-06/0.5182, allocations: 0 / 478.8 MB, free: 7.723 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003478/0.5186, allocations: 297.8 kB / 479.1 MB, free: 7.395 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.973e-06/0.5186, allocations: 0 / 479.1 MB, free: 7.395 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.909e-05/0.5187, allocations: 19.98 kB / 479.1 MB, free: 7.375 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.865e-06/0.5187, allocations: 0 / 479.1 MB, free: 7.375 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.499e-05/0.5187, allocations: 7.984 kB / 479.1 MB, free: 7.367 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.294e-06/0.5187, allocations: 0 / 479.1 MB, free: 7.367 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.926e-06/0.5188, allocations: 0 / 479.1 MB, free: 7.367 MB / 362.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0003836/0.5192, allocations: 246.4 kB / 479.4 MB, free: 7.109 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001381/0.5193, allocations: 112.7 kB / 479.5 MB, free: 6.98 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.841e-05/0.5194, allocations: 12 kB / 479.5 MB, free: 6.969 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001658/0.5195, allocations: 23.97 kB / 479.5 MB, free: 6.945 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.134e-05/0.5196, allocations: 15.98 kB / 479.5 MB, free: 6.93 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.17e-05/0.5196, allocations: 10.05 kB / 479.6 MB, free: 6.922 MB / 362.7 MB Notification: Performance of sort global known variables: time 0.0002756/0.5199, allocations: 247.1 kB / 479.8 MB, free: 6.68 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0004451/0.5204, allocations: 83.83 kB / 479.9 MB, free: 6.598 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 16 ($whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,counter.S,counter.R,counter.Q,counter.Value,counter.CUd,counter.CDd,counter.Sd,set.combiTimeTable.nextTimeEvent,set.combiTimeTable.nextTimeEventScaled,reset.combiTimeTable.nextTimeEvent,reset.combiTimeTable.nextTimeEventScaled,equal.y) * Number of discrete states: 8 (counter.Value,counter.Sd,counter.CUd,counter.CDd,set.combiTimeTable.nextTimeEvent,reset.combiTimeTable.nextTimeEvent,set.combiTimeTable.nextTimeEventScaled,reset.combiTimeTable.nextTimeEventScaled) * Top-level inputs: 0 Notification: Strong component statistics for simulation (22): * Single equations (assignments): 13 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 9 * 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.0008401/0.5212, allocations: 361.6 kB / 480.2 MB, free: 6.289 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0003921/0.5216, allocations: 163.8 kB / 480.4 MB, free: 6.129 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.604e-06/0.5216, allocations: 0 / 480.4 MB, free: 6.129 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001483/0.5218, allocations: 87.92 kB / 480.5 MB, free: 6.043 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004232/0.5222, allocations: 62.81 kB / 480.5 MB, free: 5.984 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008594/0.5231, allocations: 365.8 kB / 480.9 MB, free: 5.602 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005064/0.5236, allocations: 0.818 MB / 481.7 MB, free: 4.754 MB / 362.7 MB Notification: Performance of SimCode: time 3e-07/0.5236, allocations: 0 / 481.7 MB, free: 4.754 MB / 362.7 MB Notification: Performance of Templates: time 0.009196/0.5328, allocations: 4.069 MB / 485.8 MB, free: 0.6914 MB / 362.7 MB make -j1 -f IndustrialControlSystems_IndustrialControlSystems.Logical.Counter.Examples.countZeroCrossing.makefile (rm -f IndustrialControlSystems_IndustrialControlSystems.Logical.Counter.Examples.countZeroCrossing.pipe ; mkfifo IndustrialControlSystems_IndustrialControlSystems.Logical.Counter.Examples.countZeroCrossing.pipe ; head -c 1048576 < IndustrialControlSystems_IndustrialControlSystems.Logical.Counter.Examples.countZeroCrossing.pipe >> ../files/IndustrialControlSystems_IndustrialControlSystems.Logical.Counter.Examples.countZeroCrossing.sim & ./IndustrialControlSystems_IndustrialControlSystems.Logical.Counter.Examples.countZeroCrossing -abortSlowSimulation -alarm=480 -lv LOG_STATS > IndustrialControlSystems_IndustrialControlSystems.Logical.Counter.Examples.countZeroCrossing.pipe 2>&1)