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.004842/0.004842, allocations: 99.69 kB / 15.73 MB, free: 6.445 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.001107/0.001108, allocations: 190.8 kB / 16.67 MB, free: 6.348 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.558/1.558, allocations: 205.1 MB / 222.5 MB, free: 4.555 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.05678/0.05678, allocations: 10.73 MB / 280.6 MB, free: 10.43 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.001852/0.001852, allocations: 72.12 kB / 390.8 MB, free: 5.055 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5051/0.507, allocations: 49.02 MB / 439.9 MB, free: 5.355 MB / 318.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Logical.Counter.Examples.countZeroCrossing): time 0.005652/0.5127, allocations: 2.142 MB / 442 MB, free: 3.859 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002704/0.5154, allocations: 1.245 MB / 443.2 MB, free: 3.004 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001955/0.5156, allocations: 10.53 kB / 443.3 MB, free: 2.996 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00123/0.5169, allocations: 260.5 kB / 443.5 MB, free: 2.922 MB / 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.0006135/0.5175, allocations: 191.8 kB / 443.7 MB, free: 2.836 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001006/0.5185, allocations: 317.8 kB / 444 MB, free: 2.676 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006547/0.5192, allocations: 385.2 kB / 444.4 MB, free: 2.504 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002139/0.5194, allocations: 80.7 kB / 444.5 MB, free: 2.461 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003483/0.5198, allocations: 154.2 kB / 444.6 MB, free: 2.395 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003204/0.5201, allocations: 153.9 kB / 444.8 MB, free: 2.324 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 6.829e-05/0.5202, allocations: 22.09 kB / 444.8 MB, free: 2.324 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003821/0.5206, allocations: 132.4 kB / 444.9 MB, free: 2.289 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001427/0.5207, allocations: 74.03 kB / 445 MB, free: 2.254 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001829/0.5209, allocations: 140.8 kB / 445.1 MB, free: 2.152 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008553/0.5218, allocations: 401.7 kB / 445.5 MB, free: 1.992 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.745e-06/0.5218, allocations: 0 / 445.5 MB, free: 1.992 MB / 318.1 MB Notification: Performance of FrontEnd: time 3.406e-06/0.5218, allocations: 0 / 445.5 MB, free: 1.992 MB / 318.1 MB Notification: Performance of Transformations before backend: time 2.39e-05/0.5218, allocations: 0 / 445.5 MB, free: 1.992 MB / 318.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.001553/0.5234, allocations: 0.6941 MB / 446.2 MB, free: 1.387 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.04e-05/0.5235, allocations: 13.55 kB / 446.2 MB, free: 1.383 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001239/0.5236, allocations: 42.03 kB / 446.3 MB, free: 1.359 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000593/0.5242, allocations: 329.8 kB / 446.6 MB, free: 1.078 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.865e-05/0.5242, allocations: 12.78 kB / 446.6 MB, free: 1.074 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.49e-05/0.5243, allocations: 17.42 kB / 446.6 MB, free: 1.066 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004959/0.5248, allocations: 192.2 kB / 446.8 MB, free: 0.9648 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.197e-05/0.5248, allocations: 0 / 446.8 MB, free: 0.9648 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.212e-05/0.5249, allocations: 11.59 kB / 446.8 MB, free: 0.957 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.338e-05/0.5249, allocations: 2.625 kB / 446.8 MB, free: 0.957 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002999/0.5252, allocations: 96.48 kB / 446.9 MB, free: 0.9258 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008812/0.5261, allocations: 0.5273 MB / 447.4 MB, free: 0.5234 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005109/0.5266, allocations: 164.1 kB / 447.6 MB, free: 444 kB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001757/0.5268, allocations: 73.62 kB / 447.7 MB, free: 400 kB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.725e-05/0.5268, allocations: 2.312 kB / 447.7 MB, free: 400 kB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003949/0.5272, allocations: 174.9 kB / 447.8 MB, free: 264 kB / 318.1 MB Notification: Performance of pre-optimization done (n=21): time 1.332e-06/0.5272, allocations: 0 / 447.8 MB, free: 264 kB / 318.1 MB Notification: Performance of matching and sorting (n=21): time 0.0008775/0.5281, allocations: 317.4 kB / 448.2 MB, free: 104 kB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001735/0.5283, allocations: 141.1 kB / 448.3 MB, free: 15.94 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005326/0.5289, allocations: 391.5 kB / 448.7 MB, free: 15.7 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.14e-05/0.5289, allocations: 33.33 kB / 448.7 MB, free: 15.66 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001391/0.529, allocations: 172.8 kB / 448.9 MB, free: 15.5 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.869e-05/0.5291, allocations: 47.73 kB / 448.9 MB, free: 15.46 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.238e-05/0.5292, allocations: 54 kB / 449 MB, free: 15.43 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001792/0.5294, allocations: 343.7 kB / 449.3 MB, free: 15.09 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001664/0.5296, allocations: 52.84 kB / 449.4 MB, free: 15.07 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003021/0.5299, allocations: 178.9 kB / 449.5 MB, free: 14.88 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005627/0.5305, allocations: 261.3 kB / 449.8 MB, free: 14.67 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.939e-06/0.5305, allocations: 1.125 kB / 449.8 MB, free: 14.67 MB / 334.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0005431/0.531, allocations: 271.7 kB / 450.1 MB, free: 14.52 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.23e-05/0.5311, allocations: 7.062 kB / 450.1 MB, free: 14.52 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.787e-06/0.5311, allocations: 2.844 kB / 450.1 MB, free: 14.52 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.416e-05/0.5311, allocations: 8.844 kB / 450.1 MB, free: 14.52 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001617/0.5313, allocations: 41.47 kB / 450.1 MB, free: 14.5 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.167e-05/0.5313, allocations: 8.406 kB / 450.1 MB, free: 14.5 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001597/0.5315, allocations: 28.69 kB / 450.2 MB, free: 14.48 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.355e-05/0.5315, allocations: 12.56 kB / 450.2 MB, free: 14.48 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.0003053/0.5318, allocations: 188.8 kB / 450.4 MB, free: 14.32 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.604e-05/0.5319, allocations: 36.25 kB / 450.4 MB, free: 14.3 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001062/0.532, allocations: 33.25 kB / 450.4 MB, free: 14.28 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.374e-06/0.532, allocations: 2.844 kB / 450.4 MB, free: 14.28 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.696e-06/0.532, allocations: 0 / 450.4 MB, free: 14.28 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.48e-06/0.532, allocations: 0 / 450.4 MB, free: 14.28 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003768/0.5324, allocations: 324.1 kB / 450.7 MB, free: 13.97 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.837e-06/0.5324, allocations: 4 kB / 450.7 MB, free: 13.96 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.873e-05/0.5325, allocations: 17.64 kB / 450.8 MB, free: 13.96 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.445e-06/0.5325, allocations: 0 / 450.8 MB, free: 13.96 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.135e-05/0.5325, allocations: 3.188 kB / 450.8 MB, free: 13.96 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.444e-06/0.5326, allocations: 1.625 kB / 450.8 MB, free: 13.96 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.058e-06/0.5326, allocations: 7.922 kB / 450.8 MB, free: 13.95 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006265/0.5332, allocations: 290.4 kB / 451.1 MB, free: 13.78 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001034/0.5333, allocations: 112.7 kB / 451.2 MB, free: 13.66 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.375e-05/0.5334, allocations: 11.73 kB / 451.2 MB, free: 13.65 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001372/0.5335, allocations: 17.11 kB / 451.2 MB, free: 13.64 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.659e-05/0.5336, allocations: 15.2 kB / 451.2 MB, free: 13.63 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.912e-05/0.5336, allocations: 15.02 kB / 451.2 MB, free: 13.62 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0003282/0.534, allocations: 271.2 kB / 451.5 MB, free: 13.46 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.534, allocations: 1.375 kB / 451.5 MB, free: 13.46 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003796/0.5344, allocations: 81.62 kB / 451.6 MB, free: 13.44 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.001143/0.5355, allocations: 452.6 kB / 452 MB, free: 13.13 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0004998/0.536, allocations: 178.9 kB / 452.2 MB, free: 13.06 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.815e-06/0.536, allocations: 0 / 452.2 MB, free: 13.06 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002123/0.5363, allocations: 87.53 kB / 452.3 MB, free: 13.03 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004664/0.5367, allocations: 94.55 kB / 452.4 MB, free: 12.97 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001038/0.5378, allocations: 0.5061 MB / 452.9 MB, free: 12.62 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005115/0.5383, allocations: 0.7739 MB / 453.6 MB, free: 11.88 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001606/0.5385, allocations: 48.08 kB / 453.7 MB, free: 11.86 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.403e-05/0.5386, allocations: 38.92 kB / 453.7 MB, free: 11.84 MB / 334.1 MB Notification: Performance of SimCode: time 2.31e-07/0.5386, allocations: 0 / 453.7 MB, free: 11.84 MB / 334.1 MB Notification: Performance of Templates: time 0.0119/0.5505, allocations: 4.509 MB / 458.2 MB, free: 9.559 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)