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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 2.0.0-master/package.mo", uses=false) Using package IndustrialControlSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 2.0.0-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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: "" <> 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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.004574/0.004574, allocations: 100.3 kB / 15.73 MB, free: 6.484 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.001274/0.001274, allocations: 193.2 kB / 16.68 MB, free: 6.363 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.398/1.398, allocations: 222.9 MB / 240.4 MB, free: 4.301 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 2.0.0-master/package.mo): time 0.1573/0.1573, allocations: 11.17 MB / 301.7 MB, free: 1.328 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00181/0.00181, allocations: 67.89 kB / 417.4 MB, free: 6.07 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2198/0.2216, allocations: 51.97 MB / 469.3 MB, free: 16.7 MB / 350.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Logical.Counter.Examples.countUPandDOWN): time 0.003129/0.2248, allocations: 2.403 MB / 471.7 MB, free: 15.01 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002151/0.227, allocations: 1.57 MB / 473.3 MB, free: 13.94 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001754/0.2272, allocations: 7.844 kB / 473.3 MB, free: 13.93 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001078/0.2283, allocations: 0.626 MB / 473.9 MB, free: 13.75 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006416/0.2289, allocations: 404.4 kB / 474.3 MB, free: 13.55 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001206/0.2302, allocations: 0.5569 MB / 474.9 MB, free: 13.17 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006012/0.2308, allocations: 0.6907 MB / 475.6 MB, free: 12.77 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001592/0.2309, allocations: 94.28 kB / 475.7 MB, free: 12.71 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002478/0.2312, allocations: 289.1 kB / 475.9 MB, free: 12.54 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002614/0.2315, allocations: 305.8 kB / 476.2 MB, free: 12.38 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 7e-05/0.2315, allocations: 35.72 kB / 476.3 MB, free: 12.38 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003197/0.2319, allocations: 180 kB / 476.5 MB, free: 12.3 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001581/0.232, allocations: 197.5 kB / 476.6 MB, free: 12.18 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001832/0.2322, allocations: 274.5 kB / 476.9 MB, free: 11.96 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006193/0.2328, allocations: 0.7272 MB / 477.6 MB, free: 11.46 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.086e-06/0.2328, allocations: 4 kB / 477.6 MB, free: 11.45 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.433e-06/0.2329, allocations: 0 / 477.6 MB, free: 11.45 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.987e-06/0.2329, allocations: 1.312 kB / 477.6 MB, free: 11.45 MB / 350.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.001221/0.2341, allocations: 1.069 MB / 478.7 MB, free: 10.49 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.807e-05/0.2341, allocations: 21.16 kB / 478.7 MB, free: 10.48 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.76e-05/0.2342, allocations: 53.73 kB / 478.8 MB, free: 10.43 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000113/0.2343, allocations: 72.19 kB / 478.9 MB, free: 10.39 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005501/0.2349, allocations: 0.5238 MB / 479.4 MB, free: 9.938 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.486e-05/0.2349, allocations: 21.38 kB / 479.4 MB, free: 9.926 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.973e-05/0.2349, allocations: 20.78 kB / 479.4 MB, free: 9.918 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004033/0.2354, allocations: 251.1 kB / 479.7 MB, free: 9.738 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.768e-06/0.2354, allocations: 0 / 479.7 MB, free: 9.738 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.343e-05/0.2354, allocations: 6.406 kB / 479.7 MB, free: 9.734 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.933e-06/0.2354, allocations: 4.375 kB / 479.7 MB, free: 9.734 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002531/0.2357, allocations: 121.3 kB / 479.8 MB, free: 9.676 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008457/0.2365, allocations: 0.7416 MB / 480.5 MB, free: 9.059 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006949/0.2372, allocations: 276 kB / 480.8 MB, free: 8.918 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001876/0.2374, allocations: 94.5 kB / 480.9 MB, free: 8.867 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.738e-05/0.2375, allocations: 3.875 kB / 480.9 MB, free: 8.867 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003809/0.2379, allocations: 227 kB / 481.1 MB, free: 8.703 MB / 350.1 MB Notification: Performance of pre-optimization done (n=30): time 1.703e-06/0.2379, allocations: 1.188 kB / 481.1 MB, free: 8.703 MB / 350.1 MB Notification: Performance of matching and sorting (n=30): time 0.0009236/0.2388, allocations: 450.6 kB / 481.6 MB, free: 8.484 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.018e-05/0.2389, allocations: 193.3 kB / 481.8 MB, free: 8.258 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009128/0.2398, allocations: 0.8898 MB / 482.6 MB, free: 7.801 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.873e-05/0.2398, allocations: 35.95 kB / 482.7 MB, free: 7.766 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001646/0.24, allocations: 284 kB / 483 MB, free: 7.52 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.431e-05/0.2401, allocations: 80.08 kB / 483 MB, free: 7.453 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.03e-05/0.2402, allocations: 71.72 kB / 483.1 MB, free: 7.406 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 4.621e-05/0.2402, allocations: 317.8 kB / 483.4 MB, free: 7.094 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001777/0.2404, allocations: 85.27 kB / 483.5 MB, free: 7.051 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002477/0.2406, allocations: 266.7 kB / 483.8 MB, free: 6.793 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004371/0.2411, allocations: 309.1 kB / 484.1 MB, free: 6.559 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.386e-06/0.2411, allocations: 1.156 kB / 484.1 MB, free: 6.559 MB / 350.1 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.0006142/0.2417, allocations: 383.2 kB / 484.4 MB, free: 6.352 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.708e-05/0.2417, allocations: 7.219 kB / 484.4 MB, free: 6.352 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.376e-06/0.2418, allocations: 4.125 kB / 484.5 MB, free: 6.352 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.762e-05/0.2418, allocations: 4.125 kB / 484.5 MB, free: 6.352 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001742/0.242, allocations: 55.16 kB / 484.5 MB, free: 6.336 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.025e-05/0.242, allocations: 6.031 kB / 484.5 MB, free: 6.336 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002239/0.2422, allocations: 44.23 kB / 484.6 MB, free: 6.309 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.272e-05/0.2422, allocations: 12.31 kB / 484.6 MB, free: 6.309 MB / 350.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.000283/0.2425, allocations: 263.8 kB / 484.8 MB, free: 6.113 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.917e-05/0.2426, allocations: 71.05 kB / 484.9 MB, free: 6.074 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001031/0.2427, allocations: 70.56 kB / 485 MB, free: 6.027 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.268e-06/0.2427, allocations: 3.156 kB / 485 MB, free: 6.027 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.823e-06/0.2427, allocations: 1.5 kB / 485 MB, free: 6.027 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.229e-06/0.2428, allocations: 3.984 kB / 485 MB, free: 6.023 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003584/0.2431, allocations: 471.7 kB / 485.4 MB, free: 5.625 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.773e-06/0.2431, allocations: 3.938 kB / 485.4 MB, free: 5.621 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.496e-05/0.2432, allocations: 17.83 kB / 485.5 MB, free: 5.617 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.635e-06/0.2432, allocations: 1.125 kB / 485.5 MB, free: 5.617 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.075e-05/0.2432, allocations: 11.92 kB / 485.5 MB, free: 5.609 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.545e-06/0.2432, allocations: 5.344 kB / 485.5 MB, free: 5.605 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.042e-06/0.2432, allocations: 0 / 485.5 MB, free: 5.605 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005851/0.2438, allocations: 409.6 kB / 485.9 MB, free: 5.375 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.78e-05/0.2439, allocations: 142.5 kB / 486 MB, free: 5.234 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.043e-05/0.244, allocations: 8.125 kB / 486 MB, free: 5.23 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001627/0.2442, allocations: 22.97 kB / 486 MB, free: 5.219 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.874e-05/0.2442, allocations: 26.97 kB / 486.1 MB, free: 5.203 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.183e-05/0.2443, allocations: 15 kB / 486.1 MB, free: 5.199 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0006356/0.2449, allocations: 0.651 MB / 486.7 MB, free: 4.859 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2449, allocations: 0 / 486.7 MB, free: 4.859 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004408/0.2454, allocations: 120.3 kB / 486.9 MB, free: 4.832 MB / 350.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.002149/0.2475, allocations: 1.286 MB / 488.1 MB, free: 3.953 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0005139/0.2481, allocations: 254.7 kB / 488.4 MB, free: 3.848 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.945e-06/0.2481, allocations: 1.75 kB / 488.4 MB, free: 3.848 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002193/0.2483, allocations: 127.5 kB / 488.5 MB, free: 3.793 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006723/0.249, allocations: 168.7 kB / 488.7 MB, free: 3.707 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005616/0.2546, allocations: 5.314 MB / 494 MB, free: 0 / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005932/0.2552, allocations: 0.8937 MB / 494.9 MB, free: 15.08 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002811/0.2555, allocations: 92.48 kB / 495 MB, free: 14.99 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002906/0.2558, allocations: 211.4 kB / 495.2 MB, free: 14.78 MB / 366.1 MB Notification: Performance of SimCode: time 7.21e-07/0.2558, allocations: 0 / 495.2 MB, free: 14.78 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05086/0.3067, allocations: 14.23 MB / 0.4975 GB, free: 0.6953 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.516/8.823, allocations: 11.78 kB / 0.4975 GB, free: 0.6836 MB / 366.1 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/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)