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.00124/0.00124, allocations: 180.2 kB / 7.651 MB, free: 1.414 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.06219/0.0622, allocations: 10.66 MB / 18.73 MB, free: 1.328 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.18/2.18, allocations: 205.3 MB / 226.9 MB, free: 7.902 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.001009/0.001009, allocations: 86.47 kB / 277.3 MB, free: 5.438 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.106e-05/1.11e-05, allocations: 0 / 333.6 MB, free: 28.32 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1344/0.1345, allocations: 49.99 MB / 383.6 MB, free: 10.28 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4492/0.5838, allocations: 81.05 MB / 464.7 MB, free: 3.352 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002652/0.5841, allocations: 85.52 kB / 464.8 MB, free: 3.305 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04574/0.6298, allocations: 16.63 MB / 481.4 MB, free: 5.531 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.172e-06/0.6299, allocations: 0 / 481.4 MB, free: 5.531 MB / 346.7 MB Notification: Performance of Transformations before backend: time 4.877e-05/0.6299, allocations: 20.06 kB / 481.4 MB, free: 5.512 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.001265/0.6312, allocations: 0.8514 MB / 482.3 MB, free: 4.625 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.352e-05/0.6313, allocations: 8.031 kB / 482.3 MB, free: 4.617 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001396/0.6314, allocations: 75.09 kB / 482.3 MB, free: 4.543 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009745/0.6324, allocations: 0.5418 MB / 482.9 MB, free: 4.043 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.655e-05/0.6324, allocations: 7.938 kB / 482.9 MB, free: 4.035 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.884e-05/0.6325, allocations: 14.69 kB / 482.9 MB, free: 4.023 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002471/0.6327, allocations: 112 kB / 483 MB, free: 3.953 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003447/0.6331, allocations: 221.7 kB / 483.2 MB, free: 3.766 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.918e-06/0.6331, allocations: 0 / 483.2 MB, free: 3.766 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.48e-05/0.6331, allocations: 4 kB / 483.2 MB, free: 3.762 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.173e-06/0.6332, allocations: 4 kB / 483.2 MB, free: 3.758 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001105/0.6343, allocations: 0.7617 MB / 484 MB, free: 3.121 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005172/0.6348, allocations: 254.5 kB / 484.2 MB, free: 2.934 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001246/0.6349, allocations: 81.67 kB / 484.3 MB, free: 2.879 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.914e-05/0.635, allocations: 16.47 kB / 484.3 MB, free: 2.863 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003214/0.6353, allocations: 210.7 kB / 484.5 MB, free: 2.688 MB / 346.7 MB Notification: Performance of pre-optimization done (n=30): time 1.824e-06/0.6353, allocations: 0 / 484.5 MB, free: 2.688 MB / 346.7 MB Notification: Performance of matching and sorting (n=30): time 0.0006175/0.6359, allocations: 341 kB / 484.9 MB, free: 2.414 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.78e-05/0.636, allocations: 191.3 kB / 485.1 MB, free: 2.188 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009996/0.637, allocations: 0.7727 MB / 485.8 MB, free: 1.609 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 3.784e-05/0.6371, allocations: 29.7 kB / 485.9 MB, free: 1.574 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000216/0.6373, allocations: 286.3 kB / 486.1 MB, free: 1.426 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.734e-05/0.6374, allocations: 72.06 kB / 486.2 MB, free: 1.367 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.073e-05/0.6374, allocations: 4 kB / 486.2 MB, free: 1.363 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001215/0.6375, allocations: 316.8 kB / 486.5 MB, free: 1.055 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001144/0.6377, allocations: 71.98 kB / 486.6 MB, free: 1.012 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002535/0.6379, allocations: 244.6 kB / 486.8 MB, free: 0.7461 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001718/0.6381, allocations: 107.5 kB / 486.9 MB, free: 0.6719 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.136e-06/0.6381, allocations: 0 / 486.9 MB, free: 0.6719 MB / 346.7 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.0004833/0.6386, allocations: 327.9 kB / 487.3 MB, free: 416 kB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.128e-05/0.6386, allocations: 6.656 kB / 487.3 MB, free: 412 kB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.287e-06/0.6387, allocations: 4 kB / 487.3 MB, free: 408 kB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.194e-05/0.6387, allocations: 12.3 kB / 487.3 MB, free: 396 kB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002089/0.6389, allocations: 54.67 kB / 487.3 MB, free: 344 kB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.236e-05/0.6389, allocations: 11.98 kB / 487.4 MB, free: 332 kB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002431/0.6392, allocations: 27.83 kB / 487.4 MB, free: 304 kB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.846e-05/0.6392, allocations: 15.38 kB / 487.4 MB, free: 292 kB / 346.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.0002617/0.6395, allocations: 150.5 kB / 487.5 MB, free: 140 kB / 346.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0006243/0.6401, allocations: 344.7 kB / 487.9 MB, free: 15.86 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001141/0.6402, allocations: 67.16 kB / 487.9 MB, free: 15.8 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006749/0.6409, allocations: 369 kB / 488.3 MB, free: 15.51 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.154e-06/0.6409, allocations: 7.938 kB / 488.3 MB, free: 15.5 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.292e-06/0.641, allocations: 0 / 488.3 MB, free: 15.5 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.065e-06/0.641, allocations: 3.984 kB / 488.3 MB, free: 15.5 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005588/0.6415, allocations: 476.9 kB / 488.8 MB, free: 15.09 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.914e-06/0.6415, allocations: 0 / 488.8 MB, free: 15.09 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.95e-05/0.6416, allocations: 23.92 kB / 488.8 MB, free: 15.07 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.386e-06/0.6417, allocations: 7.938 kB / 488.8 MB, free: 15.06 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.519e-05/0.6417, allocations: 7.797 kB / 488.8 MB, free: 15.06 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.723e-06/0.6417, allocations: 4 kB / 488.8 MB, free: 15.05 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.895e-06/0.6417, allocations: 0 / 488.8 MB, free: 15.05 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005967/0.6423, allocations: 389.5 kB / 489.2 MB, free: 14.73 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002275/0.6426, allocations: 194.3 kB / 489.4 MB, free: 14.54 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.859e-05/0.6427, allocations: 11.8 kB / 489.4 MB, free: 14.53 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001917/0.6429, allocations: 19.98 kB / 489.4 MB, free: 14.51 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001005/0.643, allocations: 23.22 kB / 489.4 MB, free: 14.49 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.883e-05/0.643, allocations: 15.17 kB / 489.5 MB, free: 14.48 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0008012/0.6438, allocations: 0.5962 MB / 490.1 MB, free: 14.06 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.6438, allocations: 0 / 490.1 MB, free: 14.06 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0006121/0.6444, allocations: 139.8 kB / 490.2 MB, free: 13.93 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) * 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.001827/0.6463, allocations: 1.236 MB / 491.4 MB, free: 12.75 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.000471/0.6468, allocations: 257.7 kB / 491.7 MB, free: 12.57 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 5.52e-06/0.6468, allocations: 4 kB / 491.7 MB, free: 12.57 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001763/0.6469, allocations: 120.6 kB / 491.8 MB, free: 12.49 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006883/0.6476, allocations: 134.9 kB / 491.9 MB, free: 12.39 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001826/0.6495, allocations: 0.9619 MB / 492.9 MB, free: 11.52 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005153/0.65, allocations: 0.9091 MB / 493.8 MB, free: 10.61 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0002987/0.6503, allocations: 111.8 kB / 493.9 MB, free: 10.5 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002915/0.6506, allocations: 213 kB / 494.1 MB, free: 10.43 MB / 362.7 MB Notification: Performance of SimCode: time 6.82e-07/0.6506, allocations: 4 kB / 494.1 MB, free: 10.43 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03693/0.6876, allocations: 12.48 MB / 0.4947 GB, free: 13.93 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002243/0.6879, allocations: 196.9 kB / 0.4949 GB, free: 13.67 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.403/3.091, allocations: 4 kB / 0.4949 GB, free: 13.66 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)