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.0008072/0.0008072, allocations: 72.19 kB / 9.903 MB, free: 0.7852 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0009991/0.001806, allocations: 435.8 kB / 10.33 MB, free: 368 kB / 10.45 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.001088/0.001088, allocations: 161.1 kB / 11.23 MB, free: 2.941 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001442/0.00253, allocations: 463.6 kB / 11.68 MB, free: 2.484 MB / 13.93 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.062/1.062, allocations: 177.2 MB / 189.6 MB, free: 5.316 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.1131/1.175, allocations: 53.67 MB / 243.2 MB, free: 15.58 MB / 250.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.0382/0.0382, allocations: 8.612 MB / 252.6 MB, free: 6.723 MB / 250.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.007975/0.04617, allocations: 3.118 MB / 255.7 MB, free: 3.594 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.943e-06/1.943e-06, allocations: 0 / 257 MB, free: 2.324 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.977e-05/3.171e-05, allocations: 5.266 kB / 257 MB, free: 2.32 MB / 250.7 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Logical.Counter.Examples.countZeroCrossing): time 0.004358/0.004389, allocations: 2.232 MB / 259.2 MB, free: 72 kB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.003277/0.007667, allocations: 1.511 MB / 260.7 MB, free: 14.55 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003175/0.007984, allocations: 0 / 260.7 MB, free: 14.55 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0009297/0.008914, allocations: 267 kB / 261 MB, free: 14.29 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0008352/0.009749, allocations: 266.8 kB / 261.2 MB, free: 14.03 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001116/0.01087, allocations: 299 kB / 261.5 MB, free: 13.73 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0006342/0.0115, allocations: 394.9 kB / 261.9 MB, free: 13.35 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004149/0.01191, allocations: 51.28 kB / 262 MB, free: 13.3 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007086/0.01262, allocations: 302.4 kB / 262.3 MB, free: 13 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003088/0.01293, allocations: 135.6 kB / 262.4 MB, free: 12.86 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 4.759e-05/0.01298, allocations: 24 kB / 262.4 MB, free: 12.84 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004041/0.01338, allocations: 151.8 kB / 262.6 MB, free: 12.69 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001314/0.01351, allocations: 67.72 kB / 262.6 MB, free: 12.62 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 9.599e-05/0.01361, allocations: 59.81 kB / 262.7 MB, free: 12.57 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005972/0.01421, allocations: 294.9 kB / 263 MB, free: 12.28 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.261e-05/0.01423, allocations: 0 / 263 MB, free: 12.28 MB / 266.7 MB Notification: Performance of FrontEnd: time 2.285e-06/0.01423, allocations: 0 / 263 MB, free: 12.28 MB / 266.7 MB Notification: Performance of Transformations before backend: time 2.95e-05/0.01426, allocations: 0 / 263 MB, free: 12.28 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.00122/0.01548, allocations: 0.6616 MB / 263.6 MB, free: 11.58 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.508e-05/0.01553, allocations: 12.02 kB / 263.6 MB, free: 11.57 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002507/0.01578, allocations: 118 kB / 263.8 MB, free: 11.43 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004427/0.01622, allocations: 254.4 kB / 264 MB, free: 11.16 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.765e-05/0.01625, allocations: 16.38 kB / 264 MB, free: 11.14 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.942e-05/0.01627, allocations: 16.38 kB / 264 MB, free: 11.12 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002273/0.0165, allocations: 180.1 kB / 264.2 MB, free: 10.93 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.016e-05/0.01651, allocations: 3.984 kB / 264.2 MB, free: 10.93 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.502e-05/0.01652, allocations: 8 kB / 264.2 MB, free: 10.92 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.172e-06/0.01653, allocations: 0 / 264.2 MB, free: 10.92 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.552e-05/0.01659, allocations: 32.5 kB / 264.3 MB, free: 10.89 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004821/0.01707, allocations: 305.4 kB / 264.6 MB, free: 10.57 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002359/0.01731, allocations: 137.2 kB / 264.7 MB, free: 10.43 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.871e-05/0.01735, allocations: 28.84 kB / 264.7 MB, free: 10.39 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.735e-05/0.01737, allocations: 4 kB / 264.7 MB, free: 10.39 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002291/0.0176, allocations: 195.2 kB / 264.9 MB, free: 10.17 MB / 266.7 MB Notification: Performance of pre-optimization done (n=21): time 2.534e-06/0.0176, allocations: 0 / 264.9 MB, free: 10.17 MB / 266.7 MB Notification: Performance of matching and sorting (n=21): time 0.0002301/0.01783, allocations: 147.3 kB / 265.1 MB, free: 10.02 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.955e-05/0.01788, allocations: 55.41 kB / 265.1 MB, free: 9.953 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002369/0.01811, allocations: 325 kB / 265.4 MB, free: 9.625 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.241e-05/0.01814, allocations: 33.7 kB / 265.5 MB, free: 9.586 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.629e-05/0.0182, allocations: 129.4 kB / 265.6 MB, free: 9.453 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.186e-05/0.01825, allocations: 55.61 kB / 265.6 MB, free: 9.398 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.219e-05/0.01831, allocations: 53.66 kB / 265.7 MB, free: 9.34 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.000108/0.01842, allocations: 354.7 kB / 266 MB, free: 8.984 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.712e-05/0.01845, allocations: 26.75 kB / 266.1 MB, free: 8.957 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001125/0.01857, allocations: 202.8 kB / 266.3 MB, free: 8.691 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001741/0.01874, allocations: 187.3 kB / 266.5 MB, free: 8.465 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.156e-06/0.01874, allocations: 0 / 266.5 MB, free: 8.465 MB / 266.7 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0001976/0.01894, allocations: 175.1 kB / 266.6 MB, free: 8.285 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.606e-05/0.01896, allocations: 4 kB / 266.6 MB, free: 8.281 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.307e-06/0.01897, allocations: 4 kB / 266.6 MB, free: 8.277 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.41e-05/0.01898, allocations: 4 kB / 266.6 MB, free: 8.273 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001238/0.0191, allocations: 44.03 kB / 266.7 MB, free: 8.23 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.295e-06/0.01911, allocations: 11.94 kB / 266.7 MB, free: 8.219 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.008e-05/0.01919, allocations: 27.88 kB / 266.7 MB, free: 8.191 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.415e-05/0.01921, allocations: 11.94 kB / 266.7 MB, free: 8.18 MB / 266.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.0002053/0.01941, allocations: 152.5 kB / 266.9 MB, free: 8.023 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.839e-05/0.01946, allocations: 23.97 kB / 266.9 MB, free: 8 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002415/0.0197, allocations: 135.4 kB / 267 MB, free: 7.867 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.692e-06/0.01971, allocations: 4 kB / 267 MB, free: 7.863 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.537e-06/0.01971, allocations: 3.938 kB / 267 MB, free: 7.859 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.262e-06/0.01972, allocations: 7.984 kB / 267 MB, free: 7.852 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001889/0.01991, allocations: 149.7 kB / 267.2 MB, free: 7.688 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.888e-06/0.01991, allocations: 3.984 kB / 267.2 MB, free: 7.684 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.349e-05/0.01997, allocations: 19.94 kB / 267.2 MB, free: 7.664 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.321e-05/0.02001, allocations: 35.73 kB / 267.3 MB, free: 7.629 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.903e-06/0.02001, allocations: 4.031 kB / 267.3 MB, free: 7.625 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.205e-05/0.02003, allocations: 4 kB / 267.3 MB, free: 7.621 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.335e-06/0.02003, allocations: 0 / 267.3 MB, free: 7.621 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.433e-06/0.02003, allocations: 0 / 267.3 MB, free: 7.621 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000171/0.0202, allocations: 162.5 kB / 267.4 MB, free: 7.441 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.187e-05/0.02023, allocations: 12 kB / 267.4 MB, free: 7.43 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.205e-05/0.02029, allocations: 23.92 kB / 267.5 MB, free: 7.406 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.764e-05/0.02034, allocations: 15.97 kB / 267.5 MB, free: 7.391 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.955e-05/0.02036, allocations: 11.92 kB / 267.5 MB, free: 7.379 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001106/0.02047, allocations: 131.6 kB / 267.6 MB, free: 7.246 MB / 266.7 MB Notification: Performance of sort global known variables: time 5e-08/0.02047, allocations: 0 / 267.6 MB, free: 7.246 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002525/0.02072, allocations: 83.81 kB / 267.7 MB, free: 7.164 MB / 266.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.001513/0.02224, allocations: 0.5975 MB / 268.3 MB, free: 6.762 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0002/0.02244, allocations: 108.7 kB / 268.4 MB, free: 6.652 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.37e-05/0.02245, allocations: 4 kB / 268.4 MB, free: 6.648 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 6.635e-05/0.02252, allocations: 56.75 kB / 268.5 MB, free: 6.59 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002653/0.02278, allocations: 115.5 kB / 268.6 MB, free: 6.48 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001128/0.02391, allocations: 0.4957 MB / 269.1 MB, free: 5.953 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.316e-05/0.02398, allocations: 92.31 kB / 269.2 MB, free: 5.844 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.000109/0.02409, allocations: 42.94 kB / 269.2 MB, free: 5.805 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001455/0.02424, allocations: 115.3 kB / 269.3 MB, free: 5.691 MB / 266.7 MB Notification: Performance of SimCode: time 1.242e-06/0.02424, allocations: 4 kB / 269.3 MB, free: 5.688 MB / 266.7 MB Notification: Performance of Templates: time 0.008291/0.03253, allocations: 5.106 MB / 274.4 MB, free: 0.6406 MB / 266.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: 3.0891103548929095]