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.001336/0.001336, allocations: 109.8 kB / 16.41 MB, free: 6.449 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.001438/0.001438, allocations: 188.3 kB / 17.35 MB, free: 5.738 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.266/1.266, allocations: 205.1 MB / 223.2 MB, free: 12.25 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.05833/0.05833, allocations: 10.74 MB / 281.3 MB, free: 1.309 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.001532/0.001532, allocations: 71.25 kB / 391.5 MB, free: 45.96 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07782/0.07936, allocations: 49.02 MB / 440.5 MB, free: 3.84 MB / 318.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Logical.Counter.Examples.countZeroCrossing): time 0.002754/0.08215, allocations: 2.142 MB / 442.7 MB, free: 1.68 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001631/0.0838, allocations: 1.244 MB / 443.9 MB, free: 436 kB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001401/0.08396, allocations: 4 kB / 443.9 MB, free: 432 kB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006922/0.08469, allocations: 267.2 kB / 444.2 MB, free: 164 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.0004095/0.08511, allocations: 198.1 kB / 444.4 MB, free: 15.97 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008235/0.08594, allocations: 319 kB / 444.7 MB, free: 15.66 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003824/0.08633, allocations: 387 kB / 445.1 MB, free: 15.28 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001509/0.08649, allocations: 73.06 kB / 445.1 MB, free: 15.21 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002215/0.08672, allocations: 163.3 kB / 445.3 MB, free: 15.05 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001776/0.08691, allocations: 151.3 kB / 445.4 MB, free: 14.9 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.189e-05/0.08696, allocations: 20 kB / 445.5 MB, free: 14.88 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002279/0.08719, allocations: 131.8 kB / 445.6 MB, free: 14.75 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 9.333e-05/0.0873, allocations: 79.73 kB / 445.7 MB, free: 14.68 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001178/0.08742, allocations: 139.1 kB / 445.8 MB, free: 14.54 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004166/0.08785, allocations: 390.8 kB / 446.2 MB, free: 14.16 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.488e-06/0.08786, allocations: 0 / 446.2 MB, free: 14.16 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.202e-06/0.08787, allocations: 4 kB / 446.2 MB, free: 14.15 MB / 334.1 MB Notification: Performance of Transformations before backend: time 9.277e-06/0.08788, allocations: 0 / 446.2 MB, free: 14.15 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.0009824/0.08887, allocations: 0.6884 MB / 446.9 MB, free: 13.4 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.664e-05/0.08892, allocations: 11.89 kB / 446.9 MB, free: 13.39 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.938e-05/0.089, allocations: 36.55 kB / 446.9 MB, free: 13.36 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003932/0.0894, allocations: 335.9 kB / 447.3 MB, free: 12.98 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.181e-05/0.08943, allocations: 12.38 kB / 447.3 MB, free: 12.97 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.812e-05/0.08947, allocations: 19.86 kB / 447.3 MB, free: 12.95 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003716/0.08985, allocations: 196.1 kB / 447.5 MB, free: 12.75 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.012e-05/0.08987, allocations: 3.984 kB / 447.5 MB, free: 12.74 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.423e-05/0.0899, allocations: 4 kB / 447.5 MB, free: 12.74 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.181e-06/0.08991, allocations: 8 kB / 447.5 MB, free: 12.73 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002374/0.09015, allocations: 95.88 kB / 447.6 MB, free: 12.64 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007343/0.09089, allocations: 0.5196 MB / 448.1 MB, free: 12.07 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004623/0.09137, allocations: 170.8 kB / 448.3 MB, free: 11.89 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000159/0.09154, allocations: 70.8 kB / 448.3 MB, free: 11.82 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.385e-05/0.09157, allocations: 0 / 448.3 MB, free: 11.82 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000313/0.09189, allocations: 176.9 kB / 448.5 MB, free: 11.63 MB / 334.1 MB Notification: Performance of pre-optimization done (n=21): time 1.383e-06/0.0919, allocations: 0 / 448.5 MB, free: 11.63 MB / 334.1 MB Notification: Performance of matching and sorting (n=21): time 0.0006855/0.09259, allocations: 321.5 kB / 448.8 MB, free: 11.31 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.151e-05/0.09267, allocations: 140.5 kB / 449 MB, free: 11.14 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003844/0.09307, allocations: 381.6 kB / 449.3 MB, free: 10.76 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.684e-05/0.0931, allocations: 37.7 kB / 449.4 MB, free: 10.72 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001216/0.09323, allocations: 172.4 kB / 449.5 MB, free: 10.55 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.883e-05/0.09329, allocations: 51.34 kB / 449.6 MB, free: 10.5 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.33e-05/0.09338, allocations: 53.7 kB / 449.6 MB, free: 10.44 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001221/0.09351, allocations: 346.8 kB / 450 MB, free: 10.09 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001423/0.09365, allocations: 51.97 kB / 450 MB, free: 10.04 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002147/0.09388, allocations: 175.4 kB / 450.2 MB, free: 9.812 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004003/0.09429, allocations: 242.9 kB / 450.4 MB, free: 9.535 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.675e-06/0.0943, allocations: 8 kB / 450.5 MB, free: 9.527 MB / 334.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0005065/0.09481, allocations: 276.9 kB / 450.7 MB, free: 9.25 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.501e-05/0.09484, allocations: 4 kB / 450.7 MB, free: 9.246 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.083e-05/0.09485, allocations: 4 kB / 450.7 MB, free: 9.242 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.518e-05/0.09488, allocations: 8.281 kB / 450.7 MB, free: 9.234 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001428/0.09502, allocations: 39.92 kB / 450.8 MB, free: 9.195 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.387e-05/0.09505, allocations: 11.92 kB / 450.8 MB, free: 9.184 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001584/0.09521, allocations: 27.84 kB / 450.8 MB, free: 9.156 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.641e-05/0.09524, allocations: 8 kB / 450.8 MB, free: 9.148 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.0002196/0.09546, allocations: 193.1 kB / 451 MB, free: 8.949 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.164e-05/0.09552, allocations: 35.56 kB / 451 MB, free: 8.914 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.029e-05/0.09559, allocations: 31.28 kB / 451.1 MB, free: 8.887 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.051e-06/0.0956, allocations: 7.984 kB / 451.1 MB, free: 8.879 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.322e-06/0.09561, allocations: 0 / 451.1 MB, free: 8.879 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.902e-05/0.09569, allocations: 104.7 kB / 451.2 MB, free: 8.758 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.271e-05/0.09575, allocations: 11.94 kB / 451.2 MB, free: 8.746 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001522/0.09591, allocations: 24.09 kB / 451.2 MB, free: 8.723 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.512e-05/0.09597, allocations: 19.94 kB / 451.2 MB, free: 8.703 MB / 334.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.000534/0.09651, allocations: 327.7 kB / 451.6 MB, free: 8.379 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0005418/0.09706, allocations: 434.3 kB / 452 MB, free: 7.938 MB / 334.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0001776/0.09725, allocations: 87.89 kB / 452.1 MB, free: 7.852 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002799/0.09755, allocations: 283.2 kB / 452.3 MB, free: 7.574 MB / 334.1 MB Notification: Performance of Backend: time 5.61e-07/0.09755, allocations: 0 / 452.3 MB, free: 7.574 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001459/0.09902, allocations: 0.5333 MB / 452.9 MB, free: 7.152 MB / 334.1 MB Notification: Performance of SimCode: time 0.001048/0.1001, allocations: 0.9634 MB / 453.8 MB, free: 6.141 MB / 334.1 MB Notification: Performance of Templates: time 0.008569/0.1087, allocations: 4.647 MB / 458.5 MB, free: 1.504 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)