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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.00111/0.00111, allocations: 174.8 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.05876/0.05876, 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.713/1.713, allocations: 205.2 MB / 232.1 MB, free: 12.85 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.0009356/0.0009357, allocations: 90.45 kB / 282.6 MB, free: 13.6 MB / 234.8 MB Notification: Performance of FrontEnd - loaded program: time 3.575e-05/3.578e-05, allocations: 0 / 340.5 MB, free: 3.645 MB / 282.8 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3559/0.356, allocations: 49.99 MB / 390.5 MB, free: 35.76 MB / 298.8 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1205/0.4765, allocations: 82.53 MB / 473 MB, free: 1.109 MB / 346.8 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003158/0.4769, allocations: 79.95 kB / 473.1 MB, free: 1.031 MB / 346.8 MB Notification: Performance of FrontEnd - DAE generated: time 0.02953/0.5065, allocations: 10.21 MB / 483.3 MB, free: 6.809 MB / 362.8 MB Notification: Performance of FrontEnd: time 1.724e-06/0.5065, allocations: 0 / 483.3 MB, free: 6.809 MB / 362.8 MB Notification: Performance of Transformations before backend: time 3.248e-05/0.5066, allocations: 8 kB / 483.3 MB, free: 6.801 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: 32 * Number of variables: 32 Notification: Performance of Generate backend data structure: time 0.001037/0.5076, allocations: 0.6082 MB / 483.9 MB, free: 6.133 MB / 362.8 MB Notification: Performance of prepare preOptimizeDAE: time 4.357e-05/0.5077, allocations: 8.031 kB / 483.9 MB, free: 6.125 MB / 362.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.121e-05/0.5078, allocations: 39.48 kB / 484 MB, free: 6.086 MB / 362.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006043/0.5084, allocations: 327.8 kB / 484.3 MB, free: 5.723 MB / 362.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.967e-05/0.5084, allocations: 8 kB / 484.3 MB, free: 5.715 MB / 362.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.019e-05/0.5085, allocations: 23.92 kB / 484.3 MB, free: 5.691 MB / 362.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003935/0.5089, allocations: 188.2 kB / 484.5 MB, free: 5.492 MB / 362.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.13e-05/0.5089, allocations: 0 / 484.5 MB, free: 5.492 MB / 362.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.824e-05/0.5089, allocations: 11.92 kB / 484.5 MB, free: 5.48 MB / 362.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.115e-05/0.509, allocations: 4 kB / 484.5 MB, free: 5.477 MB / 362.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001806/0.5091, allocations: 79.98 kB / 484.6 MB, free: 5.398 MB / 362.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009694/0.5101, allocations: 0.5587 MB / 485.1 MB, free: 4.789 MB / 362.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000444/0.5106, allocations: 154.8 kB / 485.3 MB, free: 4.629 MB / 362.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001156/0.5107, allocations: 60.98 kB / 485.4 MB, free: 4.566 MB / 362.8 MB Notification: Performance of preOpt evalFunc (simulation): time 2.302e-05/0.5107, allocations: 7.938 kB / 485.4 MB, free: 4.559 MB / 362.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003002/0.511, allocations: 165.6 kB / 485.5 MB, free: 4.375 MB / 362.8 MB Notification: Performance of pre-optimization done (n=21): time 1.813e-06/0.5111, allocations: 0 / 485.5 MB, free: 4.375 MB / 362.8 MB Notification: Performance of matching and sorting (n=21): time 0.0004806/0.5115, allocations: 246 kB / 485.8 MB, free: 4.133 MB / 362.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.835e-05/0.5117, allocations: 140.7 kB / 485.9 MB, free: 3.965 MB / 362.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004301/0.5121, allocations: 351.5 kB / 486.2 MB, free: 3.621 MB / 362.8 MB Notification: Performance of collectPreVariables (initialization): time 4.039e-05/0.5121, allocations: 37.7 kB / 486.3 MB, free: 3.578 MB / 362.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001383/0.5123, allocations: 164.5 kB / 486.4 MB, free: 3.414 MB / 362.8 MB Notification: Performance of collectInitialBindings (initialization): time 5.053e-05/0.5123, allocations: 47.41 kB / 486.5 MB, free: 3.367 MB / 362.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.899e-06/0.5124, allocations: 8 kB / 486.5 MB, free: 3.359 MB / 362.8 MB Notification: Performance of setup shared object (initialization): time 0.0002058/0.5126, allocations: 346.8 kB / 486.8 MB, free: 3.012 MB / 362.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.788e-05/0.5127, allocations: 44.44 kB / 486.9 MB, free: 2.969 MB / 362.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002342/0.5129, allocations: 176 kB / 487 MB, free: 2.742 MB / 362.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001521/0.5131, allocations: 75.88 kB / 487.1 MB, free: 2.668 MB / 362.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.15e-06/0.5131, allocations: 4 kB / 487.1 MB, free: 2.664 MB / 362.8 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0004547/0.5136, allocations: 249.2 kB / 487.4 MB, free: 2.414 MB / 362.8 MB Notification: Performance of prepare postOptimizeDAE: time 2.269e-05/0.5136, allocations: 11.94 kB / 487.4 MB, free: 2.402 MB / 362.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.839e-06/0.5136, allocations: 4 kB / 487.4 MB, free: 2.398 MB / 362.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.919e-05/0.5136, allocations: 7.953 kB / 487.4 MB, free: 2.391 MB / 362.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000157/0.5138, allocations: 35.91 kB / 487.4 MB, free: 2.355 MB / 362.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.328e-05/0.5138, allocations: 11.94 kB / 487.4 MB, free: 2.344 MB / 362.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001549/0.514, allocations: 27.83 kB / 487.5 MB, free: 2.316 MB / 362.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.422e-05/0.514, allocations: 24.09 kB / 487.5 MB, free: 2.293 MB / 362.8 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.000203/0.5142, allocations: 145.6 kB / 487.6 MB, free: 2.148 MB / 362.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.23e-05/0.5143, allocations: 31.62 kB / 487.7 MB, free: 2.117 MB / 362.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005145/0.5148, allocations: 271.8 kB / 487.9 MB, free: 1.852 MB / 362.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.861e-06/0.5148, allocations: 4 kB / 487.9 MB, free: 1.848 MB / 362.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.107e-06/0.5149, allocations: 8.078 kB / 487.9 MB, free: 1.84 MB / 362.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.075e-06/0.5149, allocations: 3.984 kB / 487.9 MB, free: 1.836 MB / 362.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003905/0.5153, allocations: 325.3 kB / 488.3 MB, free: 1.469 MB / 362.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.783e-06/0.5153, allocations: 0 / 488.3 MB, free: 1.469 MB / 362.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.958e-05/0.5154, allocations: 15.98 kB / 488.3 MB, free: 1.453 MB / 362.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.504e-06/0.5154, allocations: 4 kB / 488.3 MB, free: 1.449 MB / 362.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.249e-05/0.5154, allocations: 11.98 kB / 488.3 MB, free: 1.438 MB / 362.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.483e-06/0.5154, allocations: 0 / 488.3 MB, free: 1.438 MB / 362.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.02e-07/0.5154, allocations: 4 kB / 488.3 MB, free: 1.434 MB / 362.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004559/0.5159, allocations: 284.4 kB / 488.6 MB, free: 1.137 MB / 362.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001194/0.516, allocations: 112.7 kB / 488.7 MB, free: 1.008 MB / 362.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.168e-05/0.5161, allocations: 11.98 kB / 488.7 MB, free: 0.9961 MB / 362.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001516/0.5162, allocations: 19.98 kB / 488.7 MB, free: 0.9766 MB / 362.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.929e-05/0.5163, allocations: 15.98 kB / 488.7 MB, free: 0.9609 MB / 362.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.399e-05/0.5164, allocations: 15.98 kB / 488.7 MB, free: 0.9453 MB / 362.8 MB Notification: Performance of sorting global known variables: time 0.0003501/0.5167, allocations: 278.1 kB / 489 MB, free: 0.668 MB / 362.8 MB Notification: Performance of sort global known variables: time 3.41e-07/0.5167, allocations: 0 / 489 MB, free: 0.668 MB / 362.8 MB Notification: Performance of remove unused functions: time 0.0004249/0.5171, allocations: 91.78 kB / 489.1 MB, free: 0.5781 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: 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.0009761/0.5181, allocations: 429 kB / 489.5 MB, free: 232 kB / 362.8 MB Notification: Performance of simCode: created initialization part: time 0.0003652/0.5185, allocations: 172 kB / 489.7 MB, free: 60 kB / 362.8 MB Notification: Performance of simCode: created event and clocks part: time 3.937e-06/0.5185, allocations: 4 kB / 489.7 MB, free: 56 kB / 362.8 MB Notification: Performance of simCode: created simulation system equations: time 0.0001647/0.5187, allocations: 87.92 kB / 489.8 MB, free: 15.97 MB / 378.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003801/0.5191, allocations: 69.92 kB / 489.9 MB, free: 15.9 MB / 378.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007934/0.5199, allocations: 390.5 kB / 490.2 MB, free: 15.49 MB / 378.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005252/0.5204, allocations: 0.7841 MB / 491 MB, free: 14.68 MB / 378.8 MB Notification: Performance of simCode: alias equations: time 0.0001598/0.5206, allocations: 51.2 kB / 491.1 MB, free: 14.63 MB / 378.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.085e-05/0.5207, allocations: 31.42 kB / 491.1 MB, free: 14.6 MB / 378.8 MB Notification: Performance of SimCode: time 3.086e-06/0.5207, allocations: 0 / 491.1 MB, free: 14.6 MB / 378.8 MB Notification: Performance of Templates: time 0.0085/0.5292, allocations: 4.263 MB / 495.4 MB, free: 10.34 MB / 378.8 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)