Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IndustrialControlSystems_IndustrialControlSystems.Logical.Timers.Examples.testT_OffDelay_Fedge.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.Timers.Examples.testT_OffDelay_Fedge,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems.Logical.Timers.Examples.testT_OffDelay_Fedge") translateModel(IndustrialControlSystems.Logical.Timers.Examples.testT_OffDelay_Fedge,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems.Logical.Timers.Examples.testT_OffDelay_Fedge") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001262/0.001262, 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.009192/0.009192, allocations: 171.6 kB / 16.27 MB, free: 6.328 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.701/1.701, allocations: 205.4 MB / 222.4 MB, free: 5.551 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.05504/0.05504, allocations: 10.75 MB / 281.5 MB, free: 10.44 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.0005259/0.0005261, allocations: 12 kB / 342.2 MB, free: 23.46 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1202/0.1208, allocations: 50.02 MB / 392.3 MB, free: 5.383 MB / 286.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Logical.Timers.Examples.testT_OffDelay_Fedge): time 0.002663/0.1235, allocations: 1.691 MB / 393.9 MB, free: 3.68 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.00191/0.1254, allocations: 1.151 MB / 395.1 MB, free: 2.52 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000114/0.1256, allocations: 3.938 kB / 395.1 MB, free: 2.516 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008515/0.1264, allocations: 275.4 kB / 395.4 MB, free: 2.246 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004051/0.1268, allocations: 191.5 kB / 395.6 MB, free: 2.059 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006811/0.1275, allocations: 255.5 kB / 395.8 MB, free: 1.809 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003763/0.1279, allocations: 351.1 kB / 396.1 MB, free: 1.465 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001485/0.1281, allocations: 52.38 kB / 396.2 MB, free: 1.414 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001923/0.1283, allocations: 123.4 kB / 396.3 MB, free: 1.293 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001822/0.1285, allocations: 139.4 kB / 396.5 MB, free: 1.156 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.785e-05/0.1285, allocations: 4 kB / 396.5 MB, free: 1.152 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002054/0.1287, allocations: 87.94 kB / 396.5 MB, free: 1.066 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001093/0.1288, allocations: 75.67 kB / 396.6 MB, free: 0.9922 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001408/0.129, allocations: 141 kB / 396.8 MB, free: 0.8477 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003954/0.1294, allocations: 347.1 kB / 397.1 MB, free: 0.5078 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.547e-06/0.1294, allocations: 0 / 397.1 MB, free: 0.5078 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.413e-06/0.1294, allocations: 0 / 397.1 MB, free: 0.5078 MB / 286.1 MB Notification: Performance of Transformations before backend: time 4.648e-06/0.1294, allocations: 4 kB / 397.1 MB, free: 0.5039 MB / 286.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 23 * Number of variables: 23 Notification: Performance of Generate backend data structure: time 0.0009853/0.1304, allocations: 0.6185 MB / 397.7 MB, free: 15.82 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.931e-05/0.1305, allocations: 8.031 kB / 397.7 MB, free: 15.82 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.273e-05/0.1305, allocations: 32.56 kB / 397.8 MB, free: 15.79 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000429/0.131, allocations: 328.3 kB / 398.1 MB, free: 15.43 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.079e-05/0.131, allocations: 16.12 kB / 398.1 MB, free: 15.41 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.594e-05/0.1311, allocations: 15.94 kB / 398.1 MB, free: 15.39 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003124/0.1314, allocations: 144.2 kB / 398.2 MB, free: 15.24 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.435e-06/0.1314, allocations: 0 / 398.2 MB, free: 15.24 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.002e-05/0.1314, allocations: 4 kB / 398.3 MB, free: 15.23 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.995e-06/0.1314, allocations: 4 kB / 398.3 MB, free: 15.23 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001793/0.1316, allocations: 75.89 kB / 398.3 MB, free: 15.16 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007754/0.1324, allocations: 496.1 kB / 398.8 MB, free: 14.62 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004656/0.1329, allocations: 162.7 kB / 399 MB, free: 14.45 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001268/0.133, allocations: 56.83 kB / 399 MB, free: 14.39 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.19e-05/0.1331, allocations: 7.938 kB / 399 MB, free: 14.39 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002949/0.1334, allocations: 142.2 kB / 399.2 MB, free: 14.24 MB / 302.1 MB Notification: Performance of pre-optimization done (n=18): time 1.893e-06/0.1334, allocations: 0 / 399.2 MB, free: 14.24 MB / 302.1 MB Notification: Performance of matching and sorting (n=18): time 0.0005983/0.134, allocations: 281.1 kB / 399.5 MB, free: 13.96 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.3e-05/0.1341, allocations: 114.8 kB / 399.6 MB, free: 13.82 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004621/0.1346, allocations: 412.5 kB / 400 MB, free: 13.41 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.742e-05/0.1346, allocations: 33.7 kB / 400 MB, free: 13.37 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001366/0.1347, allocations: 164.4 kB / 400.2 MB, free: 13.2 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.474e-05/0.1348, allocations: 47.45 kB / 400.2 MB, free: 13.15 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.073e-05/0.1348, allocations: 29.7 kB / 400.2 MB, free: 13.12 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.000162/0.135, allocations: 350.7 kB / 400.6 MB, free: 12.77 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001137/0.1351, allocations: 40.22 kB / 400.6 MB, free: 12.73 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001745/0.1353, allocations: 152.4 kB / 400.8 MB, free: 12.54 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003054/0.1356, allocations: 188.4 kB / 400.9 MB, free: 12.32 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.445e-06/0.1356, allocations: 4 kB / 401 MB, free: 12.32 MB / 302.1 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.0003757/0.136, allocations: 229 kB / 401.2 MB, free: 12.09 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.759e-05/0.136, allocations: 8 kB / 401.2 MB, free: 12.08 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.732e-06/0.1361, allocations: 0 / 401.2 MB, free: 12.08 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.813e-05/0.1361, allocations: 4 kB / 401.2 MB, free: 12.07 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001193/0.1362, allocations: 35.92 kB / 401.2 MB, free: 12.04 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.465e-05/0.1362, allocations: 4 kB / 401.2 MB, free: 12.04 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001227/0.1364, allocations: 32.02 kB / 401.3 MB, free: 12 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.583e-05/0.1364, allocations: 8 kB / 401.3 MB, free: 12 MB / 302.1 MB Warning: Assuming fixed start value for the following 3 variables: timer.Sd:DISCRETE(fixed = true ) type: Boolean timer.Q:DISCRETE(flow=false fixed = true ) "status of the timer" type: Boolean timer.tr:DISCRETE(flow=false fixed = true ) "residual time" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 23 ($PRE.timer.Sd,timer.Sd,timer.run,$PRE.timer.run,timer.startTime,$PRE.timer.startTime,$PRE.timer.Q,timer.Q,$PRE.timer.tr,timer.tr,$PRE.ResetSignal.combiTimeTable.nextTimeEvent,$whenCondition3,$PRE.SetSignal.combiTimeTable.nextTimeEvent,$whenCondition2,$whenCondition1,ResetSignal.combiTimeTable.nextTimeEventScaled,$PRE.ResetSignal.combiTimeTable.nextTimeEventScaled,ResetSignal.combiTimeTable.nextTimeEvent,ResetSignal.y,SetSignal.combiTimeTable.nextTimeEventScaled,$PRE.SetSignal.combiTimeTable.nextTimeEventScaled,SetSignal.combiTimeTable.nextTimeEvent,SetSignal.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (27): * Single equations (assignments): 27 * 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.0002505/0.1366, allocations: 192.5 kB / 401.5 MB, free: 11.8 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.181e-05/0.1367, allocations: 27.62 kB / 401.5 MB, free: 11.77 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.667e-05/0.1368, allocations: 31.28 kB / 401.5 MB, free: 11.74 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.819e-06/0.1368, allocations: 7.938 kB / 401.5 MB, free: 11.73 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.476e-06/0.1368, allocations: 4 kB / 401.5 MB, free: 11.73 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.05e-06/0.1368, allocations: 0 / 401.5 MB, free: 11.73 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003379/0.1372, allocations: 305.3 kB / 401.8 MB, free: 11.38 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.683e-06/0.1372, allocations: 0 / 401.8 MB, free: 11.38 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.378e-05/0.1372, allocations: 8 kB / 401.8 MB, free: 11.38 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.266e-06/0.1372, allocations: 0 / 401.8 MB, free: 11.38 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.217e-05/0.1372, allocations: 7.984 kB / 401.8 MB, free: 11.37 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.543e-06/0.1373, allocations: 3.938 kB / 401.8 MB, free: 11.36 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.929e-05/0.1373, allocations: 0 / 401.8 MB, free: 11.36 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004521/0.1377, allocations: 271.7 kB / 402.1 MB, free: 11.08 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.231e-05/0.1378, allocations: 112.7 kB / 402.2 MB, free: 10.95 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.661e-05/0.1379, allocations: 8 kB / 402.2 MB, free: 10.95 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.15e-05/0.138, allocations: 15.92 kB / 402.2 MB, free: 10.93 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.568e-05/0.138, allocations: 11.98 kB / 402.3 MB, free: 10.92 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.282e-05/0.1381, allocations: 11.98 kB / 402.3 MB, free: 10.91 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0003251/0.1384, allocations: 303 kB / 402.6 MB, free: 10.61 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.1384, allocations: 4 kB / 402.6 MB, free: 10.61 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003473/0.1388, allocations: 71.83 kB / 402.6 MB, free: 10.54 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: 14 ($whenCondition3,$whenCondition2,$whenCondition1,timer.Q,timer.tr,timer.run,timer.startTime,timer.Sd,SetSignal.y,SetSignal.combiTimeTable.nextTimeEvent,SetSignal.combiTimeTable.nextTimeEventScaled,ResetSignal.y,ResetSignal.combiTimeTable.nextTimeEvent,ResetSignal.combiTimeTable.nextTimeEventScaled) * Number of discrete states: 6 (timer.Sd,timer.run,ResetSignal.combiTimeTable.nextTimeEventScaled,SetSignal.combiTimeTable.nextTimeEventScaled,SetSignal.combiTimeTable.nextTimeEvent,ResetSignal.combiTimeTable.nextTimeEvent) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (17): * Single equations (assignments): 9 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 8 * 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.001008/0.1398, allocations: 435.2 kB / 403.1 MB, free: 10.21 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003707/0.1402, allocations: 159.8 kB / 403.2 MB, free: 10.05 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.435e-06/0.1402, allocations: 0.5 kB / 403.2 MB, free: 10.05 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001693/0.1404, allocations: 79.91 kB / 403.3 MB, free: 9.977 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004536/0.1408, allocations: 69.33 kB / 403.4 MB, free: 9.91 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009514/0.1418, allocations: 0.558 MB / 403.9 MB, free: 9.32 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000349/0.1422, allocations: 0.7716 MB / 404.7 MB, free: 8.52 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001445/0.1423, allocations: 55.17 kB / 404.7 MB, free: 8.469 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.973e-05/0.1424, allocations: 23.44 kB / 404.8 MB, free: 8.445 MB / 302.1 MB Notification: Performance of SimCode: time 3.61e-07/0.1424, allocations: 0 / 404.8 MB, free: 8.445 MB / 302.1 MB Notification: Performance of Templates: time 0.008712/0.1511, allocations: 4.001 MB / 408.8 MB, free: 4.445 MB / 302.1 MB make -j1 -f IndustrialControlSystems_IndustrialControlSystems.Logical.Timers.Examples.testT_OffDelay_Fedge.makefile Environment - environmentSimulation: (rm -f IndustrialControlSystems_IndustrialControlSystems.Logical.Timers.Examples.testT_OffDelay_Fedge.pipe ; mkfifo IndustrialControlSystems_IndustrialControlSystems.Logical.Timers.Examples.testT_OffDelay_Fedge.pipe ; head -c 1048576 < IndustrialControlSystems_IndustrialControlSystems.Logical.Timers.Examples.testT_OffDelay_Fedge.pipe >> ../files/IndustrialControlSystems_IndustrialControlSystems.Logical.Timers.Examples.testT_OffDelay_Fedge.sim & ./IndustrialControlSystems_IndustrialControlSystems.Logical.Timers.Examples.testT_OffDelay_Fedge -abortSlowSimulation -alarm=480 -lv LOG_STATS > IndustrialControlSystems_IndustrialControlSystems.Logical.Timers.Examples.testT_OffDelay_Fedge.pipe 2>&1) Environment - environmentSimulation: