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.000759/0.000759, allocations: 76.55 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.0007915/0.0007915, allocations: 181.9 kB / 23.22 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.8705/0.8705, allocations: 177.1 MB / 203.5 MB, free: 5.742 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.03353/0.03353, allocations: 8.603 MB / 268.6 MB, free: 5.129 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.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.763e-06/1.763e-06, allocations: 7.875 kB / 396.3 MB, free: 2.164 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.695e-05/2.871e-05, allocations: 2.281 kB / 396.3 MB, free: 2.16 MB / 362.7 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Logical.Counter.Examples.countUPandDOWN): time 0.00273/0.002759, allocations: 2.331 MB / 398.7 MB, free: 15.82 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.002034/0.004793, allocations: 1.636 MB / 400.3 MB, free: 14.18 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001751/0.004968, allocations: 7.938 kB / 400.3 MB, free: 14.17 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0009112/0.005879, allocations: 0.6349 MB / 400.9 MB, free: 13.53 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0006421/0.006521, allocations: 0.49 MB / 401.4 MB, free: 13.04 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009601/0.007482, allocations: 446.4 kB / 401.9 MB, free: 12.61 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.000535/0.008017, allocations: 0.7323 MB / 402.6 MB, free: 11.88 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001566/0.008173, allocations: 65.91 kB / 402.7 MB, free: 11.8 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003206/0.008494, allocations: 387 kB / 403 MB, free: 11.43 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002445/0.008738, allocations: 299.2 kB / 403.3 MB, free: 11.13 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 4.23e-05/0.008781, allocations: 40 kB / 403.4 MB, free: 11.09 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002613/0.009042, allocations: 199.6 kB / 403.6 MB, free: 10.9 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001449/0.009187, allocations: 207.3 kB / 403.8 MB, free: 10.7 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001293/0.009316, allocations: 155.4 kB / 403.9 MB, free: 10.54 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006143/0.00993, allocations: 0.767 MB / 404.7 MB, free: 9.773 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.127e-06/0.009935, allocations: 0 / 404.7 MB, free: 9.773 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.633e-06/0.009936, allocations: 0 / 404.7 MB, free: 9.773 MB / 378.7 MB Notification: Performance of Transformations before backend: time 7.104e-06/0.009943, allocations: 0 / 404.7 MB, free: 9.773 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: 40 * Number of variables: 40 Notification: Performance of Generate backend data structure: time 0.00115/0.01109, allocations: 1.015 MB / 405.7 MB, free: 8.695 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.378e-05/0.01114, allocations: 12.03 kB / 405.7 MB, free: 8.684 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001039/0.01124, allocations: 76.42 kB / 405.8 MB, free: 8.609 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005837/0.01182, allocations: 488.8 kB / 406.3 MB, free: 8.105 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.133e-05/0.01186, allocations: 20.62 kB / 406.3 MB, free: 8.086 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.756e-05/0.01188, allocations: 16.38 kB / 406.3 MB, free: 8.07 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000348/0.01223, allocations: 260.1 kB / 406.6 MB, free: 7.801 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.063e-05/0.01224, allocations: 3.938 kB / 406.6 MB, free: 7.797 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.932e-05/0.01226, allocations: 7.984 kB / 406.6 MB, free: 7.789 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.614e-06/0.01227, allocations: 4 kB / 406.6 MB, free: 7.785 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001902/0.01246, allocations: 136.5 kB / 406.7 MB, free: 7.652 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007779/0.01324, allocations: 0.6208 MB / 407.3 MB, free: 7 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005052/0.01374, allocations: 266.5 kB / 407.6 MB, free: 6.73 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001227/0.01387, allocations: 96.8 kB / 407.7 MB, free: 6.633 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.968e-05/0.01388, allocations: 0 / 407.7 MB, free: 6.633 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003133/0.0142, allocations: 284.3 kB / 408 MB, free: 6.324 MB / 378.7 MB Notification: Performance of pre-optimization done (n=30): time 1.012e-06/0.0142, allocations: 0 / 408 MB, free: 6.324 MB / 378.7 MB Notification: Performance of matching and sorting (n=30): time 0.0006211/0.01482, allocations: 477 kB / 408.4 MB, free: 5.852 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.733e-05/0.01488, allocations: 89.05 kB / 408.5 MB, free: 5.746 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000971/0.01585, allocations: 0.9379 MB / 409.5 MB, free: 4.797 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.361e-05/0.01587, allocations: 37.7 kB / 409.5 MB, free: 4.754 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001583/0.01603, allocations: 292.6 kB / 409.8 MB, free: 4.465 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.478e-05/0.01609, allocations: 91.92 kB / 409.9 MB, free: 4.375 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.373e-05/0.01616, allocations: 69.69 kB / 409.9 MB, free: 4.301 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 8.834e-05/0.01625, allocations: 318 kB / 410.2 MB, free: 3.984 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001205/0.01637, allocations: 87.91 kB / 410.3 MB, free: 3.898 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000215/0.01658, allocations: 365.3 kB / 410.7 MB, free: 3.453 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003332/0.01692, allocations: 323.8 kB / 411 MB, free: 3.094 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.905e-06/0.01692, allocations: 0 / 411 MB, free: 3.094 MB / 378.7 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.0004273/0.01735, allocations: 388.8 kB / 411.4 MB, free: 2.707 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.814e-05/0.01736, allocations: 6.344 kB / 411.4 MB, free: 2.703 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.433e-06/0.01737, allocations: 4.312 kB / 411.4 MB, free: 2.699 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.08e-05/0.01739, allocations: 15.94 kB / 411.4 MB, free: 2.684 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001059/0.0175, allocations: 51.91 kB / 411.5 MB, free: 2.633 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.496e-06/0.01751, allocations: 8 kB / 411.5 MB, free: 2.625 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001265/0.01763, allocations: 31.88 kB / 411.5 MB, free: 2.594 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.63e-05/0.01765, allocations: 16 kB / 411.5 MB, free: 2.578 MB / 378.7 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.0002467/0.0179, allocations: 274.7 kB / 411.8 MB, free: 2.297 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.54e-05/0.01795, allocations: 75.52 kB / 411.9 MB, free: 2.223 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005018/0.01845, allocations: 417 kB / 412.3 MB, free: 1.805 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.18e-06/0.01846, allocations: 7.938 kB / 412.3 MB, free: 1.797 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.048e-06/0.01846, allocations: 0 / 412.3 MB, free: 1.797 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.06e-06/0.01847, allocations: 3.984 kB / 412.3 MB, free: 1.793 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002902/0.01876, allocations: 365 kB / 412.6 MB, free: 1.406 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.533e-06/0.01876, allocations: 4 kB / 412.6 MB, free: 1.402 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.784e-05/0.01881, allocations: 27.92 kB / 412.7 MB, free: 1.375 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.306e-06/0.01881, allocations: 0 / 412.7 MB, free: 1.375 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.593e-05/0.01883, allocations: 8 kB / 412.7 MB, free: 1.367 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.366e-06/0.01883, allocations: 4 kB / 412.7 MB, free: 1.363 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.114e-06/0.01883, allocations: 3.938 kB / 412.7 MB, free: 1.359 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004086/0.01924, allocations: 424.5 kB / 413.1 MB, free: 0.9258 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.842e-05/0.01931, allocations: 75.39 kB / 413.2 MB, free: 0.8516 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.477e-05/0.01935, allocations: 19.92 kB / 413.2 MB, free: 0.832 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.52e-05/0.01944, allocations: 23.98 kB / 413.2 MB, free: 0.8086 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.11e-05/0.0195, allocations: 27.89 kB / 413.2 MB, free: 0.7812 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.398e-05/0.01952, allocations: 23.98 kB / 413.3 MB, free: 0.7578 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0004984/0.02002, allocations: 0.6709 MB / 413.9 MB, free: 96 kB / 378.7 MB Notification: Performance of sort global known variables: time 2.81e-07/0.02002, allocations: 0 / 413.9 MB, free: 96 kB / 378.7 MB Notification: Performance of remove unused functions: time 0.0003258/0.02035, allocations: 123.9 kB / 414.1 MB, free: 15.97 MB / 394.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: 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.0007981/0.02115, allocations: 0.4956 MB / 414.5 MB, free: 15.66 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0003626/0.02151, allocations: 259.7 kB / 414.8 MB, free: 15.4 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 2.144e-06/0.02151, allocations: 0 / 414.8 MB, free: 15.4 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001543/0.02166, allocations: 136.2 kB / 414.9 MB, free: 15.27 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004162/0.02208, allocations: 144.5 kB / 415.1 MB, free: 15.13 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001333/0.02341, allocations: 1.112 MB / 416.2 MB, free: 13.99 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001901/0.0236, allocations: 305.8 kB / 416.5 MB, free: 13.67 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.597e-05/0.02369, allocations: 56.48 kB / 416.5 MB, free: 13.61 MB / 394.7 MB Notification: Performance of SimCode: time 7.02e-07/0.02369, allocations: 0 / 416.5 MB, free: 13.61 MB / 394.7 MB Notification: Performance of Templates: time 0.00832/0.03201, allocations: 8.895 MB / 425.4 MB, free: 4.746 MB / 394.7 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: 5.252018600702286] Failed to read output from testmodel.py, exit status != 0: 0.03860985487699509 0.047162054 0.035511491 Calling exit ...