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/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/IndustrialControlSystems 1.1.0-master/package.mo", uses=false) Using package IndustrialControlSystems with version 1.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/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(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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008866/0.0008866, allocations: 99.86 kB / 15.05 MB, free: 1.105 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.0008873/0.0008874, allocations: 177.3 kB / 15.95 MB, free: 216 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.218/1.218, allocations: 205.4 MB / 222.1 MB, free: 5.656 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.05209/0.05209, allocations: 10.73 MB / 281.1 MB, free: 10.56 MB / 238.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: Performance of FrontEnd - loaded program: time 0.0004454/0.0004455, allocations: 16.2 kB / 341.6 MB, free: 23.88 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07453/0.07498, allocations: 50.01 MB / 391.6 MB, free: 5.801 MB / 286.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Logical.Counter.Examples.countZeroCrossing): time 0.002053/0.07708, allocations: 1.773 MB / 393.4 MB, free: 4.016 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001497/0.07859, allocations: 1.124 MB / 394.5 MB, free: 2.883 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001011/0.07871, allocations: 3.938 kB / 394.5 MB, free: 2.879 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006328/0.07935, allocations: 231.3 kB / 394.7 MB, free: 2.652 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003121/0.07967, allocations: 167.6 kB / 394.9 MB, free: 2.488 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006079/0.08029, allocations: 271.3 kB / 395.2 MB, free: 2.223 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002654/0.08056, allocations: 235.5 kB / 395.4 MB, free: 1.992 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001229/0.08069, allocations: 49.12 kB / 395.4 MB, free: 1.945 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001739/0.08087, allocations: 131.5 kB / 395.6 MB, free: 1.816 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000138/0.08102, allocations: 127.4 kB / 395.7 MB, free: 1.691 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.572e-05/0.08106, allocations: 4 kB / 395.7 MB, free: 1.688 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001493/0.08121, allocations: 91.86 kB / 395.8 MB, free: 1.598 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 7.352e-05/0.0813, allocations: 59.75 kB / 395.8 MB, free: 1.539 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 6.177e-05/0.08136, allocations: 73.56 kB / 395.9 MB, free: 1.461 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002677/0.08164, allocations: 283.6 kB / 396.2 MB, free: 1.184 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.945e-06/0.08165, allocations: 4 kB / 396.2 MB, free: 1.18 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.252e-06/0.08166, allocations: 3.938 kB / 396.2 MB, free: 1.176 MB / 286.1 MB Notification: Performance of Transformations before backend: time 4.949e-06/0.08167, allocations: 0 / 396.2 MB, free: 1.176 MB / 286.1 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.0008354/0.08251, allocations: 0.6339 MB / 396.8 MB, free: 492 kB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.039e-05/0.08254, allocations: 12.03 kB / 396.8 MB, free: 480 kB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.117e-05/0.08261, allocations: 35.53 kB / 396.9 MB, free: 444 kB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003535/0.08297, allocations: 318.9 kB / 397.2 MB, free: 88 kB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.764e-05/0.08301, allocations: 8 kB / 397.2 MB, free: 80 kB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.748e-05/0.08304, allocations: 23.98 kB / 397.2 MB, free: 56 kB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003418/0.08339, allocations: 196.1 kB / 397.4 MB, free: 15.84 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.374e-06/0.08341, allocations: 0 / 397.4 MB, free: 15.84 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.224e-05/0.08344, allocations: 7.953 kB / 397.4 MB, free: 15.84 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.39e-06/0.08345, allocations: 4 kB / 397.4 MB, free: 15.83 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002235/0.08368, allocations: 99.94 kB / 397.5 MB, free: 15.73 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007002/0.08439, allocations: 0.5351 MB / 398.1 MB, free: 15.15 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004038/0.0848, allocations: 166.8 kB / 398.2 MB, free: 14.98 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.54e-05/0.08484, allocations: 7.984 kB / 398.2 MB, free: 14.97 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002942/0.08514, allocations: 177.6 kB / 398.4 MB, free: 14.78 MB / 302.1 MB Notification: Performance of pre-optimization done (n=21): time 1.453e-06/0.08515, allocations: 0 / 398.4 MB, free: 14.78 MB / 302.1 MB Notification: Performance of matching and sorting (n=21): time 0.0006512/0.08581, allocations: 409.1 kB / 398.8 MB, free: 14.36 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.534e-05/0.08589, allocations: 136.5 kB / 398.9 MB, free: 14.2 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003466/0.08624, allocations: 385.6 kB / 399.3 MB, free: 13.81 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.834e-05/0.08628, allocations: 33.7 kB / 399.3 MB, free: 13.77 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.495e-05/0.08638, allocations: 156.5 kB / 399.5 MB, free: 13.61 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.113e-05/0.08644, allocations: 67.41 kB / 399.6 MB, free: 13.55 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.304e-06/0.08645, allocations: 0 / 399.6 MB, free: 13.55 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001063/0.08656, allocations: 346.8 kB / 399.9 MB, free: 13.2 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001305/0.0867, allocations: 51.97 kB / 399.9 MB, free: 13.15 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001949/0.0869, allocations: 183.3 kB / 400.1 MB, free: 12.91 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001773/0.08709, allocations: 79.83 kB / 400.2 MB, free: 12.84 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.545e-06/0.0871, allocations: 0 / 400.2 MB, free: 12.84 MB / 302.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0004406/0.08754, allocations: 277 kB / 400.5 MB, free: 12.56 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.454e-05/0.08757, allocations: 4 kB / 400.5 MB, free: 12.55 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.225e-06/0.08758, allocations: 11.92 kB / 400.5 MB, free: 12.54 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.392e-05/0.0876, allocations: 4 kB / 400.5 MB, free: 12.54 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001343/0.08774, allocations: 35.92 kB / 400.5 MB, free: 12.5 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.608e-06/0.08776, allocations: 4.344 kB / 400.5 MB, free: 12.5 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001508/0.08792, allocations: 43.67 kB / 400.6 MB, free: 12.46 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.731e-05/0.08794, allocations: 12 kB / 400.6 MB, free: 12.45 MB / 302.1 MB Warning: Assuming fixed start value for the following 6 variables: equal.y:DISCRETE(flow=false fixed = true ) "output" type: Boolean counter.CUd:DISCRETE(fixed = true ) type: Boolean counter.CDd:DISCRETE(fixed = true ) type: Boolean counter.Sd:DISCRETE(fixed = true ) type: Boolean counter.Q:DISCRETE(flow=false fixed = true ) "status of the counter (1: counting, 0: not counting)" type: Boolean counter.Value:DISCRETE(start = 0 fixed = true ) 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,reset.y,reset.combiTimeTable.nextTimeEvent,$PRE.reset.combiTimeTable.nextTimeEventScaled,reset.combiTimeTable.nextTimeEventScaled,set.y,set.combiTimeTable.nextTimeEvent,$PRE.set.combiTimeTable.nextTimeEventScaled,set.combiTimeTable.nextTimeEventScaled) * Number of discrete states: 0 () * Number of clocked 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.0002149/0.08816, allocations: 189.4 kB / 400.8 MB, free: 12.25 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.493e-05/0.08821, allocations: 39.58 kB / 400.8 MB, free: 12.21 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.929e-05/0.08829, allocations: 31.28 kB / 400.8 MB, free: 12.17 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.337e-06/0.0883, allocations: 0 / 400.8 MB, free: 12.17 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.369e-06/0.08831, allocations: 0 / 400.8 MB, free: 12.17 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.657e-06/0.08832, allocations: 0 / 400.8 MB, free: 12.17 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002621/0.08858, allocations: 317.4 kB / 401.2 MB, free: 11.81 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.343e-06/0.08859, allocations: 0 / 401.2 MB, free: 11.81 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.541e-05/0.08867, allocations: 11.98 kB / 401.2 MB, free: 11.8 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.631e-06/0.08868, allocations: 7.953 kB / 401.2 MB, free: 11.79 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.56e-05/0.0887, allocations: 7.984 kB / 401.2 MB, free: 11.79 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.787e-06/0.08871, allocations: 4 kB / 401.2 MB, free: 11.78 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.31e-07/0.08872, allocations: 0 / 401.2 MB, free: 11.78 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004482/0.08917, allocations: 292.5 kB / 401.5 MB, free: 11.48 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.533e-05/0.08926, allocations: 112.7 kB / 401.6 MB, free: 11.35 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.615e-05/0.08931, allocations: 8 kB / 401.6 MB, free: 11.34 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001396/0.08946, allocations: 23.97 kB / 401.6 MB, free: 11.32 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.161e-05/0.08952, allocations: 15.98 kB / 401.6 MB, free: 11.3 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.255e-05/0.08955, allocations: 11.98 kB / 401.6 MB, free: 11.29 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.000245/0.0898, allocations: 275.2 kB / 401.9 MB, free: 11.03 MB / 302.1 MB Notification: Performance of sort global known variables: time 2e-07/0.0898, allocations: 0 / 401.9 MB, free: 11.03 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003287/0.09014, allocations: 75.91 kB / 402 MB, free: 10.95 MB / 302.1 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.Q,counter.Value,counter.CUd,counter.CDd,counter.Sd,set.y,set.combiTimeTable.nextTimeEvent,set.combiTimeTable.nextTimeEventScaled,reset.y,reset.combiTimeTable.nextTimeEvent,reset.combiTimeTable.nextTimeEventScaled,equal.y) * Number of discrete states: 8 (counter.Value,counter.Sd,counter.CUd,counter.CDd,reset.combiTimeTable.nextTimeEventScaled,set.combiTimeTable.nextTimeEventScaled,set.combiTimeTable.nextTimeEvent,reset.combiTimeTable.nextTimeEvent) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (20): * Single equations (assignments): 11 * 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.000898/0.09104, allocations: 458.1 kB / 402.4 MB, free: 10.6 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003933/0.09145, allocations: 192.2 kB / 402.6 MB, free: 10.41 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.254e-06/0.09146, allocations: 0 / 402.6 MB, free: 10.41 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001745/0.09164, allocations: 91.97 kB / 402.7 MB, free: 10.32 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003434/0.092, allocations: 73.47 kB / 402.8 MB, free: 10.25 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007194/0.09272, allocations: 0.5385 MB / 403.3 MB, free: 9.684 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002712/0.09301, allocations: 0.7797 MB / 404.1 MB, free: 8.879 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.00012/0.09314, allocations: 42.94 kB / 404.1 MB, free: 8.836 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.948e-05/0.0932, allocations: 31.38 kB / 404.2 MB, free: 8.809 MB / 302.1 MB Notification: Performance of SimCode: time 2.91e-07/0.09321, allocations: 4 kB / 404.2 MB, free: 8.805 MB / 302.1 MB Notification: Performance of Templates: time 0.007004/0.1002, allocations: 4.061 MB / 408.2 MB, free: 4.742 MB / 302.1 MB make -j1 -f IndustrialControlSystems_IndustrialControlSystems.Logical.Counter.Examples.countZeroCrossing.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: