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.001065/0.001065, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001354/0.001354, allocations: 195.4 kB / 16.14 MB, free: 6.711 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.583/1.583, allocations: 205.1 MB / 222 MB, free: 4.762 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.05356/0.05356, allocations: 10.74 MB / 280.1 MB, free: 10.72 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.001312/0.001312, allocations: 67.91 kB / 339.9 MB, free: 23.8 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1243/0.1257, allocations: 49.02 MB / 388.9 MB, free: 6.715 MB / 286.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Logical.Counter.Examples.countUPandDOWN): time 0.004394/0.1301, allocations: 2.426 MB / 391.3 MB, free: 4.27 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.00281/0.1329, allocations: 1.478 MB / 392.8 MB, free: 2.781 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001698/0.1331, allocations: 7.938 kB / 392.8 MB, free: 2.773 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001495/0.1347, allocations: 0.5808 MB / 393.4 MB, free: 2.191 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006947/0.1354, allocations: 378.9 kB / 393.7 MB, free: 1.82 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001208/0.1366, allocations: 483.2 kB / 394.2 MB, free: 1.348 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006348/0.1372, allocations: 0.6818 MB / 394.9 MB, free: 0.6641 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001815/0.1374, allocations: 85.05 kB / 395 MB, free: 0.5742 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002586/0.1377, allocations: 262.8 kB / 395.2 MB, free: 324 kB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000303/0.138, allocations: 298.7 kB / 395.5 MB, free: 24 kB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 5.158e-05/0.1381, allocations: 16 kB / 395.5 MB, free: 8 kB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000354/0.1384, allocations: 143.8 kB / 395.7 MB, free: 15.87 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001778/0.1386, allocations: 175.5 kB / 395.9 MB, free: 15.7 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002263/0.1388, allocations: 254.3 kB / 396.1 MB, free: 15.45 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007836/0.1396, allocations: 0.7009 MB / 396.8 MB, free: 14.74 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.052e-06/0.1397, allocations: 0 / 396.8 MB, free: 14.74 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.263e-06/0.1397, allocations: 0 / 396.8 MB, free: 14.74 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.674e-06/0.1397, allocations: 0 / 396.8 MB, free: 14.74 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.001629/0.1413, allocations: 1.053 MB / 397.9 MB, free: 13.62 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.488e-05/0.1414, allocations: 15.97 kB / 397.9 MB, free: 13.6 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000131/0.1415, allocations: 68.09 kB / 397.9 MB, free: 13.54 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007102/0.1422, allocations: 0.5161 MB / 398.5 MB, free: 12.98 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.372e-05/0.1422, allocations: 20.69 kB / 398.5 MB, free: 12.96 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.523e-05/0.1423, allocations: 20.12 kB / 398.5 MB, free: 12.94 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005798/0.1429, allocations: 256.3 kB / 398.7 MB, free: 12.67 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.123e-05/0.1429, allocations: 0 / 398.7 MB, free: 12.67 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.09e-05/0.1429, allocations: 11.98 kB / 398.8 MB, free: 12.66 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.526e-05/0.143, allocations: 4 kB / 398.8 MB, free: 12.66 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002797/0.1432, allocations: 115.9 kB / 398.9 MB, free: 12.54 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001167/0.1444, allocations: 0.7342 MB / 399.6 MB, free: 11.76 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007553/0.1452, allocations: 278.5 kB / 399.9 MB, free: 11.48 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002051/0.1454, allocations: 96.67 kB / 400 MB, free: 11.38 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.756e-05/0.1455, allocations: 3.938 kB / 400 MB, free: 11.38 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000497/0.146, allocations: 232.8 kB / 400.2 MB, free: 11.13 MB / 302.1 MB Notification: Performance of pre-optimization done (n=30): time 1.834e-06/0.146, allocations: 0 / 400.2 MB, free: 11.13 MB / 302.1 MB Notification: Performance of matching and sorting (n=30): time 0.0008739/0.1469, allocations: 445.3 kB / 400.6 MB, free: 10.69 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001115/0.147, allocations: 196.5 kB / 400.8 MB, free: 10.45 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009333/0.1479, allocations: 0.8909 MB / 401.7 MB, free: 9.555 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.409e-05/0.148, allocations: 33.7 kB / 401.8 MB, free: 9.516 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003007/0.1483, allocations: 288.5 kB / 402 MB, free: 9.23 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.084e-05/0.1483, allocations: 75 kB / 402.1 MB, free: 9.156 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.517e-05/0.1484, allocations: 73.69 kB / 402.2 MB, free: 9.078 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001184/0.1486, allocations: 314 kB / 402.5 MB, free: 8.766 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001892/0.1488, allocations: 87.95 kB / 402.6 MB, free: 8.68 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003104/0.1491, allocations: 259.6 kB / 402.8 MB, free: 8.355 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005132/0.1496, allocations: 311.7 kB / 403.1 MB, free: 8.008 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.587e-06/0.1496, allocations: 0 / 403.1 MB, free: 8.008 MB / 302.1 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.000661/0.1503, allocations: 372.8 kB / 403.5 MB, free: 7.637 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.527e-05/0.1503, allocations: 4 kB / 403.5 MB, free: 7.633 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.135e-05/0.1503, allocations: 7.984 kB / 403.5 MB, free: 7.625 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.408e-05/0.1504, allocations: 4 kB / 403.5 MB, free: 7.621 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001824/0.1506, allocations: 55.84 kB / 403.6 MB, free: 7.566 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.39e-05/0.1506, allocations: 8 kB / 403.6 MB, free: 7.559 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002272/0.1508, allocations: 43.67 kB / 403.6 MB, free: 7.516 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.434e-05/0.1509, allocations: 12 kB / 403.6 MB, free: 7.504 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.0003626/0.1512, allocations: 274.9 kB / 403.9 MB, free: 7.227 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001043/0.1513, allocations: 75.03 kB / 404 MB, free: 7.152 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001126/0.1515, allocations: 66.5 kB / 404 MB, free: 7.082 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.089e-06/0.1515, allocations: 7.938 kB / 404 MB, free: 7.074 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.711e-06/0.1515, allocations: 0 / 404 MB, free: 7.074 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.71e-06/0.1515, allocations: 3.984 kB / 404 MB, free: 7.07 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004297/0.1519, allocations: 469.1 kB / 404.5 MB, free: 6.562 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.653e-06/0.1519, allocations: 0 / 404.5 MB, free: 6.562 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.424e-05/0.152, allocations: 15.98 kB / 404.5 MB, free: 6.547 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.214e-06/0.152, allocations: 0 / 404.5 MB, free: 6.547 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.21e-05/0.152, allocations: 11.98 kB / 404.5 MB, free: 6.535 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.663e-06/0.152, allocations: 4 kB / 404.5 MB, free: 6.531 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.634e-06/0.1521, allocations: 0 / 404.5 MB, free: 6.531 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006541/0.1527, allocations: 400 kB / 404.9 MB, free: 6.121 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001247/0.1528, allocations: 140.3 kB / 405.1 MB, free: 5.965 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.434e-05/0.1529, allocations: 8 kB / 405.1 MB, free: 5.957 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001654/0.1531, allocations: 23.97 kB / 405.1 MB, free: 5.934 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.658e-05/0.1532, allocations: 23.97 kB / 405.1 MB, free: 5.91 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.963e-05/0.1532, allocations: 8 kB / 405.1 MB, free: 5.902 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0007302/0.154, allocations: 0.6552 MB / 405.8 MB, free: 5.254 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.154, allocations: 0 / 405.8 MB, free: 5.254 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004557/0.1544, allocations: 123.8 kB / 405.9 MB, free: 5.133 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.001047/0.1555, allocations: 469.4 kB / 406.4 MB, free: 4.762 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0005264/0.156, allocations: 257.5 kB / 406.6 MB, free: 4.512 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.519e-05/0.1561, allocations: 128 / 406.6 MB, free: 4.512 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002369/0.1563, allocations: 127.9 kB / 406.7 MB, free: 4.387 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006713/0.157, allocations: 155.3 kB / 406.9 MB, free: 4.23 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001761/0.1588, allocations: 1.127 MB / 408 MB, free: 3.082 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004278/0.1592, allocations: 0.894 MB / 408.9 MB, free: 2.16 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002744/0.1595, allocations: 100.5 kB / 409 MB, free: 2.059 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001067/0.1596, allocations: 51.42 kB / 409.1 MB, free: 2.012 MB / 302.1 MB Notification: Performance of SimCode: time 4.1e-07/0.1596, allocations: 0 / 409.1 MB, free: 2.012 MB / 302.1 MB Notification: Performance of Templates: time 0.01345/0.1731, allocations: 7.423 MB / 416.5 MB, free: 10.58 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)