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.001406/0.001406, allocations: 88.72 kB / 19.44 MB, free: 356 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.001734/0.001734, allocations: 157.7 kB / 22.75 MB, free: 1.684 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.474/1.474, allocations: 177.1 MB / 203.1 MB, free: 5.59 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.06809/0.06809, allocations: 8.612 MB / 268.2 MB, free: 4.93 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.372e-06/1.372e-06, allocations: 0 / 340.1 MB, free: 8.75 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.183e-05/2.32e-05, allocations: 6.25 kB / 340.1 MB, free: 8.742 MB / 266.7 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Logical.Counter.Examples.countZeroCrossing): time 0.002825/0.002849, allocations: 2.126 MB / 342.3 MB, free: 6.602 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.002262/0.00511, allocations: 1.434 MB / 343.7 MB, free: 5.16 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001968/0.005307, allocations: 7.938 kB / 343.7 MB, free: 5.152 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0007671/0.006074, allocations: 279 kB / 344 MB, free: 4.879 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0005823/0.006657, allocations: 254.9 kB / 344.2 MB, free: 4.629 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007111/0.007368, allocations: 315 kB / 344.5 MB, free: 4.32 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004164/0.007784, allocations: 398.8 kB / 344.9 MB, free: 3.93 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001442/0.007928, allocations: 57.23 kB / 345 MB, free: 3.875 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003895/0.008318, allocations: 223.4 kB / 345.2 MB, free: 3.656 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002017/0.008519, allocations: 139.6 kB / 345.3 MB, free: 3.52 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 4.39e-05/0.008563, allocations: 24 kB / 345.4 MB, free: 3.496 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002324/0.008796, allocations: 139.8 kB / 345.5 MB, free: 3.359 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 9.042e-05/0.008886, allocations: 79.69 kB / 345.6 MB, free: 3.281 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001135/0.009, allocations: 83.69 kB / 345.7 MB, free: 3.199 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005002/0.0095, allocations: 442.6 kB / 346.1 MB, free: 2.766 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.406e-06/0.009503, allocations: 0 / 346.1 MB, free: 2.766 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.203e-06/0.009504, allocations: 0 / 346.1 MB, free: 2.766 MB / 266.7 MB Notification: Performance of Transformations before backend: time 9.027e-06/0.009513, allocations: 0 / 346.1 MB, free: 2.766 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.001019/0.01053, allocations: 0.6283 MB / 346.7 MB, free: 2.094 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.178e-05/0.01056, allocations: 8.031 kB / 346.7 MB, free: 2.086 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002242/0.01079, allocations: 60.69 kB / 346.8 MB, free: 2.027 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003778/0.01117, allocations: 277.7 kB / 347 MB, free: 1.73 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.137e-05/0.01119, allocations: 16.36 kB / 347.1 MB, free: 1.715 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.44e-05/0.01121, allocations: 8.375 kB / 347.1 MB, free: 1.707 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003325/0.01154, allocations: 229.2 kB / 347.3 MB, free: 1.465 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.099e-05/0.01156, allocations: 0 / 347.3 MB, free: 1.465 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.367e-05/0.01158, allocations: 7.984 kB / 347.3 MB, free: 1.457 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.919e-06/0.01158, allocations: 4 kB / 347.3 MB, free: 1.453 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002352/0.01182, allocations: 99.88 kB / 347.4 MB, free: 1.355 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006641/0.01248, allocations: 440 kB / 347.8 MB, free: 0.8945 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004453/0.01293, allocations: 170.8 kB / 348 MB, free: 0.7188 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001488/0.01308, allocations: 60.83 kB / 348.1 MB, free: 0.6562 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.996e-05/0.0131, allocations: 4 kB / 348.1 MB, free: 0.6523 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003146/0.01341, allocations: 232.9 kB / 348.3 MB, free: 404 kB / 266.7 MB Notification: Performance of pre-optimization done (n=21): time 1.152e-06/0.01341, allocations: 0 / 348.3 MB, free: 404 kB / 266.7 MB Notification: Performance of matching and sorting (n=21): time 0.0007143/0.01413, allocations: 347.5 kB / 348.6 MB, free: 52 kB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.272e-05/0.01421, allocations: 85.11 kB / 348.7 MB, free: 15.95 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005614/0.01477, allocations: 397.6 kB / 349.1 MB, free: 15.55 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 4.135e-05/0.01481, allocations: 33.7 kB / 349.1 MB, free: 15.51 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001895/0.015, allocations: 168.5 kB / 349.3 MB, free: 15.34 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.176e-05/0.01509, allocations: 59.55 kB / 349.4 MB, free: 15.28 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001051/0.0152, allocations: 49.7 kB / 349.4 MB, free: 15.23 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0002317/0.01543, allocations: 346.8 kB / 349.7 MB, free: 14.88 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001812/0.01561, allocations: 59.97 kB / 349.8 MB, free: 14.82 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003582/0.01597, allocations: 256.2 kB / 350.1 MB, free: 14.5 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005404/0.01651, allocations: 254.9 kB / 350.3 MB, free: 14.21 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.983e-06/0.01652, allocations: 4 kB / 350.3 MB, free: 14.21 MB / 282.7 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0006636/0.01718, allocations: 293.1 kB / 350.6 MB, free: 13.92 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.632e-05/0.0172, allocations: 4 kB / 350.6 MB, free: 13.91 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.676e-06/0.01721, allocations: 4 kB / 350.6 MB, free: 13.91 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.508e-05/0.01723, allocations: 7.938 kB / 350.6 MB, free: 13.9 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001618/0.01739, allocations: 31.92 kB / 350.6 MB, free: 13.87 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.775e-05/0.01741, allocations: 11.98 kB / 350.7 MB, free: 13.86 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001881/0.0176, allocations: 28.16 kB / 350.7 MB, free: 13.83 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.925e-05/0.01763, allocations: 20 kB / 350.7 MB, free: 13.81 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.0006394/0.01827, allocations: 189.6 kB / 350.9 MB, free: 13.62 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.995e-05/0.01837, allocations: 43.75 kB / 350.9 MB, free: 13.57 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007005/0.01907, allocations: 287.1 kB / 351.2 MB, free: 13.29 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.146e-06/0.01907, allocations: 0 / 351.2 MB, free: 13.29 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.439e-06/0.01908, allocations: 4 kB / 351.2 MB, free: 13.29 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.482e-06/0.01908, allocations: 3.984 kB / 351.2 MB, free: 13.29 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003375/0.01942, allocations: 225.2 kB / 351.4 MB, free: 13.04 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.555e-06/0.01942, allocations: 0 / 351.4 MB, free: 13.04 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.726e-05/0.01951, allocations: 15.98 kB / 351.5 MB, free: 13.02 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.293e-06/0.01952, allocations: 7.875 kB / 351.5 MB, free: 13.01 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.385e-05/0.01954, allocations: 7.984 kB / 351.5 MB, free: 13 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.963e-06/0.01954, allocations: 0 / 351.5 MB, free: 13 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.82e-07/0.01954, allocations: 4 kB / 351.5 MB, free: 13 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006746/0.02022, allocations: 317.7 kB / 351.8 MB, free: 12.67 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.029e-05/0.02028, allocations: 31.7 kB / 351.8 MB, free: 12.64 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.805e-05/0.02034, allocations: 11.98 kB / 351.8 MB, free: 12.63 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001575/0.02049, allocations: 15.98 kB / 351.8 MB, free: 12.61 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.561e-05/0.02057, allocations: 15.97 kB / 351.9 MB, free: 12.6 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.78e-05/0.0206, allocations: 8 kB / 351.9 MB, free: 12.59 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0003928/0.02099, allocations: 283.2 kB / 352.1 MB, free: 12.32 MB / 282.7 MB Notification: Performance of sort global known variables: time 1e-07/0.02099, allocations: 4 kB / 352.1 MB, free: 12.31 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0004121/0.0214, allocations: 87.81 kB / 352.2 MB, free: 12.23 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.002155/0.02356, allocations: 487.3 kB / 352.7 MB, free: 11.93 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0005374/0.02409, allocations: 180.2 kB / 352.9 MB, free: 11.76 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 2.204e-06/0.0241, allocations: 4.25 kB / 352.9 MB, free: 11.75 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002301/0.02433, allocations: 95.06 kB / 353 MB, free: 11.66 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005083/0.02484, allocations: 91.78 kB / 353.1 MB, free: 11.58 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001126/0.02596, allocations: 0.5356 MB / 353.6 MB, free: 11.01 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002239/0.02618, allocations: 176.8 kB / 353.8 MB, free: 10.82 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0001488/0.02633, allocations: 47.2 kB / 353.8 MB, free: 10.78 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.688e-05/0.02643, allocations: 36.48 kB / 353.9 MB, free: 10.74 MB / 282.7 MB Notification: Performance of SimCode: time 7.81e-07/0.02643, allocations: 0 / 353.9 MB, free: 10.74 MB / 282.7 MB Notification: Performance of Templates: time 0.01146/0.03789, allocations: 4.636 MB / 358.5 MB, free: 6.18 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=480 -lv LOG_STATS > IndustrialControlSystems_IndustrialControlSystems.Logical.Counter.Examples.countZeroCrossing.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 4.470394950010814]