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.001227/0.001227, allocations: 108.1 kB / 16.41 MB, free: 6.512 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.001228/0.001228, allocations: 189.5 kB / 17.34 MB, free: 5.742 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.165/1.165, allocations: 205.1 MB / 223.2 MB, free: 12.23 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.05433/0.05433, allocations: 10.74 MB / 281.3 MB, free: 1.277 MB / 222.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.001289/0.001289, allocations: 68.19 kB / 391.5 MB, free: 46 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06031/0.06161, allocations: 49.03 MB / 440.5 MB, free: 3.82 MB / 318.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Logical.Counter.Examples.countZeroCrossing): time 0.002675/0.06432, allocations: 2.142 MB / 442.7 MB, free: 1.66 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001466/0.0658, allocations: 1.244 MB / 443.9 MB, free: 416 kB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001479/0.06597, allocations: 3.938 kB / 443.9 MB, free: 412 kB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005779/0.06656, allocations: 267.1 kB / 444.2 MB, free: 148 kB / 318.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.000372/0.06695, allocations: 195.2 kB / 444.4 MB, free: 15.95 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007319/0.06769, allocations: 323.1 kB / 444.7 MB, free: 15.64 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003513/0.06805, allocations: 379 kB / 445.1 MB, free: 15.27 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001302/0.06819, allocations: 77.05 kB / 445.1 MB, free: 15.2 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002102/0.0684, allocations: 159.4 kB / 445.3 MB, free: 15.04 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001618/0.06858, allocations: 155.2 kB / 445.4 MB, free: 14.89 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.005e-05/0.06862, allocations: 20 kB / 445.5 MB, free: 14.87 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001995/0.06883, allocations: 135.8 kB / 445.6 MB, free: 14.73 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 9.251e-05/0.06893, allocations: 75.75 kB / 445.7 MB, free: 14.66 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001157/0.06905, allocations: 135.2 kB / 445.8 MB, free: 14.53 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003996/0.06946, allocations: 390.8 kB / 446.2 MB, free: 14.14 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.2e-06/0.06947, allocations: 7.984 kB / 446.2 MB, free: 14.14 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.243e-06/0.06948, allocations: 0 / 446.2 MB, free: 14.14 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.666e-06/0.0695, allocations: 4 kB / 446.2 MB, free: 14.13 MB / 334.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.0009307/0.07043, allocations: 0.6845 MB / 446.9 MB, free: 13.39 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.751e-05/0.07047, allocations: 15.83 kB / 446.9 MB, free: 13.37 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.743e-05/0.07055, allocations: 32.56 kB / 446.9 MB, free: 13.34 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003634/0.07092, allocations: 335.9 kB / 447.2 MB, free: 12.97 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.974e-05/0.07095, allocations: 12.38 kB / 447.3 MB, free: 12.96 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.943e-05/0.07099, allocations: 19.94 kB / 447.3 MB, free: 12.94 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003477/0.07134, allocations: 192.1 kB / 447.5 MB, free: 12.73 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.776e-06/0.07136, allocations: 0 / 447.5 MB, free: 12.73 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.136e-05/0.07138, allocations: 7.984 kB / 447.5 MB, free: 12.73 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.153e-06/0.0714, allocations: 4 kB / 447.5 MB, free: 12.72 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002415/0.07164, allocations: 95.89 kB / 447.6 MB, free: 12.63 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000694/0.07235, allocations: 0.5274 MB / 448.1 MB, free: 12.05 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004209/0.07278, allocations: 158.7 kB / 448.3 MB, free: 11.89 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001463/0.07294, allocations: 72.91 kB / 448.3 MB, free: 11.81 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.199e-05/0.07297, allocations: 4 kB / 448.3 MB, free: 11.81 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000299/0.07327, allocations: 180.9 kB / 448.5 MB, free: 11.61 MB / 334.1 MB Notification: Performance of pre-optimization done (n=21): time 1.362e-06/0.07329, allocations: 4 kB / 448.5 MB, free: 11.61 MB / 334.1 MB Notification: Performance of matching and sorting (n=21): time 0.0006439/0.07394, allocations: 314.2 kB / 448.8 MB, free: 11.3 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.762e-05/0.07401, allocations: 136.5 kB / 448.9 MB, free: 11.13 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003603/0.07438, allocations: 389.6 kB / 449.3 MB, free: 10.74 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.659e-05/0.07441, allocations: 33.7 kB / 449.4 MB, free: 10.7 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001076/0.07453, allocations: 168.4 kB / 449.5 MB, free: 10.54 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.408e-05/0.07458, allocations: 51.34 kB / 449.6 MB, free: 10.48 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.722e-05/0.07465, allocations: 57.69 kB / 449.6 MB, free: 10.42 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001155/0.07477, allocations: 342.8 kB / 450 MB, free: 10.08 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001325/0.07491, allocations: 51.97 kB / 450 MB, free: 10.03 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000207/0.07512, allocations: 175.4 kB / 450.2 MB, free: 9.801 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003829/0.07551, allocations: 250.9 kB / 450.4 MB, free: 9.516 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.166e-06/0.07553, allocations: 0 / 450.4 MB, free: 9.516 MB / 334.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0004626/0.076, allocations: 276.9 kB / 450.7 MB, free: 9.238 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.458e-05/0.07602, allocations: 6.031 kB / 450.7 MB, free: 9.234 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.081e-06/0.07603, allocations: 7.938 kB / 450.7 MB, free: 9.227 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.315e-05/0.07605, allocations: 4 kB / 450.7 MB, free: 9.223 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001426/0.0762, allocations: 43.91 kB / 450.8 MB, free: 9.18 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.155e-05/0.07622, allocations: 11.92 kB / 450.8 MB, free: 9.168 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001497/0.07637, allocations: 36.16 kB / 450.8 MB, free: 9.133 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.01e-05/0.0764, allocations: 8 kB / 450.8 MB, free: 9.125 MB / 334.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,$PRE.reset.combiTimeTable.nextTimeEvent,$whenCondition3,$PRE.set.combiTimeTable.nextTimeEvent,$whenCondition2,$whenCondition1,reset.combiTimeTable.nextTimeEventScaled,$PRE.reset.combiTimeTable.nextTimeEventScaled,reset.combiTimeTable.nextTimeEvent,reset.y,set.combiTimeTable.nextTimeEventScaled,$PRE.set.combiTimeTable.nextTimeEventScaled,set.combiTimeTable.nextTimeEvent,set.y) * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001898/0.07659, allocations: 185.2 kB / 451 MB, free: 8.934 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.716e-05/0.07665, allocations: 35.56 kB / 451 MB, free: 8.898 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.61e-05/0.07671, allocations: 43.22 kB / 451.1 MB, free: 8.859 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.924e-06/0.07672, allocations: 0 / 451.1 MB, free: 8.859 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.186e-06/0.07673, allocations: 0 / 451.1 MB, free: 8.859 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.527e-06/0.07673, allocations: 0 / 451.1 MB, free: 8.859 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002542/0.07699, allocations: 321.2 kB / 451.4 MB, free: 8.496 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.523e-06/0.077, allocations: 128 / 451.4 MB, free: 8.496 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.656e-05/0.07709, allocations: 19.98 kB / 451.4 MB, free: 8.477 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.793e-06/0.0771, allocations: 0 / 451.4 MB, free: 8.477 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.352e-05/0.07712, allocations: 4 kB / 451.4 MB, free: 8.473 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.493e-06/0.07712, allocations: 0 / 451.4 MB, free: 8.473 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.276e-06/0.07713, allocations: 11.98 kB / 451.4 MB, free: 8.461 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004591/0.0776, allocations: 287.5 kB / 451.7 MB, free: 8.164 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.624e-05/0.07767, allocations: 104.7 kB / 451.8 MB, free: 8.043 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.012e-05/0.07773, allocations: 11.98 kB / 451.8 MB, free: 8.031 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001371/0.07787, allocations: 15.92 kB / 451.8 MB, free: 8.016 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.96e-05/0.07793, allocations: 19.98 kB / 451.9 MB, free: 7.996 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.224e-05/0.07796, allocations: 11.98 kB / 451.9 MB, free: 7.984 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002537/0.07821, allocations: 275.2 kB / 452.1 MB, free: 7.715 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.07822, allocations: 0 / 452.1 MB, free: 7.715 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003086/0.07853, allocations: 75.98 kB / 452.2 MB, free: 7.641 MB / 334.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 (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.0009005/0.07944, allocations: 457.7 kB / 452.7 MB, free: 7.305 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003984/0.07985, allocations: 183.8 kB / 452.8 MB, free: 7.125 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.144e-06/0.07986, allocations: 0 / 452.8 MB, free: 7.125 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001781/0.08005, allocations: 83.91 kB / 452.9 MB, free: 7.043 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003834/0.08044, allocations: 81.16 kB / 453 MB, free: 6.965 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007471/0.08119, allocations: 0.5391 MB / 453.5 MB, free: 6.387 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003037/0.08151, allocations: 0.7675 MB / 454.3 MB, free: 5.594 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.836e-05/0.08158, allocations: 35.42 kB / 454.3 MB, free: 5.559 MB / 334.1 MB Notification: Performance of SimCode: time 2.4e-07/0.08159, allocations: 4 kB / 454.3 MB, free: 5.555 MB / 334.1 MB Notification: Performance of Templates: time 0.006428/0.08802, allocations: 4.709 MB / 459.1 MB, free: 0.8477 MB / 334.1 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)