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: "" <> buildModelFMU(IndustrialControlSystems.Logical.Timers.Examples.testT_OffDelay_Fedge,fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems_Logical_Timers_Examples_testT_OffDelay_Fedge",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IndustrialControlSystems.Logical.Timers.Examples.testT_OffDelay_Fedge,fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems_Logical_Timers_Examples_testT_OffDelay_Fedge",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.002255/0.002254, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.002433/0.002433, allocations: 190.7 kB / 16.25 MB, free: 6.625 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.612/1.612, allocations: 205.1 MB / 222.1 MB, free: 4.664 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.07346/0.07346, allocations: 10.74 MB / 280.2 MB, free: 10.66 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.00141/0.00141, allocations: 71.84 kB / 340.1 MB, free: 23.57 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.123/0.1244, allocations: 49.02 MB / 389.2 MB, free: 6.488 MB / 286.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Logical.Timers.Examples.testT_OffDelay_Fedge): time 0.006014/0.1305, allocations: 2.045 MB / 391.2 MB, free: 4.426 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.003065/0.1336, allocations: 1.158 MB / 392.4 MB, free: 3.258 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002475/0.1338, allocations: 4 kB / 392.4 MB, free: 3.254 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00117/0.1351, allocations: 287.4 kB / 392.7 MB, free: 2.973 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006982/0.1358, allocations: 187.4 kB / 392.8 MB, free: 2.789 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001082/0.1369, allocations: 263.6 kB / 393.1 MB, free: 2.531 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007113/0.1376, allocations: 359.1 kB / 393.4 MB, free: 2.18 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002121/0.1378, allocations: 48.3 kB / 393.5 MB, free: 2.133 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004759/0.1383, allocations: 147.4 kB / 393.6 MB, free: 1.988 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003438/0.1387, allocations: 151.4 kB / 393.8 MB, free: 1.84 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 7.163e-05/0.1388, allocations: 20 kB / 393.8 MB, free: 1.82 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003419/0.1391, allocations: 111.9 kB / 393.9 MB, free: 1.711 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001619/0.1393, allocations: 79.75 kB / 394 MB, free: 1.633 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002231/0.1395, allocations: 127.2 kB / 394.1 MB, free: 1.508 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008083/0.1403, allocations: 367.1 kB / 394.5 MB, free: 1.148 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.007e-06/0.1404, allocations: 0 / 394.5 MB, free: 1.148 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.443e-06/0.1404, allocations: 0 / 394.5 MB, free: 1.148 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.187e-05/0.1404, allocations: 0 / 394.5 MB, free: 1.148 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.001618/0.142, allocations: 0.6653 MB / 395.1 MB, free: 432 kB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.224e-05/0.1421, allocations: 11.89 kB / 395.1 MB, free: 420 kB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.599e-05/0.1422, allocations: 46.73 kB / 395.2 MB, free: 364 kB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001354/0.1423, allocations: 40.55 kB / 395.2 MB, free: 324 kB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000624/0.143, allocations: 324.2 kB / 395.6 MB, free: 15.96 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.761e-05/0.143, allocations: 19.92 kB / 395.6 MB, free: 15.94 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.348e-05/0.1431, allocations: 12 kB / 395.6 MB, free: 15.93 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004487/0.1435, allocations: 160 kB / 395.7 MB, free: 15.75 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.295e-05/0.1435, allocations: 0 / 395.7 MB, free: 15.75 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.407e-05/0.1436, allocations: 0 / 395.7 MB, free: 15.75 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.177e-06/0.1436, allocations: 4 kB / 395.7 MB, free: 15.75 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002625/0.1439, allocations: 75.89 kB / 395.8 MB, free: 15.68 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001168/0.145, allocations: 488.2 kB / 396.3 MB, free: 15.15 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000641/0.1457, allocations: 142.7 kB / 396.4 MB, free: 15 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002004/0.1459, allocations: 60.83 kB / 396.5 MB, free: 14.94 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.868e-05/0.146, allocations: 4 kB / 396.5 MB, free: 14.94 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004446/0.1464, allocations: 142 kB / 396.6 MB, free: 14.79 MB / 302.1 MB Notification: Performance of pre-optimization done (n=18): time 2.995e-06/0.1465, allocations: 0 / 396.6 MB, free: 14.79 MB / 302.1 MB Notification: Performance of matching and sorting (n=18): time 0.0009995/0.1475, allocations: 281.1 kB / 396.9 MB, free: 14.51 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001525/0.1476, allocations: 106.8 kB / 397 MB, free: 14.38 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008735/0.1485, allocations: 420.5 kB / 397.4 MB, free: 13.96 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 5.205e-05/0.1486, allocations: 37.64 kB / 397.5 MB, free: 13.91 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002125/0.1488, allocations: 164.4 kB / 397.6 MB, free: 13.75 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.427e-05/0.1489, allocations: 47.44 kB / 397.7 MB, free: 13.7 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001206/0.1491, allocations: 45.7 kB / 397.7 MB, free: 13.65 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0002402/0.1493, allocations: 346.8 kB / 398.1 MB, free: 13.3 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002011/0.1495, allocations: 48.2 kB / 398.1 MB, free: 13.25 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003138/0.1499, allocations: 152.4 kB / 398.2 MB, free: 13.06 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004778/0.1504, allocations: 200.3 kB / 398.4 MB, free: 12.84 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.352e-06/0.1504, allocations: 0 / 398.4 MB, free: 12.84 MB / 302.1 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.0004743/0.1509, allocations: 225 kB / 398.7 MB, free: 12.61 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.386e-05/0.1509, allocations: 8 kB / 398.7 MB, free: 12.6 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.728e-06/0.1509, allocations: 0 / 398.7 MB, free: 12.6 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.546e-05/0.1509, allocations: 4.375 kB / 398.7 MB, free: 12.6 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000175/0.1511, allocations: 43.92 kB / 398.7 MB, free: 12.55 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.484e-05/0.1511, allocations: 4 kB / 398.7 MB, free: 12.55 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002027/0.1514, allocations: 23.83 kB / 398.7 MB, free: 12.53 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.025e-05/0.1514, allocations: 11.94 kB / 398.8 MB, free: 12.52 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.0003755/0.1518, allocations: 176.4 kB / 398.9 MB, free: 12.34 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.661e-05/0.1519, allocations: 39.61 kB / 399 MB, free: 12.3 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001111/0.152, allocations: 31.28 kB / 399 MB, free: 12.27 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.146e-06/0.152, allocations: 4.031 kB / 399 MB, free: 12.26 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.284e-05/0.1521, allocations: 4 kB / 399 MB, free: 12.26 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.454e-06/0.1521, allocations: 0 / 399 MB, free: 12.26 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005024/0.1526, allocations: 313.2 kB / 399.3 MB, free: 11.9 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.078e-06/0.1526, allocations: 0 / 399.3 MB, free: 11.9 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.3e-05/0.1527, allocations: 11.94 kB / 399.3 MB, free: 11.89 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.725e-06/0.1527, allocations: 0 / 399.3 MB, free: 11.89 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.054e-05/0.1527, allocations: 11.92 kB / 399.3 MB, free: 11.88 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.126e-06/0.1527, allocations: 4 kB / 399.3 MB, free: 11.88 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.874e-06/0.1528, allocations: 0 / 399.3 MB, free: 11.88 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006993/0.1535, allocations: 267.5 kB / 399.6 MB, free: 11.6 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001102/0.1536, allocations: 96.83 kB / 399.7 MB, free: 11.48 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.368e-05/0.1537, allocations: 7.984 kB / 399.7 MB, free: 11.48 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.877e-05/0.1538, allocations: 12 kB / 399.7 MB, free: 11.46 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.559e-05/0.1539, allocations: 7.984 kB / 399.7 MB, free: 11.46 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.931e-05/0.1539, allocations: 19.98 kB / 399.7 MB, free: 11.44 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0003796/0.1543, allocations: 311 kB / 400 MB, free: 11.13 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1543, allocations: 0 / 400 MB, free: 11.13 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003788/0.1547, allocations: 63.89 kB / 400.1 MB, free: 11.07 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.001953/0.1566, allocations: 1.132 MB / 401.2 MB, free: 10.02 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0005934/0.1572, allocations: 171.7 kB / 401.4 MB, free: 9.848 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.846e-06/0.1573, allocations: 3.938 kB / 401.4 MB, free: 9.844 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002746/0.1575, allocations: 71.98 kB / 401.5 MB, free: 9.773 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000701/0.1583, allocations: 71.14 kB / 401.6 MB, free: 9.707 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005805/0.1641, allocations: 3.056 MB / 404.6 MB, free: 6.508 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004154/0.1645, allocations: 0.7752 MB / 405.4 MB, free: 5.707 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002303/0.1648, allocations: 50.94 kB / 405.4 MB, free: 5.656 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000208/0.165, allocations: 87.41 kB / 405.5 MB, free: 5.574 MB / 302.1 MB Notification: Performance of SimCode: time 6.71e-07/0.165, allocations: 0 / 405.5 MB, free: 5.574 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04261/0.2076, allocations: 7.37 MB / 412.9 MB, free: 14.24 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002069/0.2079, allocations: 277.9 kB / 413.2 MB, free: 13.86 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.112/2.32, allocations: 0 / 413.2 MB, free: 13.86 MB / 318.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_IndustrialControlSystems_IndustrialControlSystems_Logical_Timers_Examples_testT_OffDelay_Fedge_fmu --startTime=0 --stopTime=100 --timeout=50 --tolerance=1e-06 IndustrialControlSystems_IndustrialControlSystems_Logical_Timers_Examples_testT_OffDelay_Fedge.fmu > IndustrialControlSystems_IndustrialControlSystems.Logical.Timers.Examples.testT_OffDelay_Fedge.pipe 2>&1)