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.001852/0.001852, allocations: 85.48 kB / 19.44 MB, free: 340 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.002069/0.002069, allocations: 173.2 kB / 22.76 MB, free: 1.66 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 1.618/1.618, allocations: 177.1 MB / 203.1 MB, free: 5.625 MB / 186.7 MB " [Timeout remaining time 178] 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.07327/0.07327, allocations: 8.618 MB / 268.2 MB, free: 4.957 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.803e-06/1.803e-06, allocations: 0 / 340.1 MB, free: 8.758 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.343e-05/3.524e-05, allocations: 4.562 kB / 340.1 MB, free: 8.754 MB / 266.7 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Logical.Counter.Examples.countZeroCrossing): time 0.003023/0.003059, allocations: 2.178 MB / 342.3 MB, free: 6.559 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.00221/0.005269, allocations: 1.461 MB / 343.8 MB, free: 5.09 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000133/0.005402, allocations: 3.938 kB / 343.8 MB, free: 5.086 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000755/0.006157, allocations: 283 kB / 344.1 MB, free: 4.809 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004871/0.006644, allocations: 254.8 kB / 344.3 MB, free: 4.559 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000634/0.007278, allocations: 307 kB / 344.6 MB, free: 4.258 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003245/0.007603, allocations: 414.7 kB / 345 MB, free: 3.852 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000143/0.007746, allocations: 41.33 kB / 345 MB, free: 3.812 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003107/0.008056, allocations: 231.3 kB / 345.3 MB, free: 3.586 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001854/0.008242, allocations: 135.6 kB / 345.4 MB, free: 3.453 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 4.553e-05/0.008287, allocations: 20 kB / 345.4 MB, free: 3.434 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002387/0.008526, allocations: 139.8 kB / 345.6 MB, free: 3.297 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 9.185e-05/0.008618, allocations: 87.67 kB / 345.6 MB, free: 3.211 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 8.674e-05/0.008704, allocations: 79.7 kB / 345.7 MB, free: 3.133 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004347/0.009139, allocations: 442.5 kB / 346.2 MB, free: 2.699 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.526e-06/0.009143, allocations: 0 / 346.2 MB, free: 2.699 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.283e-06/0.009144, allocations: 0 / 346.2 MB, free: 2.699 MB / 266.7 MB Notification: Performance of Transformations before backend: time 5.891e-06/0.00915, allocations: 0 / 346.2 MB, free: 2.699 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.0008876/0.01004, allocations: 0.7513 MB / 346.9 MB, free: 1.898 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.187e-05/0.01007, allocations: 12.03 kB / 346.9 MB, free: 1.887 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001986/0.01027, allocations: 56.69 kB / 347 MB, free: 1.832 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003512/0.01062, allocations: 280.5 kB / 347.2 MB, free: 1.527 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.949e-05/0.01064, allocations: 12.38 kB / 347.3 MB, free: 1.516 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.599e-05/0.01066, allocations: 16.38 kB / 347.3 MB, free: 1.5 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002911/0.01096, allocations: 209.3 kB / 347.5 MB, free: 1.277 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.029e-05/0.01097, allocations: 0 / 347.5 MB, free: 1.277 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.159e-05/0.01099, allocations: 11.92 kB / 347.5 MB, free: 1.266 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.981e-06/0.01099, allocations: 4 kB / 347.5 MB, free: 1.262 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001983/0.01119, allocations: 79.95 kB / 347.6 MB, free: 1.184 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007178/0.01191, allocations: 0.5266 MB / 348.1 MB, free: 0.6211 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003956/0.01231, allocations: 159.2 kB / 348.3 MB, free: 464 kB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001177/0.01242, allocations: 59.8 kB / 348.3 MB, free: 400 kB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.18e-05/0.01244, allocations: 8 kB / 348.3 MB, free: 392 kB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002856/0.01273, allocations: 240.1 kB / 348.6 MB, free: 116 kB / 266.7 MB Notification: Performance of pre-optimization done (n=21): time 1.112e-06/0.01273, allocations: 0 / 348.6 MB, free: 116 kB / 266.7 MB Notification: Performance of matching and sorting (n=21): time 0.0007705/0.0135, allocations: 307.5 kB / 348.9 MB, free: 15.81 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.351e-05/0.0136, allocations: 97.03 kB / 349 MB, free: 15.7 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006224/0.01422, allocations: 462.7 kB / 349.4 MB, free: 15.22 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 3.767e-05/0.01426, allocations: 33.7 kB / 349.4 MB, free: 15.18 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000233/0.01449, allocations: 239.2 kB / 349.7 MB, free: 14.95 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.441e-05/0.01457, allocations: 63.56 kB / 349.7 MB, free: 14.88 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001304/0.0147, allocations: 71.34 kB / 349.8 MB, free: 14.8 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0003652/0.01507, allocations: 0.543 MB / 350.3 MB, free: 14.25 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001584/0.01523, allocations: 43.97 kB / 350.4 MB, free: 14.21 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003577/0.01558, allocations: 282.9 kB / 350.7 MB, free: 13.85 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004896/0.01607, allocations: 287.6 kB / 350.9 MB, free: 13.51 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.925e-06/0.01608, allocations: 4 kB / 351 MB, free: 13.51 MB / 282.7 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.000548/0.01663, allocations: 257.2 kB / 351.2 MB, free: 13.25 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.121e-05/0.01665, allocations: 8 kB / 351.2 MB, free: 13.24 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.348e-06/0.01666, allocations: 4.344 kB / 351.2 MB, free: 13.24 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.243e-05/0.01668, allocations: 11.94 kB / 351.2 MB, free: 13.23 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001721/0.01686, allocations: 39.91 kB / 351.3 MB, free: 13.19 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.206e-05/0.01687, allocations: 11.88 kB / 351.3 MB, free: 13.18 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001616/0.01703, allocations: 27.88 kB / 351.3 MB, free: 13.15 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.985e-05/0.01705, allocations: 8 kB / 351.3 MB, free: 13.14 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.000278/0.01733, allocations: 220.3 kB / 351.5 MB, free: 12.92 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.682e-05/0.0174, allocations: 43.77 kB / 351.6 MB, free: 12.88 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006001/0.018, allocations: 263.1 kB / 351.8 MB, free: 12.61 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.041e-06/0.01801, allocations: 8.031 kB / 351.8 MB, free: 12.61 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.417e-06/0.01801, allocations: 0 / 351.8 MB, free: 12.61 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.439e-06/0.01802, allocations: 0 / 351.8 MB, free: 12.61 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004218/0.01844, allocations: 280.5 kB / 352.1 MB, free: 12.3 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.844e-06/0.01844, allocations: 0 / 352.1 MB, free: 12.3 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.272e-05/0.01852, allocations: 15.94 kB / 352.1 MB, free: 12.28 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.134e-06/0.01853, allocations: 11.94 kB / 352.1 MB, free: 12.27 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.201e-05/0.01855, allocations: 7.984 kB / 352.1 MB, free: 12.26 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.258e-06/0.01856, allocations: 4 kB / 352.1 MB, free: 12.26 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.252e-06/0.01856, allocations: 0 / 352.1 MB, free: 12.26 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005908/0.01915, allocations: 305 kB / 352.4 MB, free: 11.94 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.819e-05/0.01922, allocations: 35.7 kB / 352.5 MB, free: 11.9 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.278e-05/0.01927, allocations: 11.98 kB / 352.5 MB, free: 11.89 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001301/0.0194, allocations: 15.92 kB / 352.5 MB, free: 11.88 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.498e-05/0.01948, allocations: 23.97 kB / 352.5 MB, free: 11.85 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.449e-05/0.0195, allocations: 8 kB / 352.5 MB, free: 11.84 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0003547/0.01985, allocations: 303.1 kB / 352.8 MB, free: 11.55 MB / 282.7 MB Notification: Performance of sort global known variables: time 7e-08/0.01985, allocations: 0 / 352.8 MB, free: 11.55 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0003789/0.02023, allocations: 83.81 kB / 352.9 MB, free: 11.47 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.00312/0.02335, allocations: 484.9 kB / 353.4 MB, free: 11.18 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0005004/0.02385, allocations: 188 kB / 353.6 MB, free: 10.99 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 2.324e-06/0.02386, allocations: 0 / 353.6 MB, free: 10.99 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002168/0.02407, allocations: 102.8 kB / 353.7 MB, free: 10.89 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004938/0.02457, allocations: 83.02 kB / 353.8 MB, free: 10.81 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00104/0.02561, allocations: 0.5067 MB / 354.3 MB, free: 10.27 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001985/0.02581, allocations: 176.9 kB / 354.4 MB, free: 10.08 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0001384/0.02594, allocations: 51.19 kB / 354.5 MB, free: 10.03 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.482e-05/0.02604, allocations: 32.48 kB / 354.5 MB, free: 10 MB / 282.7 MB Notification: Performance of SimCode: time 6.91e-07/0.02604, allocations: 0 / 354.5 MB, free: 10 MB / 282.7 MB Notification: Performance of Templates: time 0.01119/0.03723, allocations: 4.645 MB / 359.2 MB, free: 5.426 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: 4.674259398016147]