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.007423/0.007423, allocations: 172 kB / 15.11 MB, free: 5.98 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.06294/0.06294, allocations: 10.74 MB / 26.59 MB, free: 2.262 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.677/1.677, allocations: 205.4 MB / 235.2 MB, free: 116 kB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009026/0.0009024, allocations: 87.56 kB / 285.9 MB, free: 10.67 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000453/0.0004529, allocations: 8 kB / 346.5 MB, free: 5.062 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1336/0.1341, allocations: 50 MB / 396.5 MB, free: 2.969 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3312/0.4654, allocations: 81.48 MB / 478 MB, free: 14.75 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002806/0.4657, allocations: 90.61 kB / 478.1 MB, free: 14.71 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04184/0.5076, allocations: 16.82 MB / 494.9 MB, free: 0.6406 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.966e-06/0.5076, allocations: 4 kB / 494.9 MB, free: 0.6367 MB / 346.7 MB Notification: Performance of Transformations before backend: time 9.118e-05/0.5077, allocations: 8 kB / 494.9 MB, free: 0.6289 MB / 346.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.002077/0.5098, allocations: 0.9803 MB / 495.9 MB, free: 15.62 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.777e-05/0.5099, allocations: 12.03 kB / 495.9 MB, free: 15.61 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001339/0.51, allocations: 49.91 kB / 495.9 MB, free: 15.55 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002772/0.5103, allocations: 75.09 kB / 496 MB, free: 15.48 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001253/0.5116, allocations: 0.5418 MB / 496.6 MB, free: 14.98 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.795e-05/0.5116, allocations: 15.08 kB / 496.6 MB, free: 14.97 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.387e-05/0.5117, allocations: 19.3 kB / 496.6 MB, free: 14.95 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000513/0.5122, allocations: 261.8 kB / 496.8 MB, free: 14.74 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.788e-06/0.5122, allocations: 0 / 496.8 MB, free: 14.74 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.747e-05/0.5122, allocations: 3.438 kB / 496.8 MB, free: 14.74 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.436e-06/0.5123, allocations: 4 kB / 496.8 MB, free: 14.73 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002905/0.5126, allocations: 135.3 kB / 497 MB, free: 14.64 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001435/0.514, allocations: 0.8034 MB / 497.8 MB, free: 13.96 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007311/0.5148, allocations: 300.5 kB / 498.1 MB, free: 13.73 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.044e-05/0.5148, allocations: 4 kB / 498.1 MB, free: 13.73 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004137/0.5152, allocations: 231.2 kB / 498.3 MB, free: 13.54 MB / 362.7 MB Notification: Performance of pre-optimization done (n=30): time 2.134e-06/0.5152, allocations: 0 / 498.3 MB, free: 13.54 MB / 362.7 MB Notification: Performance of matching and sorting (n=30): time 0.001038/0.5163, allocations: 0.5407 MB / 498.8 MB, free: 13.08 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.676e-05/0.5164, allocations: 191.3 kB / 499 MB, free: 12.85 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00135/0.5177, allocations: 0.8126 MB / 499.8 MB, free: 12.09 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 7.797e-05/0.5178, allocations: 33.7 kB / 499.9 MB, free: 12.05 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000257/0.5181, allocations: 280.6 kB / 0.4884 GB, free: 11.78 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001089/0.5182, allocations: 82.98 kB / 0.4885 GB, free: 11.7 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.454e-05/0.5182, allocations: 4 kB / 0.4885 GB, free: 11.69 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001231/0.5184, allocations: 325.9 kB / 0.4888 GB, free: 11.37 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002133/0.5186, allocations: 87.08 kB / 0.4889 GB, free: 11.29 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003479/0.519, allocations: 270.4 kB / 0.4892 GB, free: 10.95 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002585/0.5192, allocations: 118.9 kB / 0.4893 GB, free: 10.84 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.857e-06/0.5192, allocations: 0 / 0.4893 GB, free: 10.84 MB / 362.7 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.0007859/0.52, allocations: 384.4 kB / 0.4896 GB, free: 10.46 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.782e-05/0.5201, allocations: 8 kB / 0.4897 GB, free: 10.45 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.139e-05/0.5201, allocations: 4 kB / 0.4897 GB, free: 10.45 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.352e-05/0.5201, allocations: 7.984 kB / 0.4897 GB, free: 10.44 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001964/0.5203, allocations: 52.23 kB / 0.4897 GB, free: 10.39 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.375e-05/0.5204, allocations: 11.98 kB / 0.4897 GB, free: 10.38 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003279/0.5207, allocations: 35.83 kB / 0.4898 GB, free: 10.34 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.921e-05/0.5207, allocations: 16 kB / 0.4898 GB, free: 10.32 MB / 362.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(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,$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 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004645/0.5212, allocations: 274.3 kB / 0.49 GB, free: 10.05 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001733/0.5214, allocations: 67.16 kB / 0.4901 GB, free: 9.98 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008149/0.5222, allocations: 403.9 kB / 0.4905 GB, free: 9.578 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.793e-06/0.5222, allocations: 4 kB / 0.4905 GB, free: 9.574 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.411e-06/0.5222, allocations: 0 / 0.4905 GB, free: 9.574 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.951e-06/0.5222, allocations: 0 / 0.4905 GB, free: 9.574 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006706/0.5229, allocations: 0.5166 MB / 0.491 GB, free: 9.008 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.076e-06/0.5229, allocations: 7.938 kB / 0.491 GB, free: 9 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.941e-05/0.523, allocations: 23.92 kB / 0.491 GB, free: 8.977 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.232e-06/0.523, allocations: 4 kB / 0.491 GB, free: 8.973 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.53e-05/0.5231, allocations: 11.98 kB / 0.491 GB, free: 8.961 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.254e-06/0.5231, allocations: 0 / 0.491 GB, free: 8.961 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.723e-06/0.5231, allocations: 0 / 0.491 GB, free: 8.961 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007491/0.5238, allocations: 428.2 kB / 0.4915 GB, free: 8.523 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003026/0.5242, allocations: 192.1 kB / 0.4916 GB, free: 8.316 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001121/0.5243, allocations: 12 kB / 0.4916 GB, free: 8.305 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002171/0.5245, allocations: 23.98 kB / 0.4917 GB, free: 8.281 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.533e-05/0.5246, allocations: 27.95 kB / 0.4917 GB, free: 8.254 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.045e-05/0.5246, allocations: 12 kB / 0.4917 GB, free: 8.242 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.001005/0.5256, allocations: 0.6435 MB / 0.4923 GB, free: 7.602 MB / 362.7 MB Notification: Performance of sort global known variables: time 3.21e-07/0.5257, allocations: 0 / 0.4923 GB, free: 7.602 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0007082/0.5264, allocations: 143.9 kB / 0.4925 GB, free: 7.461 MB / 362.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.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) * 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 (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.002244/0.5286, allocations: 1.345 MB / 0.4938 GB, free: 6.133 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0007241/0.5294, allocations: 300.5 kB / 0.4941 GB, free: 5.84 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.426e-06/0.5294, allocations: 0 / 0.4941 GB, free: 5.84 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000258/0.5297, allocations: 143.8 kB / 0.4942 GB, free: 5.699 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007339/0.5304, allocations: 129.1 kB / 0.4943 GB, free: 5.578 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007083/0.5375, allocations: 5.55 MB / 0.4998 GB, free: 15.91 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006383/0.5382, allocations: 0.9178 MB / 0.5006 GB, free: 14.96 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0004523/0.5387, allocations: 116.3 kB / 0.5008 GB, free: 14.85 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003767/0.539, allocations: 215.3 kB / 0.501 GB, free: 14.64 MB / 378.7 MB Notification: Performance of SimCode: time 9.52e-07/0.5391, allocations: 4 kB / 0.501 GB, free: 14.63 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0322/0.5713, allocations: 13.71 MB / 0.5144 GB, free: 0.9375 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002974/0.5716, allocations: 247.8 kB / 0.5146 GB, free: 0.6211 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.462/3.034, allocations: 4.062 kB / 0.5146 GB, free: 0.6172 MB / 378.7 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)