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.001091/0.001091, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001072/0.001073, allocations: 192.1 kB / 16.13 MB, free: 6.652 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.538/1.538, allocations: 205.1 MB / 222 MB, free: 4.75 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.05406/0.05406, allocations: 10.75 MB / 280.1 MB, free: 10.71 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.001356/0.001356, allocations: 63.91 kB / 339.9 MB, free: 23.78 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1294/0.1307, allocations: 49.02 MB / 388.9 MB, free: 6.695 MB / 286.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Logical.Timers.Examples.testT_OffDelay_Fedge): time 0.003736/0.1345, allocations: 2.045 MB / 390.9 MB, free: 4.633 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001958/0.1365, allocations: 1.17 MB / 392.1 MB, free: 3.453 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001343/0.1367, allocations: 7.938 kB / 392.1 MB, free: 3.445 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008188/0.1375, allocations: 279.4 kB / 392.4 MB, free: 3.172 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003733/0.1379, allocations: 187.5 kB / 392.6 MB, free: 2.988 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007293/0.1386, allocations: 259.5 kB / 392.8 MB, free: 2.734 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003891/0.139, allocations: 351.1 kB / 393.2 MB, free: 2.391 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001633/0.1392, allocations: 44.38 kB / 393.2 MB, free: 2.348 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001817/0.1394, allocations: 131.4 kB / 393.3 MB, free: 2.219 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001826/0.1396, allocations: 139.4 kB / 393.5 MB, free: 2.082 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 4.141e-05/0.1396, allocations: 8 kB / 393.5 MB, free: 2.074 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000222/0.1399, allocations: 99.88 kB / 393.6 MB, free: 1.977 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001179/0.14, allocations: 75.73 kB / 393.6 MB, free: 1.902 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001447/0.1402, allocations: 111.3 kB / 393.8 MB, free: 1.793 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004377/0.1406, allocations: 363.1 kB / 394.1 MB, free: 1.438 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.481e-06/0.1406, allocations: 0 / 394.1 MB, free: 1.438 MB / 286.1 MB Notification: Performance of FrontEnd: time 9.32e-07/0.1406, allocations: 0 / 394.1 MB, free: 1.438 MB / 286.1 MB Notification: Performance of Transformations before backend: time 6.131e-06/0.1406, allocations: 0 / 394.1 MB, free: 1.438 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.001202/0.1418, allocations: 0.6613 MB / 394.8 MB, free: 0.7148 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.973e-05/0.1419, allocations: 16.03 kB / 394.8 MB, free: 0.6992 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.223e-05/0.142, allocations: 28.56 kB / 394.8 MB, free: 0.6719 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005357/0.1425, allocations: 336.1 kB / 395.1 MB, free: 312 kB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.751e-05/0.1426, allocations: 12.12 kB / 395.2 MB, free: 300 kB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.954e-05/0.1426, allocations: 8 kB / 395.2 MB, free: 292 kB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000358/0.143, allocations: 148.2 kB / 395.3 MB, free: 128 kB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.002e-05/0.143, allocations: 3.938 kB / 395.3 MB, free: 124 kB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.851e-05/0.143, allocations: 15.98 kB / 395.3 MB, free: 108 kB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.394e-06/0.1431, allocations: 0 / 395.3 MB, free: 108 kB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001927/0.1433, allocations: 71.84 kB / 395.4 MB, free: 36 kB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008271/0.1441, allocations: 488.3 kB / 395.9 MB, free: 15.51 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004354/0.1445, allocations: 146.7 kB / 396 MB, free: 15.36 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001347/0.1447, allocations: 60.92 kB / 396.1 MB, free: 15.29 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.352e-05/0.1447, allocations: 7.938 kB / 396.1 MB, free: 15.29 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000283/0.145, allocations: 135.2 kB / 396.2 MB, free: 15.14 MB / 302.1 MB Notification: Performance of pre-optimization done (n=18): time 1.623e-06/0.145, allocations: 4 kB / 396.2 MB, free: 15.14 MB / 302.1 MB Notification: Performance of matching and sorting (n=18): time 0.0006172/0.1457, allocations: 281.1 kB / 396.5 MB, free: 14.86 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.744e-05/0.1458, allocations: 114.8 kB / 396.6 MB, free: 14.72 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004589/0.1462, allocations: 412.5 kB / 397 MB, free: 14.3 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.741e-05/0.1463, allocations: 33.7 kB / 397 MB, free: 14.27 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000131/0.1464, allocations: 164.4 kB / 397.2 MB, free: 14.1 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.918e-05/0.1464, allocations: 47.44 kB / 397.2 MB, free: 14.05 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.628e-05/0.1465, allocations: 45.7 kB / 397.3 MB, free: 14 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001303/0.1467, allocations: 350.7 kB / 397.6 MB, free: 13.65 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001169/0.1468, allocations: 48.2 kB / 397.7 MB, free: 13.6 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001811/0.147, allocations: 148.4 kB / 397.8 MB, free: 13.41 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003263/0.1473, allocations: 192.4 kB / 398 MB, free: 13.2 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.766e-06/0.1473, allocations: 0 / 398 MB, free: 13.2 MB / 302.1 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.000382/0.1477, allocations: 232.9 kB / 398.2 MB, free: 12.96 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.894e-05/0.1478, allocations: 8 kB / 398.2 MB, free: 12.95 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.888e-06/0.1478, allocations: 4 kB / 398.3 MB, free: 12.95 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.888e-05/0.1478, allocations: 0 / 398.3 MB, free: 12.95 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001106/0.1479, allocations: 31.92 kB / 398.3 MB, free: 12.92 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.279e-05/0.1479, allocations: 7.984 kB / 398.3 MB, free: 12.91 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001178/0.1481, allocations: 24.09 kB / 398.3 MB, free: 12.89 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.658e-05/0.1481, allocations: 8 kB / 398.3 MB, free: 12.88 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.0002399/0.1483, allocations: 196.4 kB / 398.5 MB, free: 12.68 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.462e-05/0.1484, allocations: 27.62 kB / 398.5 MB, free: 12.65 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.708e-05/0.1485, allocations: 35.28 kB / 398.6 MB, free: 12.62 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.758e-06/0.1485, allocations: 4 kB / 398.6 MB, free: 12.61 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.881e-06/0.1485, allocations: 4 kB / 398.6 MB, free: 12.61 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.5e-06/0.1485, allocations: 3.984 kB / 398.6 MB, free: 12.61 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002715/0.1488, allocations: 297.3 kB / 398.9 MB, free: 12.27 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.543e-06/0.1488, allocations: 3.938 kB / 398.9 MB, free: 12.26 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.547e-05/0.1488, allocations: 11.98 kB / 398.9 MB, free: 12.25 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.803e-06/0.1488, allocations: 0 / 398.9 MB, free: 12.25 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.844e-05/0.1489, allocations: 8 kB / 398.9 MB, free: 12.24 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.443e-06/0.1489, allocations: 0 / 398.9 MB, free: 12.24 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.334e-06/0.1489, allocations: 0 / 398.9 MB, free: 12.24 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004586/0.1493, allocations: 275.8 kB / 399.2 MB, free: 11.96 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.38e-05/0.1494, allocations: 108.8 kB / 399.3 MB, free: 11.83 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.67e-05/0.1495, allocations: 4 kB / 399.3 MB, free: 11.83 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.966e-05/0.1496, allocations: 11.98 kB / 399.3 MB, free: 11.82 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.172e-05/0.1496, allocations: 11.98 kB / 399.3 MB, free: 11.8 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.181e-05/0.1497, allocations: 8 kB / 399.3 MB, free: 11.8 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0003359/0.15, allocations: 307 kB / 399.6 MB, free: 11.5 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.81e-07/0.15, allocations: 0 / 399.6 MB, free: 11.5 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003478/0.1504, allocations: 79.83 kB / 399.7 MB, free: 11.42 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.001135/0.1515, allocations: 444.5 kB / 400.1 MB, free: 11.08 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003763/0.1519, allocations: 151.2 kB / 400.3 MB, free: 10.94 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 5.17e-06/0.1519, allocations: 0.5 kB / 400.3 MB, free: 10.94 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001665/0.1521, allocations: 83.91 kB / 400.4 MB, free: 10.86 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000451/0.1526, allocations: 65.33 kB / 400.4 MB, free: 10.79 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009101/0.1535, allocations: 0.5567 MB / 401 MB, free: 10.21 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003931/0.1539, allocations: 0.7793 MB / 401.8 MB, free: 9.402 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001277/0.154, allocations: 42.95 kB / 401.8 MB, free: 9.363 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.941e-05/0.1541, allocations: 31.42 kB / 401.8 MB, free: 9.332 MB / 302.1 MB Notification: Performance of SimCode: time 3.61e-07/0.1541, allocations: 0 / 401.8 MB, free: 9.332 MB / 302.1 MB Notification: Performance of Templates: time 0.008711/0.1628, allocations: 4.04 MB / 405.9 MB, free: 5.289 MB / 302.1 MB make -j1 -f IndustrialControlSystems_IndustrialControlSystems.Logical.Timers.Examples.testT_OffDelay_Fedge.makefile (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)