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.0008224/0.0008224, allocations: 97.64 kB / 15.36 MB, free: 0.7344 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.006187/0.006188, allocations: 170.1 kB / 16.27 MB, free: 6.66 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.654/1.654, allocations: 205.4 MB / 222.5 MB, free: 5.566 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.05571/0.05571, allocations: 10.74 MB / 281.5 MB, free: 10.46 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.0005396/0.0005396, allocations: 19.66 kB / 342.2 MB, free: 23.49 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1217/0.1223, allocations: 50.02 MB / 392.3 MB, free: 5.41 MB / 286.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Logical.Counter.Examples.countUPandDOWN): time 0.003247/0.1256, allocations: 2.068 MB / 394.3 MB, free: 3.328 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002908/0.1285, allocations: 1.455 MB / 395.8 MB, free: 1.863 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000407/0.129, allocations: 3.938 kB / 395.8 MB, free: 1.859 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001488/0.1305, allocations: 0.5808 MB / 396.4 MB, free: 1.277 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001104/0.1316, allocations: 378.9 kB / 396.7 MB, free: 0.9062 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00146/0.1331, allocations: 487.2 kB / 397.2 MB, free: 440 kB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.001047/0.1341, allocations: 0.6818 MB / 397.9 MB, free: 15.75 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002334/0.1344, allocations: 85.05 kB / 398 MB, free: 15.66 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005118/0.1349, allocations: 250.9 kB / 398.2 MB, free: 15.41 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004539/0.1354, allocations: 286.8 kB / 398.5 MB, free: 15.13 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 7.304e-05/0.1354, allocations: 12 kB / 398.5 MB, free: 15.12 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003618/0.1358, allocations: 139.8 kB / 398.6 MB, free: 14.98 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002002/0.136, allocations: 175.3 kB / 398.8 MB, free: 14.81 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002915/0.1363, allocations: 260.1 kB / 399.1 MB, free: 14.55 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008343/0.1372, allocations: 0.693 MB / 399.8 MB, free: 13.85 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.818e-06/0.1372, allocations: 0 / 399.8 MB, free: 13.85 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.984e-06/0.1372, allocations: 0 / 399.8 MB, free: 13.85 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.819e-05/0.1372, allocations: 0 / 399.8 MB, free: 13.85 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.001786/0.139, allocations: 0.9492 MB / 400.7 MB, free: 12.82 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.454e-05/0.1391, allocations: 8.031 kB / 400.7 MB, free: 12.82 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001865/0.1393, allocations: 72.03 kB / 400.8 MB, free: 12.75 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008182/0.1401, allocations: 0.52 MB / 401.3 MB, free: 12.19 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.605e-05/0.1402, allocations: 16.7 kB / 401.3 MB, free: 12.17 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.145e-05/0.1402, allocations: 24.11 kB / 401.4 MB, free: 12.15 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004895/0.1407, allocations: 252.7 kB / 401.6 MB, free: 11.88 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.596e-06/0.1407, allocations: 0 / 401.6 MB, free: 11.88 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.703e-05/0.1408, allocations: 15.92 kB / 401.6 MB, free: 11.87 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.556e-06/0.1408, allocations: 4 kB / 401.6 MB, free: 11.86 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002907/0.1411, allocations: 119.9 kB / 401.7 MB, free: 11.75 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001299/0.1424, allocations: 0.7459 MB / 402.5 MB, free: 10.95 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00078/0.1432, allocations: 278.6 kB / 402.8 MB, free: 10.67 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002113/0.1434, allocations: 104.7 kB / 402.9 MB, free: 10.56 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.659e-05/0.1434, allocations: 7.938 kB / 402.9 MB, free: 10.55 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000462/0.1439, allocations: 213.5 kB / 403.1 MB, free: 10.33 MB / 302.1 MB Notification: Performance of pre-optimization done (n=30): time 1.673e-06/0.1439, allocations: 0 / 403.1 MB, free: 10.33 MB / 302.1 MB Notification: Performance of matching and sorting (n=30): time 0.001048/0.145, allocations: 461.2 kB / 403.5 MB, free: 9.871 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001581/0.1452, allocations: 187.9 kB / 403.7 MB, free: 9.645 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001245/0.1464, allocations: 0.887 MB / 404.6 MB, free: 8.75 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.635e-05/0.1465, allocations: 41.69 kB / 404.6 MB, free: 8.703 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002745/0.1468, allocations: 284.5 kB / 404.9 MB, free: 8.422 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001033/0.1469, allocations: 75.08 kB / 405 MB, free: 8.348 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.362e-05/0.147, allocations: 45.69 kB / 405 MB, free: 8.297 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001541/0.1471, allocations: 325.9 kB / 405.3 MB, free: 7.973 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000209/0.1473, allocations: 83.95 kB / 405.4 MB, free: 7.891 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003334/0.1477, allocations: 255.7 kB / 405.7 MB, free: 7.57 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005936/0.1483, allocations: 307.6 kB / 406 MB, free: 7.227 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.322e-06/0.1483, allocations: 0 / 406 MB, free: 7.227 MB / 302.1 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.0007334/0.149, allocations: 372.5 kB / 406.3 MB, free: 6.855 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.775e-05/0.1491, allocations: 7.938 kB / 406.3 MB, free: 6.848 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.17e-05/0.1491, allocations: 4 kB / 406.4 MB, free: 6.844 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.989e-05/0.1491, allocations: 4 kB / 406.4 MB, free: 6.84 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002023/0.1493, allocations: 55.91 kB / 406.4 MB, free: 6.785 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.304e-05/0.1493, allocations: 4 kB / 406.4 MB, free: 6.781 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002806/0.1496, allocations: 55.88 kB / 406.5 MB, free: 6.727 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.664e-05/0.1497, allocations: 16 kB / 406.5 MB, free: 6.711 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.0003963/0.1501, allocations: 262.8 kB / 406.7 MB, free: 6.445 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001096/0.1502, allocations: 71.09 kB / 406.8 MB, free: 6.375 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002681/0.1505, allocations: 74.48 kB / 406.9 MB, free: 6.297 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.462e-06/0.1505, allocations: 4 kB / 406.9 MB, free: 6.293 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.787e-06/0.1505, allocations: 0 / 406.9 MB, free: 6.293 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.15e-06/0.1505, allocations: 0 / 406.9 MB, free: 6.293 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005353/0.151, allocations: 469.1 kB / 407.3 MB, free: 5.785 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.126e-06/0.1511, allocations: 0 / 407.3 MB, free: 5.785 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.816e-05/0.1511, allocations: 12 kB / 407.4 MB, free: 5.773 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.697e-06/0.1511, allocations: 0 / 407.4 MB, free: 5.773 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.543e-05/0.1512, allocations: 11.98 kB / 407.4 MB, free: 5.762 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.624e-06/0.1512, allocations: 4 kB / 407.4 MB, free: 5.758 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.004e-06/0.1512, allocations: 7.969 kB / 407.4 MB, free: 5.75 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007496/0.1519, allocations: 400.1 kB / 407.8 MB, free: 5.34 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001934/0.1522, allocations: 156.2 kB / 407.9 MB, free: 5.168 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.713e-05/0.1522, allocations: 11.98 kB / 407.9 MB, free: 5.156 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001812/0.1524, allocations: 23.98 kB / 408 MB, free: 5.133 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.029e-05/0.1525, allocations: 23.97 kB / 408 MB, free: 5.109 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.57e-05/0.1526, allocations: 15.98 kB / 408 MB, free: 5.094 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0009311/0.1535, allocations: 0.6513 MB / 408.7 MB, free: 4.449 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.21e-07/0.1535, allocations: 0 / 408.7 MB, free: 4.449 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005282/0.154, allocations: 119.8 kB / 408.8 MB, free: 4.332 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.001164/0.1552, allocations: 467 kB / 409.2 MB, free: 3.977 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0006169/0.1559, allocations: 253 kB / 409.5 MB, free: 3.73 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.306e-06/0.1559, allocations: 7.938 kB / 409.5 MB, free: 3.723 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000284/0.1562, allocations: 123.8 kB / 409.6 MB, free: 3.602 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009045/0.1571, allocations: 160.5 kB / 409.8 MB, free: 3.441 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002323/0.1594, allocations: 1.131 MB / 410.9 MB, free: 2.289 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008862/0.1603, allocations: 0.894 MB / 411.8 MB, free: 1.367 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0004296/0.1608, allocations: 96.48 kB / 411.9 MB, free: 1.27 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001754/0.161, allocations: 51.42 kB / 411.9 MB, free: 1.223 MB / 302.1 MB Notification: Performance of SimCode: time 2.816e-06/0.161, allocations: 0 / 411.9 MB, free: 1.223 MB / 302.1 MB Notification: Performance of Templates: time 0.01695/0.1779, allocations: 7.333 MB / 419.3 MB, free: 9.891 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: