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: "" <> buildModelFMU(IndustrialControlSystems.Logical.Counter.Examples.countUPandDOWN,fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems_Logical_Counter_Examples_countUPandDOWN",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IndustrialControlSystems.Logical.Counter.Examples.countUPandDOWN,fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems_Logical_Counter_Examples_countUPandDOWN",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001623/0.001624, allocations: 174.5 kB / 12.73 MB, free: 2.59 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.08343/0.08343, allocations: 10.65 MB / 23.91 MB, free: 1.379 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.773/1.773, allocations: 205.2 MB / 232.1 MB, free: 12.9 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.0008575/0.0008575, allocations: 95.98 kB / 282.6 MB, free: 13.68 MB / 234.8 MB Notification: Performance of FrontEnd - loaded program: time 3.739e-05/3.74e-05, allocations: 7.984 kB / 340.6 MB, free: 3.613 MB / 282.8 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2982/0.2983, allocations: 49.99 MB / 390.6 MB, free: 35.7 MB / 298.8 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.111/0.4094, allocations: 81.4 MB / 472 MB, free: 2.184 MB / 346.8 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002706/0.4097, allocations: 83.95 kB / 472 MB, free: 2.102 MB / 346.8 MB Notification: Performance of FrontEnd - DAE generated: time 0.04781/0.4575, allocations: 16.78 MB / 488.8 MB, free: 1.312 MB / 362.8 MB Notification: Performance of FrontEnd: time 2.945e-06/0.4575, allocations: 0 / 488.8 MB, free: 1.312 MB / 362.8 MB Notification: Performance of Transformations before backend: time 4.673e-05/0.4576, allocations: 11.94 kB / 488.8 MB, free: 1.301 MB / 362.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.001308/0.4589, allocations: 0.8581 MB / 489.7 MB, free: 380 kB / 362.8 MB Notification: Performance of prepare preOptimizeDAE: time 4.98e-05/0.459, allocations: 8.031 kB / 489.7 MB, free: 372 kB / 362.8 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.796e-05/0.4591, allocations: 46.55 kB / 489.7 MB, free: 316 kB / 362.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000132/0.4592, allocations: 71.2 kB / 489.8 MB, free: 244 kB / 362.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00104/0.4602, allocations: 0.5467 MB / 490.4 MB, free: 15.65 MB / 378.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.803e-05/0.4603, allocations: 16.31 kB / 490.4 MB, free: 15.63 MB / 378.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.118e-05/0.4603, allocations: 16 kB / 490.4 MB, free: 15.62 MB / 378.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000432/0.4608, allocations: 248.7 kB / 490.6 MB, free: 15.36 MB / 378.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.073e-05/0.4608, allocations: 0 / 490.6 MB, free: 15.36 MB / 378.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.717e-05/0.4608, allocations: 7.984 kB / 490.6 MB, free: 15.35 MB / 378.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.765e-06/0.4608, allocations: 4 kB / 490.6 MB, free: 15.34 MB / 378.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002337/0.4611, allocations: 127.8 kB / 490.8 MB, free: 15.22 MB / 378.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001279/0.4624, allocations: 0.7967 MB / 491.6 MB, free: 14.37 MB / 378.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006082/0.463, allocations: 281.6 kB / 491.8 MB, free: 14.09 MB / 378.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001502/0.4631, allocations: 88.84 kB / 491.9 MB, free: 14 MB / 378.8 MB Notification: Performance of preOpt evalFunc (simulation): time 2.291e-05/0.4632, allocations: 8.141 kB / 491.9 MB, free: 13.99 MB / 378.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003575/0.4635, allocations: 230.1 kB / 492.2 MB, free: 13.75 MB / 378.8 MB Notification: Performance of pre-optimization done (n=30): time 1.683e-06/0.4636, allocations: 0 / 492.2 MB, free: 13.75 MB / 378.8 MB Notification: Performance of matching and sorting (n=30): time 0.0006371/0.4642, allocations: 352.8 kB / 492.5 MB, free: 13.4 MB / 378.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001048/0.4643, allocations: 195.9 kB / 492.7 MB, free: 13.16 MB / 378.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001058/0.4654, allocations: 0.8003 MB / 493.5 MB, free: 12.36 MB / 378.8 MB Notification: Performance of collectPreVariables (initialization): time 3.799e-05/0.4654, allocations: 33.7 kB / 493.5 MB, free: 12.32 MB / 378.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002354/0.4657, allocations: 288.6 kB / 493.8 MB, free: 12.03 MB / 378.8 MB Notification: Performance of collectInitialBindings (initialization): time 7.257e-05/0.4658, allocations: 75.05 kB / 493.9 MB, free: 11.96 MB / 378.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.595e-05/0.4658, allocations: 8 kB / 493.9 MB, free: 11.95 MB / 378.8 MB Notification: Performance of setup shared object (initialization): time 0.0001235/0.4659, allocations: 333.9 kB / 494.2 MB, free: 11.62 MB / 378.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000135/0.466, allocations: 72 kB / 494.3 MB, free: 11.55 MB / 378.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002763/0.4663, allocations: 259.7 kB / 494.5 MB, free: 11.22 MB / 378.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001699/0.4665, allocations: 95.89 kB / 494.6 MB, free: 11.13 MB / 378.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.886e-06/0.4665, allocations: 0 / 494.6 MB, free: 11.13 MB / 378.8 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.0005324/0.4671, allocations: 364.5 kB / 495 MB, free: 10.77 MB / 378.8 MB Notification: Performance of prepare postOptimizeDAE: time 2.109e-05/0.4671, allocations: 8 kB / 495 MB, free: 10.76 MB / 378.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.995e-06/0.4671, allocations: 4 kB / 495 MB, free: 10.75 MB / 378.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.012e-05/0.4671, allocations: 4 kB / 495 MB, free: 10.75 MB / 378.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001988/0.4673, allocations: 60.09 kB / 495.1 MB, free: 10.69 MB / 378.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.072e-05/0.4674, allocations: 4 kB / 495.1 MB, free: 10.69 MB / 378.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002439/0.4676, allocations: 48.14 kB / 495.1 MB, free: 10.64 MB / 378.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.495e-05/0.4676, allocations: 15.98 kB / 495.1 MB, free: 10.62 MB / 378.8 MB Warning: Assuming fixed start value for the following 5 variables: counter.CUd:DISCRETE(fixed = false ) type: Boolean counter.CDd:DISCRETE(fixed = false ) type: Boolean counter.Sd:DISCRETE(fixed = false ) type: Boolean counter.Q:DISCRETE(fixed = false ) "status of the counter (1: counting, 0: not counting)" type: Boolean counter.Value:DISCRETE(start = 0 fixed = false ) 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,$whenCondition5,$PRE.reset.combiTimeTable.nextTimeEvent,$whenCondition4,$PRE.set.combiTimeTable.nextTimeEvent,$whenCondition3,$PRE.countDOWN.combiTimeTable.nextTimeEvent,$whenCondition2,$PRE.countUP.combiTimeTable.nextTimeEvent,$whenCondition1,counter.R,reset.combiTimeTable.nextTimeEvent,$PRE.reset.combiTimeTable.nextTimeEventScaled,reset.combiTimeTable.nextTimeEventScaled,counter.S,set.combiTimeTable.nextTimeEvent,$PRE.set.combiTimeTable.nextTimeEventScaled,set.combiTimeTable.nextTimeEventScaled,countDOWN.y,countDOWN.combiTimeTable.nextTimeEvent,$PRE.countDOWN.combiTimeTable.nextTimeEventScaled,countDOWN.combiTimeTable.nextTimeEventScaled,countUP.y,countUP.combiTimeTable.nextTimeEvent,$PRE.countUP.combiTimeTable.nextTimeEventScaled,countUP.combiTimeTable.nextTimeEventScaled) * Number of discrete 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001807/0.4678, allocations: 149.7 kB / 495.3 MB, free: 10.47 MB / 378.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001057/0.4679, allocations: 75.14 kB / 495.4 MB, free: 10.4 MB / 378.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000635/0.4686, allocations: 400 kB / 495.7 MB, free: 9.996 MB / 378.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.793e-06/0.4686, allocations: 4 kB / 495.8 MB, free: 9.992 MB / 378.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.278e-06/0.4686, allocations: 0 / 495.8 MB, free: 9.992 MB / 378.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.899e-06/0.4686, allocations: 0 / 495.8 MB, free: 9.992 MB / 378.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005174/0.4691, allocations: 0.5049 MB / 496.3 MB, free: 9.438 MB / 378.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.116e-06/0.4692, allocations: 0 / 496.3 MB, free: 9.438 MB / 378.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.193e-05/0.4693, allocations: 39.86 kB / 496.3 MB, free: 9.398 MB / 378.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.586e-06/0.4693, allocations: 0 / 496.3 MB, free: 9.398 MB / 378.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.577e-05/0.4693, allocations: 11.98 kB / 496.3 MB, free: 9.387 MB / 378.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.757e-06/0.4693, allocations: 8 kB / 496.3 MB, free: 9.379 MB / 378.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.162e-06/0.4693, allocations: 0 / 496.3 MB, free: 9.379 MB / 378.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005608/0.4699, allocations: 400.3 kB / 496.7 MB, free: 8.969 MB / 378.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002382/0.4701, allocations: 196.2 kB / 496.9 MB, free: 8.758 MB / 378.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.941e-05/0.4702, allocations: 15.92 kB / 496.9 MB, free: 8.742 MB / 378.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000192/0.4704, allocations: 23.98 kB / 496.9 MB, free: 8.719 MB / 378.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.172e-05/0.4705, allocations: 31.95 kB / 497 MB, free: 8.688 MB / 378.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.899e-05/0.4705, allocations: 12 kB / 497 MB, free: 8.676 MB / 378.8 MB Notification: Performance of sorting global known variables: time 0.0008133/0.4714, allocations: 0.6358 MB / 497.6 MB, free: 8.043 MB / 378.8 MB Notification: Performance of sort global known variables: time 1.7e-07/0.4714, allocations: 0 / 497.6 MB, free: 8.043 MB / 378.8 MB Notification: Performance of remove unused functions: time 0.0005393/0.4719, allocations: 143.9 kB / 497.8 MB, free: 7.902 MB / 378.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.S,counter.R,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.combiTimeTable.nextTimeEvent,set.combiTimeTable.nextTimeEventScaled,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) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001868/0.4738, allocations: 1.282 MB / 499 MB, free: 6.664 MB / 378.8 MB Notification: Performance of simCode: created initialization part: time 0.0005511/0.4744, allocations: 279.9 kB / 499.3 MB, free: 6.391 MB / 378.8 MB Notification: Performance of simCode: created event and clocks part: time 2.745e-06/0.4744, allocations: 0 / 499.3 MB, free: 6.391 MB / 378.8 MB Notification: Performance of simCode: created simulation system equations: time 0.0002151/0.4746, allocations: 128.5 kB / 499.4 MB, free: 6.266 MB / 378.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006838/0.4753, allocations: 142.1 kB / 499.6 MB, free: 6.133 MB / 378.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001852/0.4771, allocations: 0.9885 MB / 0.4888 GB, free: 5.105 MB / 378.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005398/0.4777, allocations: 0.914 MB / 0.4897 GB, free: 4.16 MB / 378.8 MB Notification: Performance of simCode: alias equations: time 0.0002817/0.478, allocations: 104.4 kB / 0.4898 GB, free: 4.059 MB / 378.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000319/0.4783, allocations: 215.4 kB / 0.49 GB, free: 3.852 MB / 378.8 MB Notification: Performance of SimCode: time 5.11e-07/0.4783, allocations: 0 / 0.49 GB, free: 3.852 MB / 378.8 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2862/0.7646, allocations: 13.5 MB / 0.5032 GB, free: 99.26 MB / 378.8 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001475/0.7648, allocations: 227.1 kB / 0.5034 GB, free: 99.03 MB / 378.8 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.458/3.223, allocations: 0 / 0.5034 GB, free: 99.03 MB / 378.8 MB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_IndustrialControlSystems_IndustrialControlSystems_Logical_Counter_Examples_countUPandDOWN_fmu --startTime=0 --stopTime=60 --timeout=50 --tolerance=1e-06 IndustrialControlSystems_IndustrialControlSystems_Logical_Counter_Examples_countUPandDOWN.fmu > IndustrialControlSystems_IndustrialControlSystems.Logical.Counter.Examples.countUPandDOWN.pipe 2>&1)