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"}) [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.00681/0.006809, allocations: 181.4 kB / 7.459 MB, free: 2.5 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.07931/0.07931, allocations: 10.59 MB / 18.46 MB, free: 2.18 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.766/1.766, allocations: 205.2 MB / 226.5 MB, free: 0.7227 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009874/0.0009874, allocations: 88.06 kB / 276.9 MB, free: 15.68 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1434/0.1444, allocations: 56.13 MB / 333 MB, free: 7.465 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2825/0.427, allocations: 49.98 MB / 383 MB, free: 39.77 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1308/0.5578, allocations: 80.65 MB / 463.7 MB, free: 6.984 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003709/0.5583, allocations: 91.92 kB / 463.8 MB, free: 6.895 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.05525/0.6136, allocations: 17.02 MB / 480.8 MB, free: 5.793 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.402e-05/0.6136, allocations: 8 kB / 480.8 MB, free: 5.785 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004145/0.6141, allocations: 71.06 kB / 480.9 MB, free: 5.715 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001651/0.6157, allocations: 0.5351 MB / 481.4 MB, free: 5.141 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.103e-05/0.6158, allocations: 8 kB / 481.4 MB, free: 5.133 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.344e-05/0.6159, allocations: 15.98 kB / 481.4 MB, free: 5.117 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003406/0.6162, allocations: 116.5 kB / 481.5 MB, free: 5.004 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005067/0.6167, allocations: 228.4 kB / 481.8 MB, free: 4.762 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.47e-05/0.6168, allocations: 0 / 481.8 MB, free: 4.762 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.897e-05/0.6168, allocations: 4 kB / 481.8 MB, free: 4.758 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.03e-05/0.6168, allocations: 4 kB / 481.8 MB, free: 4.754 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001744/0.6186, allocations: 0.766 MB / 482.5 MB, free: 3.949 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006114/0.6192, allocations: 214.6 kB / 482.7 MB, free: 3.73 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002154/0.6195, allocations: 89.05 kB / 482.8 MB, free: 3.641 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.472e-05/0.6195, allocations: 7.859 kB / 482.8 MB, free: 3.633 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003779/0.6199, allocations: 198.1 kB / 483 MB, free: 3.422 MB / 362.7 MB Notification: Performance of pre-optimization done (n=30): time 2.896e-06/0.6199, allocations: 0 / 483 MB, free: 3.422 MB / 362.7 MB Notification: Performance of matching and sorting (n=30): time 0.0008718/0.6208, allocations: 280.9 kB / 483.3 MB, free: 3.141 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001358/0.6209, allocations: 191.8 kB / 483.5 MB, free: 2.91 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001427/0.6224, allocations: 0.7769 MB / 484.3 MB, free: 2.129 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 6.344e-05/0.6224, allocations: 29.7 kB / 484.3 MB, free: 2.094 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001621/0.6226, allocations: 169.1 kB / 484.5 MB, free: 1.922 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001017/0.6227, allocations: 71.06 kB / 484.5 MB, free: 1.852 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.366e-05/0.6228, allocations: 0 / 484.5 MB, free: 1.852 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001874/0.6229, allocations: 325.9 kB / 484.9 MB, free: 1.527 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000167/0.6231, allocations: 72 kB / 484.9 MB, free: 1.457 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003034/0.6234, allocations: 249.4 kB / 485.2 MB, free: 1.145 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000211/0.6237, allocations: 105 kB / 485.3 MB, free: 1.043 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.022e-06/0.6237, allocations: 4 kB / 485.3 MB, free: 1.039 MB / 362.7 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.0006925/0.6244, allocations: 324.5 kB / 485.6 MB, free: 0.7148 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.039e-05/0.6244, allocations: 7.984 kB / 485.6 MB, free: 0.707 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.124e-05/0.6244, allocations: 4 kB / 485.6 MB, free: 0.7031 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.503e-05/0.6244, allocations: 4.312 kB / 485.6 MB, free: 0.6992 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002266/0.6247, allocations: 55.91 kB / 485.7 MB, free: 0.6445 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.155e-05/0.6247, allocations: 7.938 kB / 485.7 MB, free: 0.6367 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003446/0.6251, allocations: 35.73 kB / 485.7 MB, free: 0.6016 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.823e-05/0.6251, allocations: 16 kB / 485.7 MB, free: 0.5859 MB / 362.7 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.0002369/0.6253, allocations: 146 kB / 485.9 MB, free: 448 kB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001435/0.6255, allocations: 67.14 kB / 485.9 MB, free: 380 kB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006572/0.6262, allocations: 323.9 kB / 486.2 MB, free: 44 kB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.233e-06/0.6262, allocations: 4 kB / 486.2 MB, free: 40 kB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.861e-06/0.6262, allocations: 4 kB / 486.3 MB, free: 36 kB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.417e-06/0.6262, allocations: 7.984 kB / 486.3 MB, free: 28 kB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000728/0.6269, allocations: 465.7 kB / 486.7 MB, free: 15.54 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.528e-06/0.627, allocations: 0 / 486.7 MB, free: 15.54 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.784e-05/0.6271, allocations: 31.89 kB / 486.7 MB, free: 15.5 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.17e-06/0.6271, allocations: 0 / 486.7 MB, free: 15.5 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.974e-05/0.6271, allocations: 4 kB / 486.8 MB, free: 15.5 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.499e-06/0.6271, allocations: 4 kB / 486.8 MB, free: 15.5 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.37e-06/0.6271, allocations: 3.984 kB / 486.8 MB, free: 15.49 MB / 378.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0006298/0.6278, allocations: 336.3 kB / 487.1 MB, free: 15.14 MB / 378.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0007908/0.6286, allocations: 0.7191 MB / 487.8 MB, free: 14.4 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003171/0.6289, allocations: 180.3 kB / 488 MB, free: 14.21 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001341/0.629, allocations: 15.84 kB / 488 MB, free: 14.19 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002454/0.6293, allocations: 27.97 kB / 488 MB, free: 14.16 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.987e-05/0.6294, allocations: 23.91 kB / 488 MB, free: 14.14 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.314e-05/0.6295, allocations: 15.98 kB / 488.1 MB, free: 14.12 MB / 378.7 MB Notification: Performance of sort global known variables: time 0.0009864/0.6304, allocations: 0.5968 MB / 488.7 MB, free: 13.54 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0014/0.6319, allocations: 135.9 kB / 488.8 MB, free: 13.4 MB / 378.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) * 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.001108/0.633, allocations: 384.7 kB / 489.2 MB, free: 13.06 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0006145/0.6336, allocations: 251.8 kB / 489.4 MB, free: 12.82 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.216e-06/0.6336, allocations: 0 / 489.4 MB, free: 12.82 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002337/0.6339, allocations: 123.9 kB / 489.5 MB, free: 12.7 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009123/0.6348, allocations: 144.2 kB / 489.7 MB, free: 12.56 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002138/0.6369, allocations: 0.8185 MB / 490.5 MB, free: 11.7 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008689/0.6378, allocations: 0.9642 MB / 491.5 MB, free: 10.71 MB / 378.7 MB Notification: Performance of SimCode: time 7.11e-07/0.6378, allocations: 0 / 491.5 MB, free: 10.71 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)