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.0006229/0.0006229, allocations: 81.05 kB / 9.981 MB, free: 0.707 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0009272/0.00155, allocations: 440 kB / 10.41 MB, free: 284 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.0007056/0.0007056, allocations: 157.1 kB / 11.33 MB, free: 2.844 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0009504/0.001656, allocations: 475.6 kB / 11.79 MB, free: 2.375 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 0.9446/0.9446, allocations: 177.2 MB / 189.7 MB, free: 5.23 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.07883/1.023, allocations: 53.67 MB / 243.4 MB, free: 15.49 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.04701/0.04701, allocations: 8.612 MB / 252.8 MB, free: 6.625 MB / 250.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.00807/0.05508, allocations: 3.141 MB / 255.9 MB, free: 3.473 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.342e-06/1.342e-06, allocations: 0 / 257.2 MB, free: 2.199 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.911e-05/2.045e-05, allocations: 9.969 kB / 257.2 MB, free: 2.191 MB / 250.7 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Logical.Counter.Examples.countZeroCrossing): time 0.003068/0.003088, allocations: 2.251 MB / 259.4 MB, free: 15.92 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.00203/0.005118, allocations: 1.5 MB / 260.9 MB, free: 14.41 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001237/0.005242, allocations: 3.938 kB / 260.9 MB, free: 14.41 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0005468/0.005789, allocations: 263 kB / 261.2 MB, free: 14.15 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004693/0.006258, allocations: 278.7 kB / 261.5 MB, free: 13.88 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005927/0.006851, allocations: 303 kB / 261.8 MB, free: 13.58 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003134/0.007164, allocations: 394.8 kB / 262.1 MB, free: 13.2 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000105/0.007269, allocations: 51.27 kB / 262.2 MB, free: 13.14 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003138/0.007583, allocations: 298.4 kB / 262.5 MB, free: 12.84 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001372/0.00772, allocations: 139.6 kB / 262.6 MB, free: 12.71 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 2.859e-05/0.007749, allocations: 20 kB / 262.6 MB, free: 12.69 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00019/0.007939, allocations: 147.8 kB / 262.8 MB, free: 12.54 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 7.166e-05/0.00801, allocations: 63.73 kB / 262.8 MB, free: 12.48 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 5.805e-05/0.008068, allocations: 59.81 kB / 262.9 MB, free: 12.42 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002886/0.008357, allocations: 306.9 kB / 263.2 MB, free: 12.12 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 9.016e-06/0.008366, allocations: 0 / 263.2 MB, free: 12.12 MB / 266.7 MB Notification: Performance of FrontEnd: time 7.02e-07/0.008367, allocations: 0 / 263.2 MB, free: 12.12 MB / 266.7 MB Notification: Performance of Transformations before backend: time 6.913e-06/0.008374, allocations: 0 / 263.2 MB, free: 12.12 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.0008938/0.009267, allocations: 0.6655 MB / 263.9 MB, free: 11.42 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.172e-05/0.009299, allocations: 8.031 kB / 263.9 MB, free: 11.41 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001846/0.009484, allocations: 122 kB / 264 MB, free: 11.27 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002849/0.009769, allocations: 250.4 kB / 264.2 MB, free: 11 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.552e-05/0.009784, allocations: 12.38 kB / 264.3 MB, free: 10.99 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.167e-05/0.009806, allocations: 20.36 kB / 264.3 MB, free: 10.97 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001824/0.009988, allocations: 172.1 kB / 264.4 MB, free: 10.79 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.991e-06/0.009994, allocations: 0 / 264.4 MB, free: 10.79 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.407e-05/0.01001, allocations: 11.98 kB / 264.5 MB, free: 10.77 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.4e-06/0.01001, allocations: 4 kB / 264.5 MB, free: 10.77 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.019e-05/0.01007, allocations: 32.5 kB / 264.5 MB, free: 10.74 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003771/0.01045, allocations: 297.4 kB / 264.8 MB, free: 10.43 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001837/0.01063, allocations: 141.2 kB / 264.9 MB, free: 10.28 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.68e-05/0.01067, allocations: 24.84 kB / 264.9 MB, free: 10.25 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.262e-05/0.01068, allocations: 4 kB / 264.9 MB, free: 10.25 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001761/0.01086, allocations: 198.2 kB / 265.1 MB, free: 10.03 MB / 266.7 MB Notification: Performance of pre-optimization done (n=21): time 2.014e-06/0.01086, allocations: 3.984 kB / 265.1 MB, free: 10.02 MB / 266.7 MB Notification: Performance of matching and sorting (n=21): time 0.0002033/0.01107, allocations: 148.3 kB / 265.3 MB, free: 9.871 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.332e-05/0.0111, allocations: 59.41 kB / 265.3 MB, free: 9.801 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001979/0.0113, allocations: 321 kB / 265.7 MB, free: 9.477 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.031e-05/0.01132, allocations: 37.7 kB / 265.7 MB, free: 9.434 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.914e-05/0.01138, allocations: 133.4 kB / 265.8 MB, free: 9.297 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.801e-05/0.01141, allocations: 55.61 kB / 265.9 MB, free: 9.242 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.061e-05/0.01146, allocations: 49.67 kB / 265.9 MB, free: 9.188 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 8.788e-05/0.01155, allocations: 354.7 kB / 266.3 MB, free: 8.832 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.243e-05/0.01158, allocations: 22.81 kB / 266.3 MB, free: 8.809 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.457e-05/0.01168, allocations: 202.8 kB / 266.5 MB, free: 8.543 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001457/0.01183, allocations: 183.3 kB / 266.7 MB, free: 8.32 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.809e-06/0.01183, allocations: 8 kB / 266.7 MB, free: 8.312 MB / 266.7 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.000178/0.01201, allocations: 166.9 kB / 266.8 MB, free: 8.141 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.4e-05/0.01202, allocations: 8.344 kB / 266.9 MB, free: 8.133 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.21e-06/0.01203, allocations: 4 kB / 266.9 MB, free: 8.129 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.121e-05/0.01204, allocations: 8 kB / 266.9 MB, free: 8.121 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.883e-05/0.01214, allocations: 39.92 kB / 266.9 MB, free: 8.082 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.149e-06/0.01214, allocations: 4 kB / 266.9 MB, free: 8.078 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.481e-05/0.01222, allocations: 27.88 kB / 266.9 MB, free: 8.051 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.201e-05/0.01223, allocations: 11.94 kB / 266.9 MB, free: 8.039 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.0001355/0.01236, allocations: 160.2 kB / 267.1 MB, free: 7.871 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.929e-05/0.01239, allocations: 23.97 kB / 267.1 MB, free: 7.848 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001699/0.01256, allocations: 137.7 kB / 267.3 MB, free: 7.711 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.904e-06/0.01257, allocations: 4 kB / 267.3 MB, free: 7.707 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.355e-06/0.01257, allocations: 3.938 kB / 267.3 MB, free: 7.703 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.697e-06/0.01257, allocations: 128 / 267.3 MB, free: 7.703 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001385/0.01271, allocations: 157.7 kB / 267.4 MB, free: 7.531 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.282e-06/0.01271, allocations: 0 / 267.4 MB, free: 7.531 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.48e-05/0.01276, allocations: 19.98 kB / 267.4 MB, free: 7.512 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.741e-05/0.01278, allocations: 31.73 kB / 267.5 MB, free: 7.48 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.054e-06/0.01279, allocations: 4 kB / 267.5 MB, free: 7.477 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.07e-05/0.0128, allocations: 11.92 kB / 267.5 MB, free: 7.465 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.234e-06/0.0128, allocations: 4 kB / 267.5 MB, free: 7.461 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.002e-06/0.0128, allocations: 0 / 267.5 MB, free: 7.461 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001421/0.01294, allocations: 157.8 kB / 267.6 MB, free: 7.289 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.987e-05/0.01297, allocations: 11.98 kB / 267.7 MB, free: 7.277 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.768e-05/0.01303, allocations: 15.92 kB / 267.7 MB, free: 7.262 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.698e-05/0.01307, allocations: 15.97 kB / 267.7 MB, free: 7.246 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.634e-05/0.01308, allocations: 16 kB / 267.7 MB, free: 7.23 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001053/0.01319, allocations: 131.5 kB / 267.8 MB, free: 7.098 MB / 266.7 MB Notification: Performance of sort global known variables: time 6e-08/0.01319, allocations: 0 / 267.8 MB, free: 7.098 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002178/0.01341, allocations: 79.83 kB / 267.9 MB, free: 7.02 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.001247/0.01465, allocations: 0.6 MB / 268.5 MB, free: 6.605 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0001704/0.01482, allocations: 116.6 kB / 268.6 MB, free: 6.488 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 9.969e-06/0.01483, allocations: 8 kB / 268.6 MB, free: 6.48 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 8.024e-05/0.01491, allocations: 59.95 kB / 268.7 MB, free: 6.422 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003344/0.01525, allocations: 462.6 kB / 269.1 MB, free: 5.902 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009345/0.01618, allocations: 0.4957 MB / 269.6 MB, free: 5.375 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.048e-05/0.01623, allocations: 104.3 kB / 269.7 MB, free: 5.254 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 8.152e-05/0.01631, allocations: 38.94 kB / 269.8 MB, free: 5.219 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000128/0.01644, allocations: 107.3 kB / 269.9 MB, free: 5.113 MB / 266.7 MB Notification: Performance of SimCode: time 4.8e-07/0.01644, allocations: 0 / 269.9 MB, free: 5.113 MB / 266.7 MB Notification: Performance of Templates: time 0.006845/0.02329, allocations: 5.169 MB / 275.1 MB, free: 8 kB / 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: 2.7026566583663225]