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.001022/0.001022, allocations: 92.2 kB / 20.19 MB, free: 4.363 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.001052/0.001052, allocations: 173.3 kB / 23.49 MB, free: 1.062 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.9658/0.9658, allocations: 177.1 MB / 203.8 MB, free: 5.664 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.05101/0.05101, allocations: 8.612 MB / 268.9 MB, free: 5.012 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 7.51e-07/7.51e-07, allocations: 0 / 340.9 MB, free: 8.754 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 8.656e-06/9.407e-06, allocations: 6.25 kB / 340.9 MB, free: 8.746 MB / 266.7 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Logical.Counter.Examples.countZeroCrossing): time 0.001889/0.001898, allocations: 2.193 MB / 343.1 MB, free: 6.535 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001376/0.003274, allocations: 1.469 MB / 344.6 MB, free: 5.059 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001154/0.003389, allocations: 4 kB / 344.6 MB, free: 5.055 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0005515/0.003941, allocations: 274.9 kB / 344.8 MB, free: 4.785 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002966/0.004237, allocations: 270.8 kB / 345.1 MB, free: 4.52 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003564/0.004594, allocations: 299.1 kB / 345.4 MB, free: 4.227 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002396/0.004833, allocations: 410.8 kB / 345.8 MB, free: 3.824 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001052/0.004938, allocations: 49.25 kB / 345.8 MB, free: 3.777 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001939/0.005132, allocations: 227.4 kB / 346.1 MB, free: 3.555 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000115/0.005247, allocations: 131.7 kB / 346.2 MB, free: 3.426 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 2.617e-05/0.005273, allocations: 20 kB / 346.2 MB, free: 3.406 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001354/0.005409, allocations: 143.8 kB / 346.3 MB, free: 3.266 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 6.635e-05/0.005475, allocations: 87.67 kB / 346.4 MB, free: 3.18 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 6.521e-05/0.00554, allocations: 75.77 kB / 346.5 MB, free: 3.105 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000272/0.005812, allocations: 338.7 kB / 346.8 MB, free: 2.773 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.014e-06/0.005814, allocations: 4 kB / 346.8 MB, free: 2.77 MB / 266.7 MB Notification: Performance of FrontEnd: time 4.91e-07/0.005815, allocations: 0 / 346.8 MB, free: 2.77 MB / 266.7 MB Notification: Performance of Transformations before backend: time 4.428e-06/0.005819, allocations: 0 / 346.8 MB, free: 2.77 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.0006062/0.006426, allocations: 0.7281 MB / 347.6 MB, free: 1.992 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.171e-05/0.006457, allocations: 8.031 kB / 347.6 MB, free: 1.984 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001589/0.006616, allocations: 60.69 kB / 347.6 MB, free: 1.926 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000261/0.006877, allocations: 289.1 kB / 347.9 MB, free: 1.609 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.939e-05/0.006897, allocations: 8.375 kB / 347.9 MB, free: 1.602 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.916e-05/0.006916, allocations: 24.36 kB / 347.9 MB, free: 1.578 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001885/0.007104, allocations: 181.3 kB / 348.1 MB, free: 1.383 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.205e-06/0.007113, allocations: 0 / 348.1 MB, free: 1.383 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.459e-05/0.007127, allocations: 8 kB / 348.1 MB, free: 1.375 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.383e-06/0.007135, allocations: 0 / 348.1 MB, free: 1.375 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.485e-05/0.007219, allocations: 47.95 kB / 348.2 MB, free: 1.328 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004332/0.007653, allocations: 479.2 kB / 348.6 MB, free: 0.8242 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002089/0.007861, allocations: 122 kB / 348.8 MB, free: 0.6953 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.294e-05/0.007914, allocations: 39.89 kB / 348.8 MB, free: 0.6523 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.127e-05/0.007926, allocations: 0 / 348.8 MB, free: 0.6523 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001593/0.008085, allocations: 220.1 kB / 349 MB, free: 412 kB / 266.7 MB Notification: Performance of pre-optimization done (n=21): time 8.82e-07/0.008086, allocations: 0 / 349 MB, free: 412 kB / 266.7 MB Notification: Performance of matching and sorting (n=21): time 0.0003151/0.008401, allocations: 251.5 kB / 349.3 MB, free: 156 kB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.42e-05/0.008435, allocations: 92.98 kB / 349.4 MB, free: 44 kB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003099/0.008745, allocations: 386.7 kB / 349.7 MB, free: 15.64 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 2.023e-05/0.008765, allocations: 29.7 kB / 349.8 MB, free: 15.61 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001179/0.008883, allocations: 231.2 kB / 350 MB, free: 15.38 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.984e-05/0.008923, allocations: 51.64 kB / 350 MB, free: 15.33 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.697e-05/0.00898, allocations: 55.36 kB / 350.1 MB, free: 15.27 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001359/0.009116, allocations: 0.5196 MB / 350.6 MB, free: 14.73 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.918e-05/0.009165, allocations: 23.98 kB / 350.6 MB, free: 14.71 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001384/0.009303, allocations: 252.3 kB / 350.9 MB, free: 14.38 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002004/0.009504, allocations: 231.6 kB / 351.1 MB, free: 14.1 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.645e-06/0.009506, allocations: 0 / 351.1 MB, free: 14.1 MB / 282.7 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0002335/0.00974, allocations: 217.2 kB / 351.3 MB, free: 13.88 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.04e-05/0.00975, allocations: 7.938 kB / 351.3 MB, free: 13.87 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.128e-06/0.009755, allocations: 4 kB / 351.3 MB, free: 13.87 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.488e-05/0.009769, allocations: 12.28 kB / 351.3 MB, free: 13.86 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.171e-05/0.009851, allocations: 39.91 kB / 351.4 MB, free: 13.82 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.715e-06/0.009859, allocations: 4 kB / 351.4 MB, free: 13.81 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.675e-05/0.009936, allocations: 27.88 kB / 351.4 MB, free: 13.79 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.239e-05/0.009948, allocations: 12 kB / 351.4 MB, free: 13.77 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.0001435/0.01009, allocations: 200.3 kB / 351.6 MB, free: 13.57 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.13e-05/0.01013, allocations: 47.8 kB / 351.7 MB, free: 13.52 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002683/0.0104, allocations: 221.7 kB / 351.9 MB, free: 13.3 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.074e-06/0.01041, allocations: 4 kB / 351.9 MB, free: 13.3 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.709e-06/0.01041, allocations: 0 / 351.9 MB, free: 13.3 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.297e-06/0.01042, allocations: 3.938 kB / 351.9 MB, free: 13.29 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001774/0.01059, allocations: 244.4 kB / 352.1 MB, free: 13.02 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.252e-06/0.01059, allocations: 0 / 352.1 MB, free: 13.02 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.746e-05/0.01063, allocations: 16 kB / 352.1 MB, free: 13 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.705e-06/0.01064, allocations: 7.938 kB / 352.2 MB, free: 13 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.314e-05/0.01065, allocations: 7.984 kB / 352.2 MB, free: 12.99 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.343e-06/0.01065, allocations: 0 / 352.2 MB, free: 12.99 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.31e-07/0.01065, allocations: 0 / 352.2 MB, free: 12.99 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002474/0.0109, allocations: 275.1 kB / 352.4 MB, free: 12.7 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.779e-05/0.01093, allocations: 31.8 kB / 352.5 MB, free: 12.67 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.174e-05/0.01096, allocations: 8 kB / 352.5 MB, free: 12.66 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.948e-05/0.01102, allocations: 15.98 kB / 352.5 MB, free: 12.64 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.933e-05/0.01107, allocations: 19.97 kB / 352.5 MB, free: 12.62 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.865e-05/0.01108, allocations: 11.98 kB / 352.5 MB, free: 12.61 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0001608/0.01125, allocations: 263.1 kB / 352.8 MB, free: 12.36 MB / 282.7 MB Notification: Performance of sort global known variables: time 7e-08/0.01125, allocations: 0 / 352.8 MB, free: 12.36 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.000232/0.01148, allocations: 83.81 kB / 352.9 MB, free: 12.28 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.001098/0.01258, allocations: 436.5 kB / 353.3 MB, free: 11.99 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0002093/0.01278, allocations: 131.4 kB / 353.4 MB, free: 11.86 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 2.134e-06/0.01279, allocations: 0 / 353.4 MB, free: 11.86 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 8.201e-05/0.01287, allocations: 70.78 kB / 353.5 MB, free: 11.79 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002591/0.01313, allocations: 86.09 kB / 353.6 MB, free: 11.7 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007205/0.01385, allocations: 492.8 kB / 354 MB, free: 11.2 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.196e-05/0.0139, allocations: 100.2 kB / 354.1 MB, free: 11.08 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 8.039e-05/0.01398, allocations: 38.95 kB / 354.2 MB, free: 11.04 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.614e-05/0.01404, allocations: 44.42 kB / 354.2 MB, free: 11 MB / 282.7 MB Notification: Performance of SimCode: time 7.32e-07/0.01404, allocations: 0 / 354.2 MB, free: 11 MB / 282.7 MB Notification: Performance of Templates: time 0.006355/0.02039, allocations: 4.657 MB / 358.9 MB, free: 6.41 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.8407786411698908]