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/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package IndustrialControlSystems with version 1.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(IndustrialControlSystems.Logical.Counter.Examples.countUPandDOWN,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems.Logical.Counter.Examples.countUPandDOWN") translateModel(IndustrialControlSystems.Logical.Counter.Examples.countUPandDOWN,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems.Logical.Counter.Examples.countUPandDOWN") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001196/0.001196, allocations: 182.1 kB / 15.98 MB, free: 5.77 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.05663/0.05663, allocations: 10.76 MB / 27.49 MB, free: 1.863 MB / 18.57 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.328/1.328, allocations: 205.1 MB / 235.7 MB, free: 11.75 MB / 202.8 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001179/0.001179, allocations: 108.5 kB / 285.5 MB, free: 12.86 MB / 234.8 MB Notification: Performance of FrontEnd - loaded program: time 0.001117/0.001117, allocations: 51.92 kB / 345.3 MB, free: 0.9805 MB / 282.8 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2204/0.2215, allocations: 49.01 MB / 394.3 MB, free: 35.58 MB / 298.8 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Logical.Counter.Examples.countUPandDOWN): time 0.003093/0.2247, allocations: 2.442 MB / 396.7 MB, free: 33.12 MB / 298.8 MB Notification: Performance of NFInst.instExpressions: time 0.002121/0.2268, allocations: 1.474 MB / 398.2 MB, free: 31.64 MB / 298.8 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001575/0.227, allocations: 7.938 kB / 398.2 MB, free: 31.63 MB / 298.8 MB Notification: Performance of NFTyping.typeComponents: time 0.001099/0.2281, allocations: 0.5831 MB / 398.8 MB, free: 31.05 MB / 298.8 MB Notification: Performance of NFTyping.typeBindings: time 0.0005567/0.2287, allocations: 383.9 kB / 399.2 MB, free: 30.68 MB / 298.8 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009846/0.2297, allocations: 483.7 kB / 399.7 MB, free: 30.21 MB / 298.8 MB Notification: Performance of NFFlatten.flatten: time 0.0005149/0.2302, allocations: 0.6857 MB / 400.3 MB, free: 29.52 MB / 298.8 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001736/0.2304, allocations: 92.97 kB / 400.4 MB, free: 29.42 MB / 298.8 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002425/0.2306, allocations: 258.9 kB / 400.7 MB, free: 29.17 MB / 298.8 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003041/0.2309, allocations: 290.9 kB / 401 MB, free: 28.88 MB / 298.8 MB Notification: Performance of NFPackage.collectConstants: time 4.922e-05/0.231, allocations: 16 kB / 401 MB, free: 28.87 MB / 298.8 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002422/0.2312, allocations: 143.8 kB / 401.1 MB, free: 28.73 MB / 298.8 MB Notification: Performance of NFScalarize.scalarize: time 0.0001647/0.2314, allocations: 179.3 kB / 401.3 MB, free: 28.55 MB / 298.8 MB Notification: Performance of NFVerifyModel.verify: time 0.0001775/0.2316, allocations: 250.4 kB / 401.5 MB, free: 28.3 MB / 298.8 MB Notification: Performance of NFConvertDAE.convert: time 0.0004704/0.2321, allocations: 0.6988 MB / 402.2 MB, free: 27.61 MB / 298.8 MB Notification: Performance of FrontEnd - DAE generated: time 4.889e-06/0.2321, allocations: 0 / 402.2 MB, free: 27.61 MB / 298.8 MB Notification: Performance of FrontEnd: time 1.002e-06/0.2321, allocations: 0 / 402.2 MB, free: 27.61 MB / 298.8 MB Notification: Performance of Transformations before backend: time 6.342e-06/0.2321, allocations: 0 / 402.2 MB, free: 27.61 MB / 298.8 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.001203/0.2333, allocations: 1.046 MB / 403.3 MB, free: 26.48 MB / 298.8 MB Notification: Performance of prepare preOptimizeDAE: time 4.069e-05/0.2334, allocations: 16.03 kB / 403.3 MB, free: 26.46 MB / 298.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.716e-05/0.2335, allocations: 68.09 kB / 403.4 MB, free: 26.4 MB / 298.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005466/0.234, allocations: 0.5199 MB / 403.9 MB, free: 25.84 MB / 298.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.115e-05/0.2341, allocations: 16.7 kB / 403.9 MB, free: 25.82 MB / 298.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.854e-05/0.2341, allocations: 24.11 kB / 403.9 MB, free: 25.8 MB / 298.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003668/0.2345, allocations: 252.3 kB / 404.2 MB, free: 25.54 MB / 298.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.888e-06/0.2345, allocations: 4 kB / 404.2 MB, free: 25.53 MB / 298.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.317e-05/0.2345, allocations: 11.98 kB / 404.2 MB, free: 25.52 MB / 298.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.581e-06/0.2345, allocations: 4 kB / 404.2 MB, free: 25.52 MB / 298.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002301/0.2348, allocations: 111.9 kB / 404.3 MB, free: 25.41 MB / 298.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008352/0.2356, allocations: 0.7381 MB / 405 MB, free: 24.62 MB / 298.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006273/0.2362, allocations: 278.5 kB / 405.3 MB, free: 24.34 MB / 298.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001657/0.2364, allocations: 105.2 kB / 405.4 MB, free: 24.23 MB / 298.8 MB Notification: Performance of preOpt evalFunc (simulation): time 3.059e-05/0.2365, allocations: 3.938 kB / 405.4 MB, free: 24.23 MB / 298.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003259/0.2368, allocations: 225.6 kB / 405.6 MB, free: 23.99 MB / 298.8 MB Notification: Performance of pre-optimization done (n=30): time 1.613e-06/0.2368, allocations: 0 / 405.6 MB, free: 23.99 MB / 298.8 MB Notification: Performance of matching and sorting (n=30): time 0.0007614/0.2376, allocations: 453.1 kB / 406.1 MB, free: 23.54 MB / 298.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.455e-05/0.2377, allocations: 195.9 kB / 406.3 MB, free: 23.3 MB / 298.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007525/0.2384, allocations: 0.8947 MB / 407.2 MB, free: 22.4 MB / 298.8 MB Notification: Performance of collectPreVariables (initialization): time 2.358e-05/0.2384, allocations: 33.7 kB / 407.2 MB, free: 22.36 MB / 298.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001507/0.2386, allocations: 288.5 kB / 407.5 MB, free: 22.08 MB / 298.8 MB Notification: Performance of collectInitialBindings (initialization): time 4.959e-05/0.2387, allocations: 75.03 kB / 407.6 MB, free: 22 MB / 298.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.963e-05/0.2387, allocations: 69.69 kB / 407.6 MB, free: 21.93 MB / 298.8 MB Notification: Performance of setup shared object (initialization): time 9.094e-05/0.2388, allocations: 318 kB / 407.9 MB, free: 21.61 MB / 298.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001626/0.239, allocations: 87.91 kB / 408 MB, free: 21.53 MB / 298.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002406/0.2393, allocations: 259.6 kB / 408.3 MB, free: 21.2 MB / 298.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000397/0.2397, allocations: 299.7 kB / 408.6 MB, free: 20.87 MB / 298.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.595e-06/0.2397, allocations: 4 kB / 408.6 MB, free: 20.86 MB / 298.8 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.0005085/0.2402, allocations: 376.4 kB / 408.9 MB, free: 20.49 MB / 298.8 MB Notification: Performance of prepare postOptimizeDAE: time 1.443e-05/0.2402, allocations: 4 kB / 408.9 MB, free: 20.48 MB / 298.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.013e-06/0.2402, allocations: 4 kB / 408.9 MB, free: 20.48 MB / 298.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.734e-05/0.2403, allocations: 4.312 kB / 409 MB, free: 20.48 MB / 298.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001551/0.2404, allocations: 59.91 kB / 409 MB, free: 20.42 MB / 298.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.034e-05/0.2404, allocations: 11.94 kB / 409 MB, free: 20.41 MB / 298.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000188/0.2406, allocations: 39.73 kB / 409.1 MB, free: 20.37 MB / 298.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.798e-05/0.2407, allocations: 12 kB / 409.1 MB, free: 20.36 MB / 298.8 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.0002349/0.2409, allocations: 262.9 kB / 409.3 MB, free: 20.09 MB / 298.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.506e-05/0.241, allocations: 75.08 kB / 409.4 MB, free: 20.02 MB / 298.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.636e-05/0.2411, allocations: 70.48 kB / 409.5 MB, free: 19.94 MB / 298.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.739e-06/0.2411, allocations: 4 kB / 409.5 MB, free: 19.94 MB / 298.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.222e-06/0.2411, allocations: 0 / 409.5 MB, free: 19.94 MB / 298.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.228e-06/0.2411, allocations: 3.984 kB / 409.5 MB, free: 19.93 MB / 298.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003244/0.2414, allocations: 473 kB / 409.9 MB, free: 19.42 MB / 298.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.513e-06/0.2414, allocations: 0 / 409.9 MB, free: 19.42 MB / 298.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.959e-05/0.2415, allocations: 19.92 kB / 410 MB, free: 19.4 MB / 298.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.874e-06/0.2415, allocations: 4 kB / 410 MB, free: 19.4 MB / 298.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.704e-05/0.2415, allocations: 8 kB / 410 MB, free: 19.39 MB / 298.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.314e-06/0.2415, allocations: 7.984 kB / 410 MB, free: 19.38 MB / 298.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.62e-07/0.2415, allocations: 0 / 410 MB, free: 19.38 MB / 298.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008822/0.2424, allocations: 1.163 MB / 411.1 MB, free: 18.16 MB / 298.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001038/0.2425, allocations: 144.2 kB / 411.3 MB, free: 18 MB / 298.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.453e-05/0.2426, allocations: 15.98 kB / 411.3 MB, free: 17.98 MB / 298.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001554/0.2428, allocations: 23.97 kB / 411.3 MB, free: 17.96 MB / 298.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.722e-05/0.2429, allocations: 24.06 kB / 411.3 MB, free: 17.94 MB / 298.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.362e-05/0.2429, allocations: 11.94 kB / 411.4 MB, free: 17.93 MB / 298.8 MB Notification: Performance of sorting global known variables: time 0.0005215/0.2434, allocations: 0.6552 MB / 412 MB, free: 17.28 MB / 298.8 MB Notification: Performance of sort global known variables: time 1.81e-07/0.2434, allocations: 0 / 412 MB, free: 17.28 MB / 298.8 MB Notification: Performance of remove unused functions: time 0.0004533/0.2439, allocations: 123.9 kB / 412.1 MB, free: 17.16 MB / 298.8 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,reset.combiTimeTable.nextTimeEventScaled,set.combiTimeTable.nextTimeEventScaled,countDOWN.combiTimeTable.nextTimeEventScaled,countUP.combiTimeTable.nextTimeEventScaled,countUP.combiTimeTable.nextTimeEvent,countDOWN.combiTimeTable.nextTimeEvent,set.combiTimeTable.nextTimeEvent,reset.combiTimeTable.nextTimeEvent) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (29): * Single equations (assignments): 17 * 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.0008499/0.2447, allocations: 470.9 kB / 412.6 MB, free: 16.71 MB / 298.8 MB Notification: Performance of simCode: created initialization part: time 0.0004387/0.2452, allocations: 255.7 kB / 412.8 MB, free: 16.46 MB / 298.8 MB Notification: Performance of simCode: created event and clocks part: time 2.825e-06/0.2452, allocations: 0.625 kB / 412.8 MB, free: 16.46 MB / 298.8 MB Notification: Performance of simCode: created simulation system equations: time 0.0001969/0.2454, allocations: 127.9 kB / 413 MB, free: 16.34 MB / 298.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006191/0.246, allocations: 150.2 kB / 413.1 MB, free: 16.19 MB / 298.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001288/0.2473, allocations: 1.333 MB / 414.4 MB, free: 14.82 MB / 298.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002766/0.2476, allocations: 0.9018 MB / 415.4 MB, free: 13.9 MB / 298.8 MB Notification: Performance of simCode: alias equations: time 0.000213/0.2478, allocations: 104.5 kB / 415.5 MB, free: 13.79 MB / 298.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.18e-05/0.2479, allocations: 51.42 kB / 415.5 MB, free: 13.74 MB / 298.8 MB Notification: Performance of SimCode: time 2.2e-07/0.2479, allocations: 0 / 415.5 MB, free: 13.74 MB / 298.8 MB Notification: Performance of Templates: time 0.0101/0.258, allocations: 7.646 MB / 423.1 MB, free: 6.094 MB / 298.8 MB make -j1 -f IndustrialControlSystems_IndustrialControlSystems.Logical.Counter.Examples.countUPandDOWN.makefile (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)