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.0009638/0.0009638, allocations: 81.95 kB / 19.87 MB, free: 4.617 MB / 18.57 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.001014/0.001014, allocations: 169.7 kB / 23.27 MB, free: 1.223 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.9963/0.9963, allocations: 177.1 MB / 203.7 MB, free: 5.508 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.04907/0.04907, allocations: 8.606 MB / 268.9 MB, free: 4.766 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.583e-06/1.583e-06, allocations: 0 / 341.3 MB, free: 8.141 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.186e-05/1.345e-05, allocations: 2.312 kB / 341.3 MB, free: 8.137 MB / 266.7 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Logical.Counter.Examples.countZeroCrossing): time 0.002051/0.002064, allocations: 2.185 MB / 343.5 MB, free: 5.938 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001518/0.003582, allocations: 1.453 MB / 345 MB, free: 4.477 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001285/0.003711, allocations: 7.938 kB / 345 MB, free: 4.469 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000532/0.004243, allocations: 282.9 kB / 345.2 MB, free: 4.191 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003456/0.004588, allocations: 258.8 kB / 345.5 MB, free: 3.938 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004318/0.00502, allocations: 303.1 kB / 345.8 MB, free: 3.641 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002612/0.005281, allocations: 410.8 kB / 346.2 MB, free: 3.238 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.629e-05/0.005378, allocations: 45.27 kB / 346.2 MB, free: 3.195 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002212/0.005599, allocations: 227.4 kB / 346.5 MB, free: 2.973 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001136/0.005712, allocations: 135.6 kB / 346.6 MB, free: 2.84 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 2.547e-05/0.005738, allocations: 24 kB / 346.6 MB, free: 2.816 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001476/0.005886, allocations: 143.8 kB / 346.8 MB, free: 2.676 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 6.034e-05/0.005946, allocations: 87.67 kB / 346.8 MB, free: 2.59 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 5.21e-05/0.005998, allocations: 79.7 kB / 346.9 MB, free: 2.512 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002435/0.006241, allocations: 334.8 kB / 347.2 MB, free: 2.184 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.523e-06/0.006243, allocations: 0 / 347.2 MB, free: 2.184 MB / 266.7 MB Notification: Performance of FrontEnd: time 5.51e-07/0.006244, allocations: 4 kB / 347.2 MB, free: 2.18 MB / 266.7 MB Notification: Performance of Transformations before backend: time 3.046e-06/0.006247, allocations: 0 / 347.2 MB, free: 2.18 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.0004937/0.00674, allocations: 0.7242 MB / 348 MB, free: 1.406 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.871e-05/0.006769, allocations: 8.031 kB / 348 MB, free: 1.398 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001104/0.006879, allocations: 60.69 kB / 348 MB, free: 1.34 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001914/0.007071, allocations: 293 kB / 348.3 MB, free: 1.02 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.387e-05/0.007085, allocations: 12.38 kB / 348.3 MB, free: 1.008 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.474e-05/0.007099, allocations: 8.375 kB / 348.3 MB, free: 1 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001413/0.007241, allocations: 177.2 kB / 348.5 MB, free: 0.8086 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.753e-06/0.007247, allocations: 0 / 348.5 MB, free: 0.8086 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.224e-05/0.00726, allocations: 11.98 kB / 348.5 MB, free: 0.7969 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.829e-06/0.007264, allocations: 0 / 348.5 MB, free: 0.7969 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.105e-05/0.007315, allocations: 35.97 kB / 348.6 MB, free: 0.7617 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000345/0.00766, allocations: 427.9 kB / 349 MB, free: 324 kB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001643/0.007825, allocations: 119.2 kB / 349.1 MB, free: 192 kB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.493e-05/0.00786, allocations: 31.67 kB / 349.1 MB, free: 156 kB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.549e-05/0.007875, allocations: 4 kB / 349.1 MB, free: 152 kB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000173/0.008048, allocations: 203.7 kB / 349.3 MB, free: 15.91 MB / 282.7 MB Notification: Performance of pre-optimization done (n=21): time 1.452e-06/0.00805, allocations: 0 / 349.3 MB, free: 15.91 MB / 282.7 MB Notification: Performance of matching and sorting (n=21): time 0.0003145/0.008364, allocations: 236.4 kB / 349.6 MB, free: 15.68 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.177e-05/0.008406, allocations: 85.05 kB / 349.6 MB, free: 15.58 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000254/0.00866, allocations: 374.5 kB / 350 MB, free: 15.19 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 2.582e-05/0.008686, allocations: 33.7 kB / 350 MB, free: 15.15 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001335/0.008819, allocations: 231.1 kB / 350.3 MB, free: 14.92 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.796e-05/0.008867, allocations: 55.61 kB / 350.3 MB, free: 14.87 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.1e-05/0.008928, allocations: 59.31 kB / 350.4 MB, free: 14.8 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001339/0.009062, allocations: 0.5235 MB / 350.9 MB, free: 14.27 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.999e-05/0.009092, allocations: 23.97 kB / 350.9 MB, free: 14.24 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001212/0.009213, allocations: 252.2 kB / 351.2 MB, free: 13.91 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001626/0.009376, allocations: 211.6 kB / 351.4 MB, free: 13.65 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.114e-06/0.009378, allocations: 4 kB / 351.4 MB, free: 13.64 MB / 282.7 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0002/0.009578, allocations: 213.4 kB / 351.6 MB, free: 13.43 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.049e-05/0.009588, allocations: 8 kB / 351.6 MB, free: 13.42 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.42e-06/0.009594, allocations: 4 kB / 351.6 MB, free: 13.42 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.2e-05/0.009606, allocations: 4 kB / 351.6 MB, free: 13.41 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.023e-05/0.009686, allocations: 43.84 kB / 351.7 MB, free: 13.37 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.889e-06/0.009691, allocations: 4 kB / 351.7 MB, free: 13.37 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.134e-05/0.009762, allocations: 27.88 kB / 351.7 MB, free: 13.34 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.126e-05/0.009774, allocations: 8 kB / 351.7 MB, free: 13.33 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.0001327/0.009906, allocations: 204.3 kB / 351.9 MB, free: 13.12 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.576e-05/0.009942, allocations: 39.77 kB / 351.9 MB, free: 13.09 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000224/0.01017, allocations: 209.7 kB / 352.1 MB, free: 12.88 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.265e-06/0.01017, allocations: 0 / 352.1 MB, free: 12.88 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.593e-06/0.01017, allocations: 0 / 352.1 MB, free: 12.88 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.326e-06/0.01017, allocations: 4 kB / 352.1 MB, free: 12.87 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001579/0.01033, allocations: 197 kB / 352.3 MB, free: 12.65 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.303e-06/0.01033, allocations: 0 / 352.3 MB, free: 12.65 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.736e-05/0.01037, allocations: 19.98 kB / 352.4 MB, free: 12.63 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.314e-06/0.01037, allocations: 4 kB / 352.4 MB, free: 12.63 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.136e-05/0.01038, allocations: 11.98 kB / 352.4 MB, free: 12.62 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.034e-06/0.01039, allocations: 3.938 kB / 352.4 MB, free: 12.61 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.41e-07/0.01039, allocations: 0 / 352.4 MB, free: 12.61 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002052/0.01059, allocations: 259.2 kB / 352.6 MB, free: 12.34 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.501e-05/0.01062, allocations: 27.81 kB / 352.7 MB, free: 12.31 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.691e-05/0.01064, allocations: 15.98 kB / 352.7 MB, free: 12.3 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.392e-05/0.0107, allocations: 11.98 kB / 352.7 MB, free: 12.29 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.823e-05/0.01074, allocations: 23.97 kB / 352.7 MB, free: 12.26 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.408e-05/0.01075, allocations: 4 kB / 352.7 MB, free: 12.26 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.000129/0.01088, allocations: 251 kB / 353 MB, free: 12.02 MB / 282.7 MB Notification: Performance of sort global known variables: time 7e-08/0.01088, allocations: 3.938 kB / 353 MB, free: 12.01 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0002236/0.0111, allocations: 83.81 kB / 353 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.0007607/0.01186, allocations: 424.8 kB / 353.5 MB, free: 11.65 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0001614/0.01202, allocations: 124.3 kB / 353.6 MB, free: 11.53 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 1.352e-06/0.01203, allocations: 4.062 kB / 353.6 MB, free: 11.52 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 6.23e-05/0.01209, allocations: 59.59 kB / 353.6 MB, free: 11.46 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002387/0.01233, allocations: 85.36 kB / 353.7 MB, free: 11.38 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006779/0.013, allocations: 482 kB / 354.2 MB, free: 10.88 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.97e-05/0.01306, allocations: 100.2 kB / 354.3 MB, free: 10.76 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 8.209e-05/0.01315, allocations: 43.2 kB / 354.3 MB, free: 10.72 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001363/0.01328, allocations: 134.2 kB / 354.5 MB, free: 10.59 MB / 282.7 MB Notification: Performance of SimCode: time 5.31e-07/0.01328, allocations: 0 / 354.5 MB, free: 10.59 MB / 282.7 MB Notification: Performance of Templates: time 0.006352/0.01964, allocations: 5.089 MB / 359.6 MB, free: 5.578 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.8561968696303666]