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.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/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/IndustrialControlSystems 1.1.0-master/package.mo", uses=false) Using package IndustrialControlSystems with version 1.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/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 Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001136/0.001136, allocations: 102.1 kB / 16.35 MB, free: 5.875 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001292/0.001292, allocations: 191 kB / 17.29 MB, free: 5.516 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.302/1.302, allocations: 205.1 MB / 223.2 MB, free: 12.12 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.05571/0.05571, allocations: 10.74 MB / 281.3 MB, free: 1.297 MB / 222.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001451/0.001451, allocations: 64.11 kB / 342 MB, free: 4.438 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2129/0.2144, allocations: 49.01 MB / 391 MB, free: 49.93 MB / 318.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Logical.Counter.Examples.countUPandDOWN): time 0.003311/0.2178, allocations: 2.4 MB / 393.4 MB, free: 48.25 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001986/0.2198, allocations: 1.471 MB / 394.9 MB, free: 47.24 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001523/0.2199, allocations: 8.062 kB / 394.9 MB, free: 47.24 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00125/0.2212, allocations: 0.6215 MB / 395.5 MB, free: 47.06 MB / 318.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Utilities/Strings.mo:139:3-175:14:writable] Warning: Pure function 'Modelica.Utilities.Strings.isEmpty' contains a call to impure function 'Modelica.Utilities.Strings.Advanced.skipWhiteSpace'. Notification: Performance of NFTyping.typeBindings: time 0.0006935/0.2219, allocations: 406.9 kB / 395.9 MB, free: 46.89 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001058/0.223, allocations: 0.5072 MB / 396.4 MB, free: 46.64 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006661/0.2236, allocations: 0.6977 MB / 397.1 MB, free: 46.34 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001723/0.2238, allocations: 91.25 kB / 397.2 MB, free: 46.29 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002926/0.2241, allocations: 290.5 kB / 397.5 MB, free: 46.18 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003274/0.2245, allocations: 306 kB / 397.8 MB, free: 46.06 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 6.317e-05/0.2245, allocations: 40.03 kB / 397.8 MB, free: 46.06 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002964/0.2248, allocations: 177.9 kB / 398 MB, free: 46.02 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002265/0.2251, allocations: 191.9 kB / 398.2 MB, free: 45.94 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002308/0.2253, allocations: 273 kB / 398.4 MB, free: 45.74 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006554/0.226, allocations: 0.7283 MB / 399.2 MB, free: 45.29 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.229e-06/0.226, allocations: 1.094 kB / 399.2 MB, free: 45.29 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.114e-06/0.226, allocations: 0 / 399.2 MB, free: 45.29 MB / 318.1 MB Notification: Performance of Transformations before backend: time 8.817e-06/0.226, allocations: 0 / 399.2 MB, free: 45.29 MB / 318.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.001234/0.2272, allocations: 1.059 MB / 400.2 MB, free: 44.34 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.353e-05/0.2273, allocations: 13.08 kB / 400.2 MB, free: 44.34 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001043/0.2274, allocations: 68.91 kB / 400.3 MB, free: 44.3 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005776/0.228, allocations: 0.5198 MB / 400.8 MB, free: 43.86 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.228e-05/0.228, allocations: 16.28 kB / 400.8 MB, free: 43.85 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.389e-05/0.228, allocations: 20.25 kB / 400.9 MB, free: 43.84 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003993/0.2285, allocations: 256.1 kB / 401.1 MB, free: 43.66 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.127e-06/0.2285, allocations: 3.938 kB / 401.1 MB, free: 43.66 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.239e-05/0.2285, allocations: 6.188 kB / 401.1 MB, free: 43.65 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.402e-06/0.2285, allocations: 8.594 kB / 401.1 MB, free: 43.65 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002481/0.2288, allocations: 121.5 kB / 401.2 MB, free: 43.59 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008668/0.2296, allocations: 0.7294 MB / 402 MB, free: 42.98 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006489/0.2303, allocations: 274.5 kB / 402.2 MB, free: 42.84 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001972/0.2305, allocations: 95.92 kB / 402.3 MB, free: 42.79 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.155e-05/0.2305, allocations: 11.42 kB / 402.3 MB, free: 42.79 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003703/0.2309, allocations: 223.4 kB / 402.6 MB, free: 42.62 MB / 318.1 MB Notification: Performance of pre-optimization done (n=30): time 1.513e-06/0.2309, allocations: 0 / 402.6 MB, free: 42.62 MB / 318.1 MB Notification: Performance of matching and sorting (n=30): time 0.0008651/0.2318, allocations: 443.9 kB / 403 MB, free: 42.41 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.954e-05/0.2319, allocations: 193.4 kB / 403.2 MB, free: 42.19 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008911/0.2328, allocations: 0.8936 MB / 404.1 MB, free: 41.73 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.599e-05/0.2328, allocations: 40.23 kB / 404.1 MB, free: 41.69 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001602/0.233, allocations: 284.2 kB / 404.4 MB, free: 41.44 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.428e-05/0.233, allocations: 75.42 kB / 404.5 MB, free: 41.38 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.58e-05/0.2331, allocations: 70.47 kB / 404.5 MB, free: 41.33 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 5.054e-05/0.2332, allocations: 321.8 kB / 404.9 MB, free: 41.02 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001647/0.2333, allocations: 81.52 kB / 404.9 MB, free: 40.98 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002319/0.2336, allocations: 262 kB / 405.2 MB, free: 40.73 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004108/0.234, allocations: 313.4 kB / 405.5 MB, free: 40.49 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.106e-06/0.234, allocations: 4 kB / 405.5 MB, free: 40.48 MB / 318.1 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.0005511/0.2346, allocations: 366.7 kB / 405.9 MB, free: 40.29 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.621e-05/0.2346, allocations: 7.906 kB / 405.9 MB, free: 40.29 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.623e-06/0.2346, allocations: 6.844 kB / 405.9 MB, free: 40.29 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.673e-05/0.2346, allocations: 5.969 kB / 405.9 MB, free: 40.29 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001614/0.2348, allocations: 54.78 kB / 405.9 MB, free: 40.27 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.207e-06/0.2348, allocations: 4.688 kB / 405.9 MB, free: 40.27 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002017/0.235, allocations: 44.34 kB / 406 MB, free: 40.25 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.361e-05/0.235, allocations: 20.34 kB / 406 MB, free: 40.24 MB / 318.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.0002493/0.2353, allocations: 263.8 kB / 406.3 MB, free: 40.04 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.707e-05/0.2354, allocations: 74.03 kB / 406.3 MB, free: 40 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.039e-05/0.2355, allocations: 66.84 kB / 406.4 MB, free: 39.96 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.068e-06/0.2355, allocations: 7.234 kB / 406.4 MB, free: 39.95 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.942e-06/0.2355, allocations: 0 / 406.4 MB, free: 39.95 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.558e-06/0.2355, allocations: 3.984 kB / 406.4 MB, free: 39.95 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003388/0.2359, allocations: 468.5 kB / 406.9 MB, free: 39.55 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.753e-06/0.2359, allocations: 0 / 406.9 MB, free: 39.55 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.529e-05/0.2359, allocations: 21.89 kB / 406.9 MB, free: 39.55 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.715e-06/0.2359, allocations: 0.9062 kB / 406.9 MB, free: 39.55 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.933e-05/0.236, allocations: 11.39 kB / 406.9 MB, free: 39.54 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.554e-06/0.236, allocations: 2.531 kB / 406.9 MB, free: 39.54 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.723e-06/0.236, allocations: 3.938 kB / 406.9 MB, free: 39.54 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005706/0.2365, allocations: 396.1 kB / 407.3 MB, free: 39.32 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001073/0.2367, allocations: 141.3 kB / 407.4 MB, free: 39.18 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.219e-05/0.2367, allocations: 9.906 kB / 407.4 MB, free: 39.17 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001575/0.2369, allocations: 26.59 kB / 407.5 MB, free: 39.16 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.22e-05/0.237, allocations: 22.59 kB / 407.5 MB, free: 39.14 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.723e-05/0.237, allocations: 13.78 kB / 407.5 MB, free: 39.14 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0006079/0.2376, allocations: 0.6476 MB / 408.1 MB, free: 38.81 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.2376, allocations: 1.125 kB / 408.1 MB, free: 38.81 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0004252/0.2381, allocations: 110.9 kB / 408.3 MB, free: 38.79 MB / 318.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,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.0009224/0.239, allocations: 484.3 kB / 408.7 MB, free: 38.54 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0004325/0.2394, allocations: 255.7 kB / 409 MB, free: 38.29 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 1.894e-06/0.2394, allocations: 0 / 409 MB, free: 38.29 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001871/0.2396, allocations: 123.9 kB / 409.1 MB, free: 38.17 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005651/0.2402, allocations: 164.7 kB / 409.3 MB, free: 38.02 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009882/0.2412, allocations: 0.9905 MB / 410.2 MB, free: 37 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002344/0.2415, allocations: 0.8937 MB / 411.1 MB, free: 36.08 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0001776/0.2416, allocations: 104.9 kB / 411.2 MB, free: 35.97 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.589e-05/0.2417, allocations: 51.42 kB / 411.3 MB, free: 35.93 MB / 318.1 MB Notification: Performance of SimCode: time 2.1e-07/0.2417, allocations: 0 / 411.3 MB, free: 35.93 MB / 318.1 MB Notification: Performance of Templates: time 0.01025/0.252, allocations: 7.829 MB / 419.1 MB, free: 28.11 MB / 318.1 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 -s gbode -lv LOG_STATS > IndustrialControlSystems_IndustrialControlSystems.Logical.Counter.Examples.countUPandDOWN.pipe 2>&1)