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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0009939/0.0009939, allocations: 93.06 kB / 19.65 MB, free: 280 kB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.00124/0.00124, allocations: 165 kB / 23.02 MB, free: 1.551 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.962/0.962, allocations: 177.1 MB / 203.4 MB, free: 5.656 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 2.0.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 2.0.0/package.mo): time 0.03702/0.03702, allocations: 8.617 MB / 268.6 MB, free: 4.938 MB / 250.7 MB " [Timeout remaining time 180] Using package IndustrialControlSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 2.0.0/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(IndustrialControlSystems.Logical.Counter.Examples.countZeroCrossing,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems.Logical.Counter.Examples.countZeroCrossing") translateModel(IndustrialControlSystems.Logical.Counter.Examples.countZeroCrossing,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems.Logical.Counter.Examples.countZeroCrossing") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.313e-06/1.313e-06, allocations: 0 / 340.9 MB, free: 8.414 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.547e-05/1.678e-05, allocations: 6.25 kB / 340.9 MB, free: 8.406 MB / 266.7 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Logical.Counter.Examples.countZeroCrossing): time 0.002025/0.002042, allocations: 2.204 MB / 343.1 MB, free: 6.188 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001387/0.003429, allocations: 1.465 MB / 344.5 MB, free: 4.715 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001042/0.003533, allocations: 4 kB / 344.5 MB, free: 4.711 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0005418/0.004075, allocations: 290.9 kB / 344.8 MB, free: 4.426 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003143/0.004389, allocations: 254.8 kB / 345.1 MB, free: 4.176 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003882/0.004777, allocations: 307.1 kB / 345.4 MB, free: 3.875 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002648/0.005042, allocations: 406.8 kB / 345.8 MB, free: 3.477 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001062/0.005148, allocations: 49.27 kB / 345.8 MB, free: 3.43 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002109/0.005359, allocations: 223.4 kB / 346 MB, free: 3.211 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001182/0.005477, allocations: 139.6 kB / 346.2 MB, free: 3.074 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 2.654e-05/0.005504, allocations: 20 kB / 346.2 MB, free: 3.055 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001539/0.005658, allocations: 139.8 kB / 346.3 MB, free: 2.918 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 7.04e-05/0.005728, allocations: 87.67 kB / 346.4 MB, free: 2.832 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 6.846e-05/0.005797, allocations: 83.7 kB / 346.5 MB, free: 2.75 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002905/0.006087, allocations: 334.8 kB / 346.8 MB, free: 2.422 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.903e-06/0.006089, allocations: 0 / 346.8 MB, free: 2.422 MB / 266.7 MB Notification: Performance of FrontEnd: time 5.41e-07/0.00609, allocations: 0 / 346.8 MB, free: 2.422 MB / 266.7 MB Notification: Performance of Transformations before backend: time 4.057e-06/0.006094, allocations: 0 / 346.8 MB, free: 2.422 MB / 266.7 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.0005648/0.006659, allocations: 0.7242 MB / 347.6 MB, free: 1.648 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.989e-05/0.006689, allocations: 8.031 kB / 347.6 MB, free: 1.641 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000134/0.006822, allocations: 56.69 kB / 347.6 MB, free: 1.586 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002403/0.007063, allocations: 305.1 kB / 347.9 MB, free: 1.254 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.746e-05/0.00708, allocations: 12.31 kB / 347.9 MB, free: 1.242 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.876e-05/0.007099, allocations: 16.38 kB / 347.9 MB, free: 1.227 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001729/0.007272, allocations: 181.3 kB / 348.1 MB, free: 1.031 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.225e-06/0.00728, allocations: 0 / 348.1 MB, free: 1.031 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.483e-05/0.007295, allocations: 11.98 kB / 348.1 MB, free: 1.02 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.301e-06/0.007301, allocations: 0 / 348.1 MB, free: 1.02 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.154e-05/0.007383, allocations: 47.91 kB / 348.2 MB, free: 0.9727 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004117/0.007794, allocations: 483.3 kB / 348.7 MB, free: 476 kB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002017/0.007996, allocations: 119.2 kB / 348.8 MB, free: 344 kB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.208e-05/0.008048, allocations: 43.7 kB / 348.8 MB, free: 296 kB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.431e-05/0.008063, allocations: 0 / 348.8 MB, free: 296 kB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001524/0.008215, allocations: 212.2 kB / 349 MB, free: 48 kB / 266.7 MB Notification: Performance of pre-optimization done (n=21): time 8.51e-07/0.008216, allocations: 4 kB / 349 MB, free: 44 kB / 266.7 MB Notification: Performance of matching and sorting (n=21): time 0.0003527/0.008569, allocations: 251.6 kB / 349.3 MB, free: 15.79 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.031e-05/0.008609, allocations: 89.09 kB / 349.4 MB, free: 15.68 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002601/0.008869, allocations: 378.7 kB / 349.7 MB, free: 15.29 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 1.877e-05/0.008888, allocations: 33.7 kB / 349.8 MB, free: 15.25 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.825e-05/0.008986, allocations: 227.2 kB / 350 MB, free: 15.03 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.626e-05/0.009022, allocations: 51.55 kB / 350 MB, free: 14.98 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.751e-05/0.00908, allocations: 59.34 kB / 350.1 MB, free: 14.91 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001237/0.009203, allocations: 0.5196 MB / 350.6 MB, free: 14.38 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.557e-05/0.009249, allocations: 23.98 kB / 350.6 MB, free: 14.36 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001342/0.009383, allocations: 264.9 kB / 350.9 MB, free: 14.02 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001873/0.00957, allocations: 219.7 kB / 351.1 MB, free: 13.75 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.268e-06/0.009575, allocations: 4 kB / 351.1 MB, free: 13.74 MB / 282.7 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0003172/0.009892, allocations: 221.4 kB / 351.3 MB, free: 13.52 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.312e-05/0.009905, allocations: 7.938 kB / 351.3 MB, free: 13.51 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.612e-06/0.009912, allocations: 4 kB / 351.3 MB, free: 13.51 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.66e-05/0.009928, allocations: 7.938 kB / 351.3 MB, free: 13.5 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00011/0.01004, allocations: 39.92 kB / 351.4 MB, free: 13.46 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.456e-06/0.01005, allocations: 7.984 kB / 351.4 MB, free: 13.45 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001061/0.01015, allocations: 23.89 kB / 351.4 MB, free: 13.43 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.779e-05/0.01017, allocations: 11.98 kB / 351.4 MB, free: 13.42 MB / 282.7 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.000156/0.01033, allocations: 200.4 kB / 351.6 MB, free: 13.21 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.122e-05/0.01038, allocations: 43.75 kB / 351.7 MB, free: 13.17 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003464/0.01072, allocations: 225.7 kB / 351.9 MB, free: 12.95 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.051e-06/0.01073, allocations: 8.031 kB / 351.9 MB, free: 12.94 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.825e-06/0.01073, allocations: 0 / 351.9 MB, free: 12.94 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.068e-06/0.01074, allocations: 0 / 351.9 MB, free: 12.94 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002143/0.01095, allocations: 244.4 kB / 352.1 MB, free: 12.66 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.575e-06/0.01095, allocations: 3.984 kB / 352.1 MB, free: 12.66 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.903e-05/0.011, allocations: 12 kB / 352.1 MB, free: 12.65 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.317e-06/0.01101, allocations: 3.938 kB / 352.1 MB, free: 12.64 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.727e-05/0.01102, allocations: 11.98 kB / 352.2 MB, free: 12.63 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.543e-06/0.01103, allocations: 0 / 352.2 MB, free: 12.63 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.52e-07/0.01103, allocations: 0 / 352.2 MB, free: 12.63 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003207/0.01135, allocations: 270.3 kB / 352.4 MB, free: 12.35 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.616e-05/0.01138, allocations: 27.81 kB / 352.5 MB, free: 12.32 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.872e-05/0.01142, allocations: 11.98 kB / 352.5 MB, free: 12.31 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.969e-05/0.0115, allocations: 15.98 kB / 352.5 MB, free: 12.29 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.3e-05/0.01155, allocations: 23.97 kB / 352.5 MB, free: 12.27 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.971e-05/0.01157, allocations: 4 kB / 352.5 MB, free: 12.27 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0002091/0.01178, allocations: 263.1 kB / 352.8 MB, free: 12.01 MB / 282.7 MB Notification: Performance of sort global known variables: time 6e-08/0.01178, allocations: 0 / 352.8 MB, free: 12.01 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.00032/0.0121, allocations: 79.81 kB / 352.8 MB, free: 11.93 MB / 282.7 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,set.combiTimeTable.nextTimeEvent,reset.combiTimeTable.nextTimeEvent,set.combiTimeTable.nextTimeEventScaled,reset.combiTimeTable.nextTimeEventScaled) * Number of clocked states: 0 () * 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 (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.0009759/0.01308, allocations: 440.1 kB / 353.3 MB, free: 11.64 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.000251/0.01333, allocations: 127.5 kB / 353.4 MB, free: 11.51 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 1.864e-06/0.01333, allocations: 0.6875 kB / 353.4 MB, free: 11.51 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001081/0.01344, allocations: 82.77 kB / 353.5 MB, free: 11.43 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003359/0.01378, allocations: 90.58 kB / 353.6 MB, free: 11.35 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008205/0.0146, allocations: 479 kB / 354 MB, free: 10.85 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.576e-05/0.01466, allocations: 104.2 kB / 354.1 MB, free: 10.73 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 9.594e-05/0.01476, allocations: 42.94 kB / 354.2 MB, free: 10.69 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.432e-05/0.01482, allocations: 36.44 kB / 354.2 MB, free: 10.65 MB / 282.7 MB Notification: Performance of SimCode: time 3.81e-07/0.01482, allocations: 0 / 354.2 MB, free: 10.65 MB / 282.7 MB Notification: Performance of Templates: time 0.007628/0.02245, allocations: 4.653 MB / 358.9 MB, free: 6.066 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f IndustrialControlSystems_IndustrialControlSystems.Logical.Counter.Examples.countZeroCrossing.makefile [Timeout 660] (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=240 -lv LOG_STATS > IndustrialControlSystems_IndustrialControlSystems.Logical.Counter.Examples.countZeroCrossing.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 2.9568473026156425]