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.0007943/0.0007943, allocations: 72.5 kB / 19.93 MB, free: 4.633 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.0008109/0.0008109, allocations: 177.9 kB / 23.21 MB, free: 1.348 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.8689/0.8689, allocations: 177.1 MB / 203.5 MB, free: 5.746 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.03281/0.03281, allocations: 8.596 MB / 268.5 MB, free: 5.133 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.222e-06/1.222e-06, allocations: 3.938 kB / 396.3 MB, free: 2.195 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.13e-05/2.252e-05, allocations: 6.219 kB / 396.3 MB, free: 2.188 MB / 362.7 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Logical.Counter.Examples.countZeroCrossing): time 0.0024/0.002423, allocations: 2.119 MB / 398.5 MB, free: 60 kB / 362.7 MB Notification: Performance of NFInst.instExpressions: time 0.001909/0.004331, allocations: 1.426 MB / 399.9 MB, free: 14.62 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001229/0.004454, allocations: 3.938 kB / 399.9 MB, free: 14.62 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0005891/0.005043, allocations: 277.7 kB / 400.2 MB, free: 14.35 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003729/0.005416, allocations: 262.8 kB / 400.4 MB, free: 14.09 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004139/0.00583, allocations: 314.8 kB / 400.7 MB, free: 13.79 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003237/0.006154, allocations: 410.8 kB / 401.1 MB, free: 13.39 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001375/0.006291, allocations: 49.3 kB / 401.2 MB, free: 13.34 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000242/0.006533, allocations: 223.4 kB / 401.4 MB, free: 13.12 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001379/0.006671, allocations: 139.6 kB / 401.5 MB, free: 12.98 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 2.773e-05/0.006699, allocations: 20 kB / 401.5 MB, free: 12.96 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001615/0.00686, allocations: 143.8 kB / 401.7 MB, free: 12.82 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 8.115e-05/0.006941, allocations: 91.62 kB / 401.8 MB, free: 12.73 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 6.932e-05/0.007011, allocations: 79.7 kB / 401.8 MB, free: 12.66 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003553/0.007366, allocations: 434.6 kB / 402.3 MB, free: 12.23 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.864e-06/0.007368, allocations: 0 / 402.3 MB, free: 12.23 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.252e-06/0.007369, allocations: 0 / 402.3 MB, free: 12.23 MB / 378.7 MB Notification: Performance of Transformations before backend: time 4.618e-06/0.007374, allocations: 4 kB / 402.3 MB, free: 12.23 MB / 378.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.0007227/0.008096, allocations: 0.6437 MB / 402.9 MB, free: 11.54 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.111e-05/0.008127, allocations: 8.031 kB / 402.9 MB, free: 11.53 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001385/0.008266, allocations: 56.67 kB / 403 MB, free: 11.48 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002919/0.008558, allocations: 265.7 kB / 403.2 MB, free: 11.19 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.805e-05/0.008576, allocations: 12.38 kB / 403.3 MB, free: 11.18 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.796e-05/0.008594, allocations: 12.36 kB / 403.3 MB, free: 11.16 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002623/0.008856, allocations: 225.2 kB / 403.5 MB, free: 10.93 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.588e-06/0.008866, allocations: 0 / 403.5 MB, free: 10.93 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.989e-05/0.008886, allocations: 8 kB / 403.5 MB, free: 10.92 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.54e-06/0.008891, allocations: 4 kB / 403.5 MB, free: 10.91 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001535/0.009045, allocations: 99.92 kB / 403.6 MB, free: 10.82 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000496/0.009541, allocations: 440 kB / 404 MB, free: 10.36 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002866/0.009827, allocations: 162.8 kB / 404.2 MB, free: 10.19 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.213e-05/0.009919, allocations: 60.83 kB / 404.2 MB, free: 10.12 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.627e-05/0.009936, allocations: 4 kB / 404.2 MB, free: 10.12 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002352/0.01017, allocations: 243.5 kB / 404.5 MB, free: 9.855 MB / 378.7 MB Notification: Performance of pre-optimization done (n=21): time 1.163e-06/0.01017, allocations: 0 / 404.5 MB, free: 9.855 MB / 378.7 MB Notification: Performance of matching and sorting (n=21): time 0.0004462/0.01062, allocations: 325.3 kB / 404.8 MB, free: 9.531 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.397e-05/0.01066, allocations: 89.09 kB / 404.9 MB, free: 9.426 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002783/0.01094, allocations: 389.6 kB / 405.3 MB, free: 9.031 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 1.86e-05/0.01096, allocations: 37.7 kB / 405.3 MB, free: 8.988 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.955e-05/0.01105, allocations: 176.5 kB / 405.5 MB, free: 8.812 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.92e-05/0.01109, allocations: 63.52 kB / 405.5 MB, free: 8.75 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.274e-05/0.01114, allocations: 53.69 kB / 405.6 MB, free: 8.691 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 9.166e-05/0.01123, allocations: 346.8 kB / 405.9 MB, free: 8.344 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.212e-05/0.01131, allocations: 55.97 kB / 406 MB, free: 8.289 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001475/0.01146, allocations: 247.2 kB / 406.2 MB, free: 7.98 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002644/0.01173, allocations: 258.9 kB / 406.5 MB, free: 7.688 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.665e-06/0.01173, allocations: 0 / 406.5 MB, free: 7.688 MB / 378.7 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0002924/0.01202, allocations: 281.1 kB / 406.8 MB, free: 7.406 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.384e-05/0.01204, allocations: 4.344 kB / 406.8 MB, free: 7.402 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.911e-06/0.01204, allocations: 8 kB / 406.8 MB, free: 7.395 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.457e-05/0.01206, allocations: 19.8 kB / 406.8 MB, free: 7.375 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.476e-05/0.01213, allocations: 31.92 kB / 406.8 MB, free: 7.344 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.733e-06/0.01214, allocations: 8 kB / 406.8 MB, free: 7.336 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.58e-05/0.01221, allocations: 23.88 kB / 406.8 MB, free: 7.312 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.182e-05/0.01222, allocations: 16 kB / 406.9 MB, free: 7.297 MB / 378.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.0004099/0.01263, allocations: 185.4 kB / 407 MB, free: 7.105 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.177e-05/0.01267, allocations: 35.81 kB / 407.1 MB, free: 7.07 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003409/0.01301, allocations: 289.7 kB / 407.4 MB, free: 6.785 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.955e-06/0.01301, allocations: 4.031 kB / 407.4 MB, free: 6.781 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.707e-06/0.01301, allocations: 0 / 407.4 MB, free: 6.781 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.767e-06/0.01302, allocations: 4 kB / 407.4 MB, free: 6.777 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001664/0.01318, allocations: 233.1 kB / 407.6 MB, free: 6.52 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.142e-06/0.01319, allocations: 0 / 407.6 MB, free: 6.52 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.488e-05/0.01322, allocations: 12.12 kB / 407.6 MB, free: 6.508 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.338e-06/0.01322, allocations: 11.92 kB / 407.6 MB, free: 6.496 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.14e-05/0.01324, allocations: 4 kB / 407.6 MB, free: 6.492 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.252e-06/0.01324, allocations: 0 / 407.6 MB, free: 6.492 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.11e-07/0.01324, allocations: 0 / 407.6 MB, free: 6.492 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002923/0.01353, allocations: 315.6 kB / 407.9 MB, free: 6.168 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.079e-05/0.01356, allocations: 35.75 kB / 408 MB, free: 6.133 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.599e-05/0.01359, allocations: 3.984 kB / 408 MB, free: 6.129 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.38e-05/0.01365, allocations: 23.98 kB / 408 MB, free: 6.105 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.88e-05/0.0137, allocations: 15.97 kB / 408 MB, free: 6.09 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.761e-05/0.01372, allocations: 8 kB / 408 MB, free: 6.082 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001867/0.0139, allocations: 287.2 kB / 408.3 MB, free: 5.805 MB / 378.7 MB Notification: Performance of sort global known variables: time 5e-08/0.0139, allocations: 0 / 408.3 MB, free: 5.805 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0002231/0.01413, allocations: 79.81 kB / 408.4 MB, free: 5.727 MB / 378.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.0007161/0.01484, allocations: 0.4941 MB / 408.9 MB, free: 5.406 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0002708/0.01511, allocations: 183.7 kB / 409.1 MB, free: 5.227 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.483e-06/0.01512, allocations: 0 / 409.1 MB, free: 5.227 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000108/0.01522, allocations: 90.89 kB / 409.1 MB, free: 5.141 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002452/0.01547, allocations: 69.5 kB / 409.2 MB, free: 5.074 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006215/0.01609, allocations: 0.56 MB / 409.8 MB, free: 4.48 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001028/0.01619, allocations: 169.1 kB / 409.9 MB, free: 4.289 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.373e-05/0.01625, allocations: 40.5 kB / 410 MB, free: 4.25 MB / 378.7 MB Notification: Performance of SimCode: time 6.11e-07/0.01625, allocations: 0 / 410 MB, free: 4.25 MB / 378.7 MB Notification: Performance of Templates: time 0.004793/0.02104, allocations: 4.883 MB / 414.9 MB, free: 15.38 MB / 394.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.9895378313958645] Failed to read output from testmodel.py, exit status != 0: 0.0260627968236804 0.034324589 0.025112952 Calling exit ...