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 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) Using package IndustrialControlSystems with version 1.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/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 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: translateModel(IndustrialControlSystems.Logical.Counter.Examples.countUPandDOWN,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems.Logical.Counter.Examples.countUPandDOWN") translateModel(IndustrialControlSystems.Logical.Counter.Examples.countUPandDOWN,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems.Logical.Counter.Examples.countUPandDOWN") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001016/0.001019, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001206/0.001206, allocations: 189.6 kB / 16.25 MB, free: 6.629 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.448/1.448, allocations: 205.1 MB / 222.1 MB, free: 4.738 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.05582/0.05582, allocations: 10.75 MB / 280.2 MB, free: 10.68 MB / 238.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001343/0.001344, allocations: 71.83 kB / 340 MB, free: 23.69 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08581/0.08717, allocations: 49.01 MB / 389.1 MB, free: 6.621 MB / 286.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Logical.Counter.Examples.countUPandDOWN): time 0.003747/0.09095, allocations: 2.438 MB / 391.5 MB, free: 4.164 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002106/0.09308, allocations: 1.462 MB / 393 MB, free: 2.691 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001579/0.09325, allocations: 7.938 kB / 393 MB, free: 2.684 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001167/0.09444, allocations: 0.6003 MB / 393.6 MB, free: 2.082 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006712/0.09512, allocations: 386.9 kB / 393.9 MB, free: 1.703 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001091/0.09622, allocations: 491.2 kB / 394.4 MB, free: 1.223 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006262/0.09686, allocations: 0.6975 MB / 395.1 MB, free: 0.5234 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001772/0.09705, allocations: 85.05 kB / 395.2 MB, free: 444 kB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002836/0.09734, allocations: 302.8 kB / 395.5 MB, free: 140 kB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002923/0.09764, allocations: 318.8 kB / 395.8 MB, free: 15.82 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 5.501e-05/0.0977, allocations: 36 kB / 395.8 MB, free: 15.79 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002789/0.09799, allocations: 163.8 kB / 396 MB, free: 15.63 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001698/0.09816, allocations: 195.4 kB / 396.2 MB, free: 15.44 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002008/0.09837, allocations: 274.3 kB / 396.5 MB, free: 15.17 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006068/0.09899, allocations: 0.7166 MB / 397.2 MB, free: 14.45 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.027e-06/0.099, allocations: 0 / 397.2 MB, free: 14.45 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.172e-06/0.09901, allocations: 0 / 397.2 MB, free: 14.45 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.904e-06/0.09902, allocations: 0 / 397.2 MB, free: 14.45 MB / 302.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.001339/0.1004, allocations: 1.057 MB / 398.2 MB, free: 13.32 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.476e-05/0.1004, allocations: 15.89 kB / 398.3 MB, free: 13.3 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000109/0.1005, allocations: 72.09 kB / 398.3 MB, free: 13.23 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005834/0.1011, allocations: 0.5122 MB / 398.8 MB, free: 12.68 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.271e-05/0.1011, allocations: 16.69 kB / 398.9 MB, free: 12.67 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.648e-05/0.1012, allocations: 20.12 kB / 398.9 MB, free: 12.65 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004316/0.1016, allocations: 260.3 kB / 399.1 MB, free: 12.38 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.006e-05/0.1016, allocations: 7.938 kB / 399.1 MB, free: 12.37 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.542e-05/0.1017, allocations: 8 kB / 399.1 MB, free: 12.36 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.466e-06/0.1017, allocations: 7.984 kB / 399.1 MB, free: 12.35 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002765/0.102, allocations: 115.9 kB / 399.3 MB, free: 12.24 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009403/0.1029, allocations: 0.7381 MB / 400 MB, free: 11.45 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006798/0.1036, allocations: 270.6 kB / 400.3 MB, free: 11.18 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001885/0.1038, allocations: 96.67 kB / 400.4 MB, free: 11.08 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.977e-05/0.1039, allocations: 7.938 kB / 400.4 MB, free: 11.07 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003763/0.1042, allocations: 228.8 kB / 400.6 MB, free: 10.83 MB / 302.1 MB Notification: Performance of pre-optimization done (n=30): time 1.744e-06/0.1043, allocations: 0 / 400.6 MB, free: 10.83 MB / 302.1 MB Notification: Performance of matching and sorting (n=30): time 0.0008486/0.1051, allocations: 445.3 kB / 401 MB, free: 10.39 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.996e-05/0.1052, allocations: 187.9 kB / 401.2 MB, free: 10.16 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000913/0.1061, allocations: 0.8947 MB / 402.1 MB, free: 9.258 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.46e-05/0.1062, allocations: 37.7 kB / 402.1 MB, free: 9.215 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002026/0.1064, allocations: 285.2 kB / 402.4 MB, free: 8.934 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.645e-05/0.1065, allocations: 82.98 kB / 402.5 MB, free: 8.852 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.243e-05/0.1066, allocations: 69.69 kB / 402.6 MB, free: 8.777 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 9.011e-05/0.1067, allocations: 318 kB / 402.9 MB, free: 8.461 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001751/0.1068, allocations: 87.89 kB / 403 MB, free: 8.375 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002823/0.1071, allocations: 255.6 kB / 403.2 MB, free: 8.055 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004575/0.1076, allocations: 299.7 kB / 403.5 MB, free: 7.719 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.025e-06/0.1076, allocations: 0 / 403.5 MB, free: 7.719 MB / 302.1 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.0005906/0.1082, allocations: 376.4 kB / 403.9 MB, free: 7.344 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.709e-05/0.1082, allocations: 4 kB / 403.9 MB, free: 7.34 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.037e-06/0.1082, allocations: 4 kB / 403.9 MB, free: 7.336 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.912e-05/0.1083, allocations: 7.938 kB / 403.9 MB, free: 7.328 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001741/0.1084, allocations: 56.23 kB / 403.9 MB, free: 7.273 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.347e-05/0.1085, allocations: 11.98 kB / 404 MB, free: 7.262 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002058/0.1087, allocations: 39.67 kB / 404 MB, free: 7.223 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.323e-05/0.1087, allocations: 16 kB / 404 MB, free: 7.207 MB / 302.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.0003268/0.109, allocations: 270.8 kB / 404.3 MB, free: 6.934 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.821e-05/0.1091, allocations: 71.09 kB / 404.3 MB, free: 6.863 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001038/0.1093, allocations: 70.48 kB / 404.4 MB, free: 6.789 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.459e-06/0.1093, allocations: 4 kB / 404.4 MB, free: 6.785 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.859e-06/0.1093, allocations: 0 / 404.4 MB, free: 6.785 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.388e-06/0.1093, allocations: 0 / 404.4 MB, free: 6.785 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004093/0.1097, allocations: 473.1 kB / 404.9 MB, free: 6.273 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.843e-06/0.1097, allocations: 0 / 404.9 MB, free: 6.273 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.101e-05/0.1098, allocations: 12 kB / 404.9 MB, free: 6.262 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.635e-06/0.1098, allocations: 3.938 kB / 404.9 MB, free: 6.258 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.402e-05/0.1098, allocations: 15.98 kB / 404.9 MB, free: 6.242 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.577e-06/0.1098, allocations: 4 kB / 404.9 MB, free: 6.238 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.655e-06/0.1098, allocations: 0 / 404.9 MB, free: 6.238 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006057/0.1104, allocations: 396 kB / 405.3 MB, free: 5.832 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001119/0.1106, allocations: 136.4 kB / 405.4 MB, free: 5.68 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.453e-05/0.1107, allocations: 19.92 kB / 405.5 MB, free: 5.66 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001629/0.1108, allocations: 23.98 kB / 405.5 MB, free: 5.637 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.101e-05/0.1109, allocations: 23.97 kB / 405.5 MB, free: 5.613 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.834e-05/0.1109, allocations: 11.98 kB / 405.5 MB, free: 5.602 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0006885/0.1116, allocations: 0.6513 MB / 406.2 MB, free: 4.957 MB / 302.1 MB Notification: Performance of sort global known variables: time 3.31e-07/0.1116, allocations: 0 / 406.2 MB, free: 4.957 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004593/0.1121, allocations: 119.8 kB / 406.3 MB, free: 4.84 MB / 302.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.0009948/0.1131, allocations: 469.1 kB / 406.7 MB, free: 4.473 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0005914/0.1137, allocations: 269.3 kB / 407 MB, free: 4.211 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.045e-05/0.1137, allocations: 8 kB / 407 MB, free: 4.203 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002223/0.114, allocations: 119.8 kB / 407.1 MB, free: 4.086 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000691/0.1147, allocations: 180.9 kB / 407.3 MB, free: 3.906 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001258/0.1159, allocations: 1.116 MB / 408.4 MB, free: 2.766 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003671/0.1163, allocations: 0.9014 MB / 409.3 MB, free: 1.836 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.000231/0.1166, allocations: 92.5 kB / 409.4 MB, free: 1.742 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001025/0.1167, allocations: 51.42 kB / 409.5 MB, free: 1.695 MB / 302.1 MB Notification: Performance of SimCode: time 4.91e-07/0.1167, allocations: 0 / 409.5 MB, free: 1.695 MB / 302.1 MB Notification: Performance of Templates: time 0.01364/0.1303, allocations: 7.707 MB / 417.2 MB, free: 9.988 MB / 318.1 MB make -j1 -f IndustrialControlSystems_IndustrialControlSystems.Logical.Counter.Examples.countUPandDOWN.makefile (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 & ./IndustrialControlSystems_IndustrialControlSystems.Logical.Counter.Examples.countUPandDOWN -abortSlowSimulation -alarm=480 -lv LOG_STATS > IndustrialControlSystems_IndustrialControlSystems.Logical.Counter.Examples.countUPandDOWN.pipe 2>&1)