Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IndustrialControlSystems_dev_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.000743/0.000743, allocations: 72.19 kB / 9.903 MB, free: 0.7852 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001003/0.001746, 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.001078/0.001078, allocations: 161.1 kB / 11.23 MB, free: 2.941 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001334/0.002412, 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.004/1.004, allocations: 177.2 MB / 189.6 MB, free: 5.32 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.08794/1.092, allocations: 53.66 MB / 243.2 MB, free: 15.59 MB / 250.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 2.0.1-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 2.0.1-master/package.mo): time 0.04594/0.04594, allocations: 9.785 MB / 253.8 MB, free: 5.602 MB / 250.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.00598/0.05192, allocations: 3.48 MB / 257.2 MB, free: 2.113 MB / 250.7 MB " [Timeout remaining time 180] Using package IndustrialControlSystems with version 2.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 2.0.1-master/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_dev_IndustrialControlSystems.Logical.Counter.Examples.countZeroCrossing") translateModel(IndustrialControlSystems.Logical.Counter.Examples.countZeroCrossing,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="IndustrialControlSystems_dev_IndustrialControlSystems.Logical.Counter.Examples.countZeroCrossing") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.623e-06/1.623e-06, allocations: 0 / 258.5 MB, free: 0.8477 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.876e-05/2.038e-05, allocations: 2.312 kB / 258.5 MB, free: 0.8438 MB / 250.7 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Logical.Counter.Examples.countZeroCrossing): time 0.002677/0.002697, allocations: 2.239 MB / 260.7 MB, free: 14.59 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.002038/0.004736, allocations: 1.503 MB / 262.2 MB, free: 13.08 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001611/0.004897, allocations: 0 / 262.2 MB, free: 13.08 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0005393/0.005436, allocations: 259 kB / 262.5 MB, free: 12.82 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004615/0.005898, allocations: 274.8 kB / 262.8 MB, free: 12.55 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006563/0.006554, allocations: 311 kB / 263.1 MB, free: 12.25 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004711/0.007025, allocations: 398.8 kB / 263.5 MB, free: 11.86 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001291/0.007154, allocations: 47.28 kB / 263.5 MB, free: 11.81 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004163/0.00757, allocations: 298.5 kB / 263.8 MB, free: 11.52 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001985/0.007769, allocations: 135.6 kB / 263.9 MB, free: 11.38 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 3.032e-05/0.007799, allocations: 20 kB / 263.9 MB, free: 11.36 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002653/0.008065, allocations: 151.8 kB / 264.1 MB, free: 11.21 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 9.238e-05/0.008157, allocations: 63.73 kB / 264.2 MB, free: 11.15 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 7.07e-05/0.008228, allocations: 59.81 kB / 264.2 MB, free: 11.09 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003952/0.008623, allocations: 302.9 kB / 264.5 MB, free: 10.8 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.695e-05/0.00864, allocations: 0 / 264.5 MB, free: 10.8 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.904e-06/0.008642, allocations: 0 / 264.5 MB, free: 10.8 MB / 266.7 MB Notification: Performance of Transformations before backend: time 1.813e-05/0.00866, allocations: 0 / 264.5 MB, free: 10.8 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.0009419/0.009602, allocations: 0.6655 MB / 265.2 MB, free: 10.09 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.298e-05/0.009635, allocations: 8.031 kB / 265.2 MB, free: 10.09 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001915/0.009826, allocations: 122 kB / 265.3 MB, free: 9.949 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002847/0.01011, allocations: 254.4 kB / 265.5 MB, free: 9.672 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.799e-05/0.01013, allocations: 8.375 kB / 265.6 MB, free: 9.664 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.865e-05/0.01015, allocations: 20.36 kB / 265.6 MB, free: 9.645 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001895/0.01034, allocations: 176.1 kB / 265.7 MB, free: 9.453 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.504e-06/0.01034, allocations: 0 / 265.7 MB, free: 9.453 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.345e-05/0.01036, allocations: 8 kB / 265.8 MB, free: 9.445 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.642e-06/0.01036, allocations: 4 kB / 265.8 MB, free: 9.441 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.619e-05/0.01042, allocations: 24.52 kB / 265.8 MB, free: 9.418 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004628/0.01088, allocations: 305.3 kB / 266.1 MB, free: 9.102 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002119/0.0111, allocations: 137.2 kB / 266.2 MB, free: 8.957 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.881e-05/0.01113, allocations: 32.75 kB / 266.2 MB, free: 8.922 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.501e-05/0.01115, allocations: 4 kB / 266.3 MB, free: 8.918 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002025/0.01135, allocations: 195.1 kB / 266.4 MB, free: 8.695 MB / 266.7 MB Notification: Performance of pre-optimization done (n=21): time 1.322e-06/0.01135, allocations: 3.938 kB / 266.4 MB, free: 8.691 MB / 266.7 MB Notification: Performance of matching and sorting (n=21): time 0.0002205/0.01157, allocations: 150.6 kB / 266.6 MB, free: 8.543 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.995e-05/0.01161, allocations: 59.39 kB / 266.7 MB, free: 8.473 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002222/0.01184, allocations: 321 kB / 267 MB, free: 8.148 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.47e-05/0.01186, allocations: 33.7 kB / 267 MB, free: 8.109 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.954e-05/0.01193, allocations: 133.4 kB / 267.1 MB, free: 7.969 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.58e-05/0.01198, allocations: 55.61 kB / 267.2 MB, free: 7.914 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.164e-05/0.01204, allocations: 53.66 kB / 267.2 MB, free: 7.855 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 9.295e-05/0.01213, allocations: 350.7 kB / 267.6 MB, free: 7.504 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.43e-05/0.01216, allocations: 26.75 kB / 267.6 MB, free: 7.477 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001021/0.01227, allocations: 202.8 kB / 267.8 MB, free: 7.211 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001545/0.01242, allocations: 187.3 kB / 268 MB, free: 6.984 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.885e-06/0.01242, allocations: 0 / 268 MB, free: 6.984 MB / 266.7 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0001757/0.0126, allocations: 174.9 kB / 268.2 MB, free: 6.805 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.444e-05/0.01261, allocations: 11.16 kB / 268.2 MB, free: 6.797 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.552e-06/0.01262, allocations: 4 kB / 268.2 MB, free: 6.793 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.223e-05/0.01263, allocations: 8 kB / 268.2 MB, free: 6.785 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.439e-05/0.01273, allocations: 35.92 kB / 268.2 MB, free: 6.75 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.184e-06/0.01273, allocations: 11.92 kB / 268.2 MB, free: 6.738 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.312e-05/0.01281, allocations: 23.89 kB / 268.2 MB, free: 6.715 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.45e-05/0.01282, allocations: 15.94 kB / 268.3 MB, free: 6.699 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 ) \"Sampled count-up input CU\" type: Boolean counter.CDd:DISCRETE(fixed = true ) \"Sampled count-down input CD\" type: Boolean counter.Sd:DISCRETE(fixed = true ) \"Sampled set signal S\" 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.0001496/0.01297, allocations: 160.6 kB / 268.4 MB, free: 6.531 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.779e-05/0.013, allocations: 23.97 kB / 268.4 MB, free: 6.508 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001674/0.01317, allocations: 129 kB / 268.6 MB, free: 6.379 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.635e-06/0.01317, allocations: 7.938 kB / 268.6 MB, free: 6.371 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.835e-06/0.01317, allocations: 3.938 kB / 268.6 MB, free: 6.367 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.687e-06/0.01318, allocations: 0 / 268.6 MB, free: 6.367 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001532/0.01333, allocations: 161.7 kB / 268.7 MB, free: 6.191 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.214e-06/0.01333, allocations: 0 / 268.7 MB, free: 6.191 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001046/0.01344, allocations: 23.92 kB / 268.8 MB, free: 6.168 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.65e-05/0.01347, allocations: 31.75 kB / 268.8 MB, free: 6.137 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.206e-06/0.01348, allocations: 4 kB / 268.8 MB, free: 6.133 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.517e-05/0.01349, allocations: 3.984 kB / 268.8 MB, free: 6.129 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.447e-06/0.01349, allocations: 4 kB / 268.8 MB, free: 6.125 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.834e-06/0.0135, allocations: 0 / 268.8 MB, free: 6.125 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001785/0.01367, allocations: 159.5 kB / 269 MB, free: 5.949 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.033e-05/0.01371, allocations: 8 kB / 269 MB, free: 5.941 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.42e-05/0.01377, allocations: 19.92 kB / 269 MB, free: 5.922 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.775e-05/0.01382, allocations: 15.97 kB / 269 MB, free: 5.906 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.951e-05/0.01384, allocations: 15.98 kB / 269 MB, free: 5.891 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001099/0.01395, allocations: 127.6 kB / 269.1 MB, free: 5.762 MB / 266.7 MB Notification: Performance of sort global known variables: time 8e-08/0.01395, allocations: 0 / 269.1 MB, free: 5.762 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002306/0.01418, allocations: 83.81 kB / 269.2 MB, free: 5.68 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.00131/0.01549, allocations: 0.599 MB / 269.8 MB, free: 5.324 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.000179/0.01567, allocations: 108.7 kB / 269.9 MB, free: 5.215 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.102e-05/0.01568, allocations: 11.94 kB / 269.9 MB, free: 5.203 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 6.167e-05/0.01574, allocations: 52.77 kB / 270 MB, free: 5.148 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000232/0.01597, allocations: 117.5 kB / 270.1 MB, free: 5.043 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009807/0.01695, allocations: 491.7 kB / 270.6 MB, free: 4.531 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.192e-05/0.01701, allocations: 104.3 kB / 270.7 MB, free: 4.41 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 8.575e-05/0.0171, allocations: 38.94 kB / 270.7 MB, free: 4.375 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001279/0.01723, allocations: 115.3 kB / 270.8 MB, free: 4.262 MB / 266.7 MB Notification: Performance of SimCode: time 1.092e-06/0.01723, allocations: 0 / 270.8 MB, free: 4.262 MB / 266.7 MB Notification: Performance of Templates: time 0.1124/0.1297, allocations: 5.102 MB / 275.9 MB, free: 11.68 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f IndustrialControlSystems_dev_IndustrialControlSystems.Logical.Counter.Examples.countZeroCrossing.makefile [Timeout 660] (rm -f IndustrialControlSystems_dev_IndustrialControlSystems.Logical.Counter.Examples.countZeroCrossing.pipe ; mkfifo IndustrialControlSystems_dev_IndustrialControlSystems.Logical.Counter.Examples.countZeroCrossing.pipe ; head -c 1048576 < IndustrialControlSystems_dev_IndustrialControlSystems.Logical.Counter.Examples.countZeroCrossing.pipe >> ../files/IndustrialControlSystems_dev_IndustrialControlSystems.Logical.Counter.Examples.countZeroCrossing.sim & ./IndustrialControlSystems_dev_IndustrialControlSystems.Logical.Counter.Examples.countZeroCrossing -abortSlowSimulation -alarm=240 -lv LOG_STATS > IndustrialControlSystems_dev_IndustrialControlSystems.Logical.Counter.Examples.countZeroCrossing.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 2.845444872044027]