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.0009221/0.0009219, allocations: 91.06 kB / 15.06 MB, free: 1.098 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.001021/0.001021, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.379/1.379, allocations: 205.4 MB / 222.1 MB, free: 5.629 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.05349/0.05349, allocations: 10.74 MB / 281.1 MB, free: 10.53 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.0004813/0.0004813, allocations: 22.97 kB / 341.6 MB, free: 23.83 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09657/0.09706, allocations: 50 MB / 391.6 MB, free: 5.762 MB / 286.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Logical.Counter.Examples.countUPandDOWN): time 0.002646/0.09976, allocations: 1.995 MB / 393.6 MB, free: 3.754 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002145/0.1019, allocations: 1.405 MB / 395 MB, free: 2.34 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001703/0.1021, allocations: 7.938 kB / 395 MB, free: 2.332 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001255/0.1034, allocations: 0.5574 MB / 395.6 MB, free: 1.773 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008868/0.1043, allocations: 359 kB / 396 MB, free: 1.422 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00137/0.1057, allocations: 447.2 kB / 396.4 MB, free: 0.9844 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008278/0.1065, allocations: 0.6038 MB / 397 MB, free: 388 kB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002106/0.1067, allocations: 89.16 kB / 397.1 MB, free: 292 kB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003943/0.1071, allocations: 250.9 kB / 397.3 MB, free: 40 kB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003388/0.1075, allocations: 290.9 kB / 397.6 MB, free: 15.75 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 4.379e-05/0.1075, allocations: 12 kB / 397.6 MB, free: 15.74 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00032/0.1078, allocations: 131.8 kB / 397.7 MB, free: 15.61 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002369/0.1081, allocations: 167.5 kB / 397.9 MB, free: 15.45 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001027/0.1082, allocations: 117.4 kB / 398 MB, free: 15.33 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000552/0.1088, allocations: 0.538 MB / 398.6 MB, free: 14.79 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.34e-06/0.1088, allocations: 0 / 398.6 MB, free: 14.79 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.903e-06/0.1088, allocations: 0 / 398.6 MB, free: 14.79 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.801e-06/0.1088, allocations: 4 kB / 398.6 MB, free: 14.79 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.001292/0.1101, allocations: 0.9719 MB / 399.5 MB, free: 13.74 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.186e-05/0.1101, allocations: 8.031 kB / 399.5 MB, free: 13.73 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001051/0.1103, allocations: 67.16 kB / 399.6 MB, free: 13.66 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007466/0.111, allocations: 499.8 kB / 400.1 MB, free: 13.14 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.005e-05/0.111, allocations: 16.33 kB / 400.1 MB, free: 13.12 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.482e-05/0.1111, allocations: 16 kB / 400.1 MB, free: 13.11 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004667/0.1116, allocations: 260.6 kB / 400.4 MB, free: 12.83 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.036e-05/0.1116, allocations: 0 / 400.4 MB, free: 12.83 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.145e-05/0.1116, allocations: 11.95 kB / 400.4 MB, free: 12.82 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.324e-06/0.1116, allocations: 4 kB / 400.4 MB, free: 12.82 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002636/0.1119, allocations: 119.9 kB / 400.5 MB, free: 12.7 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001002/0.1129, allocations: 0.7419 MB / 401.3 MB, free: 11.91 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006796/0.1136, allocations: 282.5 kB / 401.5 MB, free: 11.62 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000189/0.1138, allocations: 100.7 kB / 401.6 MB, free: 11.52 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.269e-05/0.1139, allocations: 4 kB / 401.6 MB, free: 11.52 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004245/0.1143, allocations: 217 kB / 401.9 MB, free: 11.29 MB / 302.1 MB Notification: Performance of pre-optimization done (n=30): time 1.613e-06/0.1143, allocations: 4 kB / 401.9 MB, free: 11.28 MB / 302.1 MB Notification: Performance of matching and sorting (n=30): time 0.000899/0.1152, allocations: 449.1 kB / 402.3 MB, free: 10.84 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000116/0.1153, allocations: 191.9 kB / 402.5 MB, free: 10.61 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001056/0.1164, allocations: 0.8869 MB / 403.4 MB, free: 9.711 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.298e-05/0.1164, allocations: 37.7 kB / 403.4 MB, free: 9.668 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002494/0.1167, allocations: 281.2 kB / 403.7 MB, free: 9.391 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.711e-05/0.1168, allocations: 79 kB / 403.8 MB, free: 9.312 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.53e-05/0.1168, allocations: 12 kB / 403.8 MB, free: 9.301 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.000132/0.1169, allocations: 318 kB / 404.1 MB, free: 8.984 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001717/0.1171, allocations: 75.97 kB / 404.2 MB, free: 8.91 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000315/0.1174, allocations: 259.6 kB / 404.4 MB, free: 8.586 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002322/0.1177, allocations: 115.8 kB / 404.5 MB, free: 8.473 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.146e-06/0.1177, allocations: 0 / 404.5 MB, free: 8.473 MB / 302.1 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.000674/0.1184, allocations: 364.5 kB / 404.9 MB, free: 8.109 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.835e-05/0.1184, allocations: 4.094 kB / 404.9 MB, free: 8.105 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.798e-06/0.1184, allocations: 7.938 kB / 404.9 MB, free: 8.098 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.001e-05/0.1184, allocations: 8 kB / 404.9 MB, free: 8.09 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001764/0.1186, allocations: 51.91 kB / 404.9 MB, free: 8.039 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.165e-05/0.1187, allocations: 12.25 kB / 405 MB, free: 8.027 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002093/0.1189, allocations: 55.7 kB / 405 MB, free: 7.973 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.313e-05/0.1189, allocations: 12 kB / 405 MB, free: 7.961 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,$whenCondition5,$PRE.reset.combiTimeTable.nextTimeEvent,$whenCondition4,$PRE.set.combiTimeTable.nextTimeEvent,$whenCondition3,$PRE.countDOWN.combiTimeTable.nextTimeEvent,$whenCondition2,$PRE.countUP.combiTimeTable.nextTimeEvent,$whenCondition1,reset.y,reset.combiTimeTable.nextTimeEvent,$PRE.reset.combiTimeTable.nextTimeEventScaled,reset.combiTimeTable.nextTimeEventScaled,set.y,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 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003269/0.1192, allocations: 266.9 kB / 405.3 MB, free: 7.691 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.822e-05/0.1193, allocations: 63.25 kB / 405.3 MB, free: 7.629 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001098/0.1194, allocations: 66.5 kB / 405.4 MB, free: 7.559 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.561e-06/0.1195, allocations: 11.92 kB / 405.4 MB, free: 7.547 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.931e-06/0.1195, allocations: 0 / 405.4 MB, free: 7.547 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.298e-06/0.1195, allocations: 0 / 405.4 MB, free: 7.547 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004643/0.1199, allocations: 477 kB / 405.9 MB, free: 7.031 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.442e-06/0.12, allocations: 0 / 405.9 MB, free: 7.031 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.818e-05/0.12, allocations: 15.94 kB / 405.9 MB, free: 7.016 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.268e-06/0.12, allocations: 4 kB / 405.9 MB, free: 7.012 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.191e-05/0.1201, allocations: 15.98 kB / 405.9 MB, free: 6.996 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.874e-06/0.1201, allocations: 0 / 405.9 MB, free: 6.996 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.112e-06/0.1201, allocations: 0 / 405.9 MB, free: 6.996 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006376/0.1207, allocations: 388.1 kB / 406.3 MB, free: 6.598 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001407/0.1209, allocations: 160.2 kB / 406.5 MB, free: 6.422 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.832e-05/0.1209, allocations: 8 kB / 406.5 MB, free: 6.414 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001605/0.1211, allocations: 27.97 kB / 406.5 MB, free: 6.387 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.381e-05/0.1212, allocations: 23.97 kB / 406.5 MB, free: 6.363 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.547e-05/0.1212, allocations: 23.98 kB / 406.5 MB, free: 6.34 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0008664/0.1221, allocations: 0.6396 MB / 407.2 MB, free: 5.707 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.4e-07/0.1221, allocations: 0 / 407.2 MB, free: 5.707 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004517/0.1226, allocations: 119.8 kB / 407.3 MB, free: 5.59 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 (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.001069/0.1237, allocations: 479.5 kB / 407.8 MB, free: 5.223 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0005085/0.1242, allocations: 253 kB / 408 MB, free: 4.977 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.605e-06/0.1242, allocations: 0 / 408 MB, free: 4.977 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002338/0.1244, allocations: 119.9 kB / 408.1 MB, free: 4.859 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006159/0.1251, allocations: 152 kB / 408.3 MB, free: 4.707 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001492/0.1266, allocations: 1.073 MB / 409.4 MB, free: 3.613 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004795/0.127, allocations: 0.894 MB / 410.2 MB, free: 2.691 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002593/0.1273, allocations: 92.5 kB / 410.3 MB, free: 2.594 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001125/0.1274, allocations: 47.42 kB / 410.4 MB, free: 2.551 MB / 302.1 MB Notification: Performance of SimCode: time 2.2e-07/0.1274, allocations: 0 / 410.4 MB, free: 2.551 MB / 302.1 MB Notification: Performance of Templates: time 0.01256/0.14, allocations: 7.125 MB / 417.5 MB, free: 11.42 MB / 318.1 MB make -j1 -f IndustrialControlSystems_IndustrialControlSystems.Logical.Counter.Examples.countUPandDOWN.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: