Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IndustrialControlSystems_IndustrialControlSystems.Logical.Counter.Examples.countUPandDOWN.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.001405/0.001405, allocations: 80.3 kB / 19.18 MB, free: 2.516 MB / 14.72 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.001622/0.001622, allocations: 161.4 kB / 22.45 MB, free: 5.375 MB / 14.72 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.536/1.536, allocations: 177.2 MB / 202.8 MB, free: 9.184 MB / 190.1 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.06356/0.06356, allocations: 8.601 MB / 267.8 MB, free: 8.582 MB / 254.1 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.countUPandDOWN,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems.Logical.Counter.Examples.countUPandDOWN") translateModel(IndustrialControlSystems.Logical.Counter.Examples.countUPandDOWN,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems.Logical.Counter.Examples.countUPandDOWN") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.973e-06/1.973e-06, allocations: 0 / 395.6 MB, free: 6.699 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.593e-05/2.79e-05, allocations: 6.281 kB / 395.6 MB, free: 6.691 MB / 318.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Logical.Counter.Examples.countUPandDOWN): time 0.004247/0.004275, allocations: 2.325 MB / 397.9 MB, free: 4.352 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.003369/0.007644, allocations: 1.648 MB / 399.5 MB, free: 2.695 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002069/0.007851, allocations: 7.938 kB / 399.6 MB, free: 2.688 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001588/0.009439, allocations: 0.6388 MB / 400.2 MB, free: 2.047 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001068/0.01051, allocations: 490.2 kB / 400.7 MB, free: 1.566 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00108/0.01159, allocations: 453.7 kB / 401.1 MB, free: 1.129 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008506/0.01244, allocations: 0.7245 MB / 401.8 MB, free: 412 kB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001814/0.01262, allocations: 61.92 kB / 401.9 MB, free: 352 kB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005365/0.01316, allocations: 391 kB / 402.3 MB, free: 15.96 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003853/0.01354, allocations: 303.1 kB / 402.6 MB, free: 15.66 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 7.389e-05/0.01362, allocations: 36 kB / 402.6 MB, free: 15.63 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003953/0.01401, allocations: 199.6 kB / 402.8 MB, free: 15.43 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002373/0.01425, allocations: 215.3 kB / 403 MB, free: 15.22 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002078/0.01446, allocations: 155.5 kB / 403.2 MB, free: 15.07 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009231/0.01538, allocations: 0.7631 MB / 403.9 MB, free: 14.3 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.045e-06/0.01538, allocations: 4 kB / 403.9 MB, free: 14.3 MB / 334.1 MB Notification: Performance of FrontEnd: time 7.31e-07/0.01538, allocations: 0 / 403.9 MB, free: 14.3 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.414e-06/0.01539, allocations: 0 / 403.9 MB, free: 14.3 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 40 * Number of variables: 40 Notification: Performance of Generate backend data structure: time 0.001653/0.01704, allocations: 1.017 MB / 405 MB, free: 13.22 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.776e-05/0.01708, allocations: 15.97 kB / 405 MB, free: 13.21 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001386/0.01722, allocations: 72.47 kB / 405 MB, free: 13.14 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007902/0.01801, allocations: 484.8 kB / 405.5 MB, free: 12.63 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.839e-05/0.01804, allocations: 12.7 kB / 405.5 MB, free: 12.62 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.308e-05/0.01808, allocations: 20.31 kB / 405.5 MB, free: 12.6 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004963/0.01858, allocations: 264 kB / 405.8 MB, free: 12.33 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.42e-05/0.01859, allocations: 3.938 kB / 405.8 MB, free: 12.32 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.863e-05/0.01862, allocations: 8 kB / 405.8 MB, free: 12.32 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.353e-06/0.01863, allocations: 4 kB / 405.8 MB, free: 12.31 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003166/0.01894, allocations: 128.5 kB / 405.9 MB, free: 12.19 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001116/0.02006, allocations: 0.6247 MB / 406.6 MB, free: 11.53 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008183/0.02088, allocations: 262.6 kB / 406.8 MB, free: 11.27 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002341/0.02111, allocations: 92.8 kB / 406.9 MB, free: 11.17 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.333e-05/0.02114, allocations: 4 kB / 406.9 MB, free: 11.17 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004925/0.02163, allocations: 284.8 kB / 407.2 MB, free: 10.86 MB / 334.1 MB Notification: Performance of pre-optimization done (n=30): time 2.444e-06/0.02163, allocations: 0 / 407.2 MB, free: 10.86 MB / 334.1 MB Notification: Performance of matching and sorting (n=30): time 0.001049/0.02268, allocations: 477 kB / 407.7 MB, free: 10.39 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.705e-05/0.02277, allocations: 85.09 kB / 407.7 MB, free: 10.29 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001237/0.024, allocations: 0.934 MB / 408.7 MB, free: 9.34 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.443e-05/0.02405, allocations: 37.7 kB / 408.7 MB, free: 9.297 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002761/0.02432, allocations: 305.1 kB / 409 MB, free: 8.996 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.579e-05/0.02441, allocations: 79.38 kB / 409.1 MB, free: 8.918 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000109/0.02452, allocations: 69.69 kB / 409.2 MB, free: 8.844 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001464/0.02466, allocations: 321.9 kB / 409.5 MB, free: 8.523 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002198/0.02488, allocations: 91.66 kB / 409.6 MB, free: 8.434 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005073/0.02539, allocations: 376.5 kB / 409.9 MB, free: 7.977 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006182/0.02601, allocations: 315.8 kB / 410.2 MB, free: 7.625 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.876e-06/0.02601, allocations: 4 kB / 410.2 MB, free: 7.621 MB / 334.1 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.0007685/0.02678, allocations: 377.1 kB / 410.6 MB, free: 7.246 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.697e-05/0.0268, allocations: 11.94 kB / 410.6 MB, free: 7.234 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.996e-06/0.02681, allocations: 4 kB / 410.6 MB, free: 7.23 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.45e-05/0.02683, allocations: 8.25 kB / 410.6 MB, free: 7.223 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002065/0.02704, allocations: 63.91 kB / 410.7 MB, free: 7.16 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.064e-05/0.02705, allocations: 4 kB / 410.7 MB, free: 7.156 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002366/0.02729, allocations: 35.83 kB / 410.7 MB, free: 7.121 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.09e-05/0.02732, allocations: 16 kB / 410.8 MB, free: 7.105 MB / 334.1 MB Warning: Assuming fixed start value for the following 5 variables: 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: 14 * Number of states: 0 () * Number of discrete variables: 35 ($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,$PRE.reset.combiTimeTable.nextTimeEvent,$whenCondition5,$PRE.set.combiTimeTable.nextTimeEvent,$whenCondition4,$PRE.countDOWN.combiTimeTable.nextTimeEvent,$whenCondition3,$PRE.countUP.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,countDOWN.combiTimeTable.nextTimeEventScaled,$PRE.countDOWN.combiTimeTable.nextTimeEventScaled,countDOWN.combiTimeTable.nextTimeEvent,countDOWN.y,countUP.combiTimeTable.nextTimeEventScaled,$PRE.countUP.combiTimeTable.nextTimeEventScaled,countUP.combiTimeTable.nextTimeEvent,countUP.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (43): * Single equations (assignments): 43 * 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.0003912/0.02771, allocations: 278.5 kB / 411 MB, free: 6.82 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001086/0.02782, allocations: 71.53 kB / 411.1 MB, free: 6.75 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008434/0.02866, allocations: 412.7 kB / 411.5 MB, free: 6.34 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.588e-06/0.02867, allocations: 11.92 kB / 411.5 MB, free: 6.328 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.208e-06/0.02867, allocations: 0 / 411.5 MB, free: 6.328 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.552e-06/0.02868, allocations: 4 kB / 411.5 MB, free: 6.324 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004716/0.02915, allocations: 365 kB / 411.9 MB, free: 5.938 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.697e-06/0.02915, allocations: 7.938 kB / 411.9 MB, free: 5.93 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.841e-05/0.02924, allocations: 23.92 kB / 411.9 MB, free: 5.906 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.909e-06/0.02925, allocations: 8 kB / 411.9 MB, free: 5.898 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.713e-05/0.02928, allocations: 11.98 kB / 411.9 MB, free: 5.887 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.804e-06/0.02928, allocations: 0 / 411.9 MB, free: 5.887 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.206e-06/0.02928, allocations: 3.938 kB / 411.9 MB, free: 5.883 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008066/0.03009, allocations: 424.5 kB / 412.3 MB, free: 5.449 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001182/0.03021, allocations: 71.45 kB / 412.4 MB, free: 5.379 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.255e-05/0.03029, allocations: 16 kB / 412.4 MB, free: 5.363 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001859/0.03047, allocations: 19.97 kB / 412.4 MB, free: 5.344 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.959e-05/0.03056, allocations: 35.83 kB / 412.5 MB, free: 5.309 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.383e-05/0.0306, allocations: 16 kB / 412.5 MB, free: 5.293 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0008903/0.03149, allocations: 0.6786 MB / 413.2 MB, free: 4.617 MB / 334.1 MB Notification: Performance of sort global known variables: time 8e-08/0.03149, allocations: 0 / 413.2 MB, free: 4.617 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0004636/0.03195, allocations: 115.9 kB / 413.3 MB, free: 4.504 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 22 ($whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,counter.Q,counter.Value,counter.CUd,counter.CDd,counter.Sd,countUP.y,countUP.combiTimeTable.nextTimeEvent,countUP.combiTimeTable.nextTimeEventScaled,countDOWN.y,countDOWN.combiTimeTable.nextTimeEvent,countDOWN.combiTimeTable.nextTimeEventScaled,set.y,set.combiTimeTable.nextTimeEvent,set.combiTimeTable.nextTimeEventScaled,reset.y,reset.combiTimeTable.nextTimeEvent,reset.combiTimeTable.nextTimeEventScaled) * Number of discrete states: 12 (counter.Value,counter.Sd,counter.CUd,counter.CDd,countUP.combiTimeTable.nextTimeEvent,countDOWN.combiTimeTable.nextTimeEvent,set.combiTimeTable.nextTimeEvent,reset.combiTimeTable.nextTimeEvent,countUP.combiTimeTable.nextTimeEventScaled,countDOWN.combiTimeTable.nextTimeEventScaled,set.combiTimeTable.nextTimeEventScaled,reset.combiTimeTable.nextTimeEventScaled) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (33): * Single equations (assignments): 21 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 12 * 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.001867/0.03382, allocations: 0.4933 MB / 413.8 MB, free: 4.188 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0006725/0.03449, allocations: 263.6 kB / 414 MB, free: 3.93 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 4.478e-06/0.0345, allocations: 4 kB / 414 MB, free: 3.926 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002839/0.03478, allocations: 136.2 kB / 414.2 MB, free: 3.793 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007421/0.03552, allocations: 162 kB / 414.3 MB, free: 3.648 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001757/0.03728, allocations: 1.063 MB / 415.4 MB, free: 2.555 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003621/0.03764, allocations: 305.8 kB / 415.7 MB, free: 2.234 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0002346/0.03788, allocations: 92.5 kB / 415.8 MB, free: 2.145 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000133/0.03801, allocations: 52.48 kB / 415.8 MB, free: 2.09 MB / 334.1 MB Notification: Performance of SimCode: time 4.71e-07/0.03801, allocations: 3.938 kB / 415.8 MB, free: 2.086 MB / 334.1 MB Notification: Performance of Templates: time 0.01728/0.05528, allocations: 8.197 MB / 424 MB, free: 9.988 MB / 350.1 MB " [Timeout remaining time 660] make -j1 -f IndustrialControlSystems_IndustrialControlSystems.Logical.Counter.Examples.countUPandDOWN.makefile [Timeout 660] (rm -f IndustrialControlSystems_IndustrialControlSystems.Logical.Counter.Examples.countUPandDOWN.pipe ; mkfifo IndustrialControlSystems_IndustrialControlSystems.Logical.Counter.Examples.countUPandDOWN.pipe ; head -c 1048576 < IndustrialControlSystems_IndustrialControlSystems.Logical.Counter.Examples.countUPandDOWN.pipe >> ../files/IndustrialControlSystems_IndustrialControlSystems.Logical.Counter.Examples.countUPandDOWN.sim & ./IndustrialControlSystems_IndustrialControlSystems.Logical.Counter.Examples.countUPandDOWN -abortSlowSimulation -alarm=480 -lv LOG_STATS > IndustrialControlSystems_IndustrialControlSystems.Logical.Counter.Examples.countUPandDOWN.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 4.67530657723546] Failed to read output from testmodel.py, exit status != 0: 0.06382821500301361 0.07811385400000001 0.059738688000000005 Calling exit ...