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.006444/0.006444, allocations: 97.38 kB / 15.73 MB, free: 5.949 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.00167/0.00167, allocations: 197.1 kB / 16.68 MB, free: 5.871 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.38/1.38, allocations: 222.9 MB / 240.4 MB, free: 15.08 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 2.0.0-master/package.mo): time 0.06538/0.06538, allocations: 11.22 MB / 301.7 MB, free: 4.02 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001873/0.001873, allocations: 68.45 kB / 417.3 MB, free: 19.11 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08868/0.09057, allocations: 51.98 MB / 469.3 MB, free: 15.1 MB / 350.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Logical.Counter.Examples.countUPandDOWN): time 0.003859/0.09446, allocations: 2.405 MB / 471.7 MB, free: 12.68 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002749/0.09724, allocations: 1.57 MB / 473.3 MB, free: 11.11 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001639/0.09742, allocations: 7.938 kB / 473.3 MB, free: 11.1 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00135/0.09882, allocations: 0.6107 MB / 473.9 MB, free: 10.49 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007929/0.09962, allocations: 410.7 kB / 474.3 MB, free: 10.09 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001345/0.101, allocations: 0.562 MB / 474.9 MB, free: 9.535 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007906/0.1018, allocations: 0.6936 MB / 475.6 MB, free: 8.84 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002045/0.102, allocations: 93.03 kB / 475.7 MB, free: 8.746 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003518/0.1024, allocations: 287 kB / 475.9 MB, free: 8.465 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003806/0.1027, allocations: 310.8 kB / 476.3 MB, free: 8.16 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 7.318e-05/0.1028, allocations: 36 kB / 476.3 MB, free: 8.125 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000339/0.1032, allocations: 179.8 kB / 476.5 MB, free: 7.949 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002127/0.1034, allocations: 187.4 kB / 476.6 MB, free: 7.766 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002617/0.1037, allocations: 262.4 kB / 476.9 MB, free: 7.508 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008477/0.1045, allocations: 0.7354 MB / 477.6 MB, free: 6.77 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.382e-06/0.1045, allocations: 3.984 kB / 477.6 MB, free: 6.766 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.453e-06/0.1045, allocations: 4 kB / 477.6 MB, free: 6.762 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.469e-05/0.1046, allocations: 0 / 477.6 MB, free: 6.762 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.001583/0.1061, allocations: 1.073 MB / 478.7 MB, free: 5.605 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.163e-05/0.1062, allocations: 19.83 kB / 478.7 MB, free: 5.586 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.224e-05/0.1063, allocations: 54.72 kB / 478.8 MB, free: 5.523 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000119/0.1064, allocations: 72.47 kB / 478.9 MB, free: 5.453 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007385/0.1071, allocations: 0.5323 MB / 479.4 MB, free: 4.879 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.05e-05/0.1072, allocations: 20.69 kB / 479.4 MB, free: 4.859 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.84e-05/0.1072, allocations: 23.92 kB / 479.4 MB, free: 4.836 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004794/0.1077, allocations: 240.8 kB / 479.7 MB, free: 4.582 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.025e-05/0.1077, allocations: 0 / 479.7 MB, free: 4.582 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.818e-05/0.1078, allocations: 15.98 kB / 479.7 MB, free: 4.566 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.036e-05/0.1078, allocations: 4 kB / 479.7 MB, free: 4.562 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002969/0.1081, allocations: 119.8 kB / 479.8 MB, free: 4.445 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001084/0.1092, allocations: 0.7266 MB / 480.5 MB, free: 3.668 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007715/0.11, allocations: 274.6 kB / 480.8 MB, free: 3.391 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002173/0.1102, allocations: 92.75 kB / 480.9 MB, free: 3.297 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.89e-05/0.1102, allocations: 8.625 kB / 480.9 MB, free: 3.289 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004403/0.1107, allocations: 221 kB / 481.1 MB, free: 3.055 MB / 350.1 MB Notification: Performance of pre-optimization done (n=30): time 1.683e-06/0.1107, allocations: 3.938 kB / 481.1 MB, free: 3.051 MB / 350.1 MB Notification: Performance of matching and sorting (n=30): time 0.0009581/0.1117, allocations: 453.8 kB / 481.6 MB, free: 2.602 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000126/0.1118, allocations: 191.9 kB / 481.8 MB, free: 2.371 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001095/0.1129, allocations: 0.8909 MB / 482.6 MB, free: 1.473 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.158e-05/0.113, allocations: 41.69 kB / 482.7 MB, free: 1.426 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002585/0.1132, allocations: 280.6 kB / 483 MB, free: 1.148 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.057e-05/0.1133, allocations: 83.41 kB / 483 MB, free: 1.066 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000111/0.1134, allocations: 69.69 kB / 483.1 MB, free: 0.9922 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001374/0.1136, allocations: 318 kB / 483.4 MB, free: 0.6758 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001992/0.1138, allocations: 83.95 kB / 483.5 MB, free: 0.5938 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003565/0.1141, allocations: 263.2 kB / 483.8 MB, free: 272 kB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000567/0.1147, allocations: 311.7 kB / 484.1 MB, free: 15.92 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.685e-06/0.1147, allocations: 0 / 484.1 MB, free: 15.92 MB / 366.1 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.0006938/0.1154, allocations: 373 kB / 484.4 MB, free: 15.55 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.779e-05/0.1155, allocations: 8 kB / 484.4 MB, free: 15.54 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.215e-06/0.1155, allocations: 4.25 kB / 484.4 MB, free: 15.54 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.707e-05/0.1155, allocations: 4 kB / 484.4 MB, free: 15.53 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000196/0.1157, allocations: 63.84 kB / 484.5 MB, free: 15.47 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.538e-06/0.1157, allocations: 4 kB / 484.5 MB, free: 15.46 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002238/0.1159, allocations: 39.83 kB / 484.5 MB, free: 15.43 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.262e-05/0.116, allocations: 12 kB / 484.6 MB, free: 15.41 MB / 366.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.0003448/0.1163, allocations: 275.5 kB / 484.8 MB, free: 15.14 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.667e-05/0.1164, allocations: 67.56 kB / 484.9 MB, free: 15.07 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001206/0.1166, allocations: 70.5 kB / 485 MB, free: 15 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.276e-06/0.1166, allocations: 0 / 485 MB, free: 15 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.129e-06/0.1166, allocations: 8.094 kB / 485 MB, free: 14.99 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.118e-06/0.1166, allocations: 3.938 kB / 485 MB, free: 14.98 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004988/0.1171, allocations: 473.1 kB / 485.4 MB, free: 14.47 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.566e-06/0.1171, allocations: 4 kB / 485.4 MB, free: 14.47 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.356e-05/0.1172, allocations: 19.98 kB / 485.5 MB, free: 14.45 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.305e-06/0.1172, allocations: 3.938 kB / 485.5 MB, free: 14.45 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.16e-05/0.1172, allocations: 8 kB / 485.5 MB, free: 14.44 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.853e-06/0.1172, allocations: 0 / 485.5 MB, free: 14.44 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.126e-06/0.1172, allocations: 4 kB / 485.5 MB, free: 14.43 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007053/0.1179, allocations: 404.7 kB / 485.9 MB, free: 14.02 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001346/0.1181, allocations: 144.6 kB / 486 MB, free: 13.86 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.777e-05/0.1182, allocations: 15.98 kB / 486 MB, free: 13.84 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000172/0.1184, allocations: 19.98 kB / 486 MB, free: 13.82 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.17e-05/0.1184, allocations: 19.97 kB / 486.1 MB, free: 13.8 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.437e-05/0.1185, allocations: 19.98 kB / 486.1 MB, free: 13.79 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0007979/0.1193, allocations: 0.6474 MB / 486.7 MB, free: 13.14 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1193, allocations: 4 kB / 486.7 MB, free: 13.14 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004289/0.1197, allocations: 115.9 kB / 486.9 MB, free: 13.02 MB / 366.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.002493/0.1222, allocations: 1.306 MB / 488.2 MB, free: 11.84 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0005946/0.1228, allocations: 251.7 kB / 488.4 MB, free: 11.6 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.745e-06/0.1228, allocations: 0 / 488.4 MB, free: 11.6 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002639/0.1231, allocations: 132.4 kB / 488.5 MB, free: 11.47 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007087/0.1238, allocations: 166.8 kB / 488.7 MB, free: 11.32 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007075/0.1309, allocations: 5.289 MB / 494 MB, free: 5.859 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006023/0.1315, allocations: 0.8976 MB / 494.9 MB, free: 4.938 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002662/0.1318, allocations: 88.5 kB / 495 MB, free: 4.848 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003052/0.1321, allocations: 211.4 kB / 495.2 MB, free: 4.641 MB / 366.1 MB Notification: Performance of SimCode: time 7.32e-07/0.1321, allocations: 0 / 495.2 MB, free: 4.641 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03968/0.1718, allocations: 14.24 MB / 0.4975 GB, free: 6.586 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.854/9.026, allocations: 10.98 kB / 0.4975 GB, free: 6.578 MB / 382.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 & python3 -m fmpy simulate --output-file IndustrialControlSystems_IndustrialControlSystems.Logical.Counter.Examples.countUPandDOWN_res.csv --start-time 0 --stop-time 60 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.024 IndustrialControlSystems_IndustrialControlSystems_Logical_Counter_Examples_countUPandDOWN.fmu > IndustrialControlSystems_IndustrialControlSystems.Logical.Counter.Examples.countUPandDOWN.pipe 2>&1)