Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IndustrialControlSystems_IndustrialControlSystems.Logical.Timers.Examples.testT_OffDelay_Redge.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_Redge,fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems_Logical_Timers_Examples_testT_OffDelay_Redge",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IndustrialControlSystems.Logical.Timers.Examples.testT_OffDelay_Redge,fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems_Logical_Timers_Examples_testT_OffDelay_Redge",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.001198/0.001198, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001314/0.001314, allocations: 197.1 kB / 16.54 MB, free: 6.672 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.022/2.022, allocations: 205.1 MB / 222.4 MB, free: 4.617 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.1057/0.1057, allocations: 10.75 MB / 280.5 MB, free: 10.51 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.002951/0.002951, allocations: 79.88 kB / 340.7 MB, free: 23.22 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1623/0.1653, allocations: 49.01 MB / 389.7 MB, free: 6.141 MB / 286.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Logical.Timers.Examples.testT_OffDelay_Redge): time 0.006977/0.1723, allocations: 1.996 MB / 391.7 MB, free: 4.125 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.00399/0.1764, allocations: 1.17 MB / 392.8 MB, free: 2.945 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002511/0.1767, allocations: 3.938 kB / 392.8 MB, free: 2.941 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001762/0.1785, allocations: 303.2 kB / 393.1 MB, free: 2.645 MB / 286.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Utilities/Strings.mo:139:3-175:14:writable] Warning: Pure function 'Modelica.Utilities.Strings.isEmpty' contains a call to impure function 'Modelica.Utilities.Strings.Advanced.skipWhiteSpace'. Notification: Performance of NFTyping.typeBindings: time 0.0009354/0.1795, allocations: 207.2 kB / 393.3 MB, free: 2.441 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001469/0.181, allocations: 291.3 kB / 393.6 MB, free: 2.156 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008126/0.1818, allocations: 355.1 kB / 394 MB, free: 1.809 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002876/0.1821, allocations: 64.27 kB / 394 MB, free: 1.746 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000421/0.1826, allocations: 143.5 kB / 394.2 MB, free: 1.605 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003947/0.183, allocations: 143.4 kB / 394.3 MB, free: 1.465 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 8.121e-05/0.1831, allocations: 27.92 kB / 394.3 MB, free: 1.438 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004422/0.1835, allocations: 103.9 kB / 394.4 MB, free: 1.336 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002009/0.1838, allocations: 91.72 kB / 394.5 MB, free: 1.246 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002788/0.1841, allocations: 123.2 kB / 394.6 MB, free: 1.125 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009044/0.185, allocations: 379 kB / 395 MB, free: 0.7539 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.212e-06/0.185, allocations: 0 / 395 MB, free: 0.7539 MB / 286.1 MB Notification: Performance of FrontEnd: time 3.417e-06/0.185, allocations: 4 kB / 395 MB, free: 0.75 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.675e-05/0.1851, allocations: 0 / 395 MB, free: 0.75 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.001832/0.1869, allocations: 0.669 MB / 395.7 MB, free: 20 kB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.905e-05/0.187, allocations: 15.89 kB / 395.7 MB, free: 4 kB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001229/0.1871, allocations: 42.73 kB / 395.7 MB, free: 15.95 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001584/0.1873, allocations: 32.56 kB / 395.8 MB, free: 15.92 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007568/0.1881, allocations: 336.2 kB / 396.1 MB, free: 15.55 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.471e-05/0.1882, allocations: 19.88 kB / 396.1 MB, free: 15.54 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.797e-05/0.1882, allocations: 8 kB / 396.1 MB, free: 15.53 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005576/0.1888, allocations: 152.2 kB / 396.3 MB, free: 15.36 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.337e-05/0.1888, allocations: 0 / 396.3 MB, free: 15.36 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.271e-05/0.1889, allocations: 4 kB / 396.3 MB, free: 15.36 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.094e-05/0.1889, allocations: 7.938 kB / 396.3 MB, free: 15.35 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003511/0.1892, allocations: 71.89 kB / 396.4 MB, free: 15.28 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001342/0.1906, allocations: 492.2 kB / 396.8 MB, free: 14.75 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000804/0.1914, allocations: 142.7 kB / 397 MB, free: 14.6 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002499/0.1917, allocations: 60.92 kB / 397 MB, free: 14.54 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.94e-05/0.1918, allocations: 0 / 397 MB, free: 14.54 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005167/0.1923, allocations: 142.3 kB / 397.2 MB, free: 14.39 MB / 302.1 MB Notification: Performance of pre-optimization done (n=18): time 3.567e-06/0.1923, allocations: 0 / 397.2 MB, free: 14.39 MB / 302.1 MB Notification: Performance of matching and sorting (n=18): time 0.00129/0.1936, allocations: 293.1 kB / 397.5 MB, free: 14.1 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001465/0.1938, allocations: 110.8 kB / 397.6 MB, free: 13.96 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001082/0.1949, allocations: 441.6 kB / 398 MB, free: 13.53 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 6.016e-05/0.195, allocations: 33.7 kB / 398 MB, free: 13.49 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002466/0.1953, allocations: 164.4 kB / 398.2 MB, free: 13.32 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001042/0.1954, allocations: 43.45 kB / 398.2 MB, free: 13.28 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001484/0.1955, allocations: 45.7 kB / 398.3 MB, free: 13.23 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0002466/0.1958, allocations: 354.7 kB / 398.6 MB, free: 12.87 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002119/0.196, allocations: 48.16 kB / 398.7 MB, free: 12.82 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003699/0.1964, allocations: 145.6 kB / 398.8 MB, free: 12.64 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006903/0.1971, allocations: 196.4 kB / 399 MB, free: 12.42 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.524e-06/0.1972, allocations: 0 / 399 MB, free: 12.42 MB / 302.1 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.0009596/0.1981, allocations: 229.2 kB / 399.2 MB, free: 12.19 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.841e-05/0.1982, allocations: 8.031 kB / 399.2 MB, free: 12.18 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.479e-05/0.1982, allocations: 4 kB / 399.3 MB, free: 12.18 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.994e-05/0.1983, allocations: 4 kB / 399.3 MB, free: 12.17 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002483/0.1985, allocations: 31.92 kB / 399.3 MB, free: 12.14 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.16e-05/0.1986, allocations: 7.938 kB / 399.3 MB, free: 12.13 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003162/0.1989, allocations: 27.83 kB / 399.3 MB, free: 12.11 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.737e-05/0.199, allocations: 11.94 kB / 399.3 MB, free: 12.09 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.0004811/0.1995, allocations: 184.4 kB / 399.5 MB, free: 11.9 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000137/0.1996, allocations: 31.62 kB / 399.5 MB, free: 11.87 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001373/0.1998, allocations: 35.22 kB / 399.6 MB, free: 11.83 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.035e-06/0.1998, allocations: 128 / 399.6 MB, free: 11.83 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.238e-05/0.1998, allocations: 4 kB / 399.6 MB, free: 11.83 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.598e-06/0.1998, allocations: 7.984 kB / 399.6 MB, free: 11.82 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005874/0.2004, allocations: 305.3 kB / 399.9 MB, free: 11.47 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.637e-06/0.2005, allocations: 0 / 399.9 MB, free: 11.47 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.448e-05/0.2006, allocations: 12 kB / 399.9 MB, free: 11.46 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.22e-06/0.2006, allocations: 3.938 kB / 399.9 MB, free: 11.46 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.183e-05/0.2006, allocations: 8 kB / 399.9 MB, free: 11.45 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.408e-06/0.2006, allocations: 0 / 399.9 MB, free: 11.45 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.13e-06/0.2007, allocations: 3.984 kB / 399.9 MB, free: 11.45 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008774/0.2015, allocations: 259.5 kB / 400.2 MB, free: 11.18 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001789/0.2017, allocations: 112.7 kB / 400.3 MB, free: 11.05 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.772e-05/0.2019, allocations: 7.938 kB / 400.3 MB, free: 11.04 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001979/0.2021, allocations: 15.98 kB / 400.3 MB, free: 11.02 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.269e-05/0.2022, allocations: 11.98 kB / 400.3 MB, free: 11.01 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.812e-05/0.2023, allocations: 11.98 kB / 400.3 MB, free: 11 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0007156/0.203, allocations: 323.1 kB / 400.6 MB, free: 10.68 MB / 302.1 MB Notification: Performance of sort global known variables: time 5.21e-07/0.203, allocations: 0 / 400.6 MB, free: 10.68 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000747/0.2038, allocations: 67.98 kB / 400.7 MB, free: 10.62 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.003318/0.2071, allocations: 1.136 MB / 401.8 MB, free: 9.559 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0009107/0.2081, allocations: 163.7 kB / 402 MB, free: 9.398 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 5.22e-06/0.2081, allocations: 0.5 kB / 402 MB, free: 9.398 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003523/0.2085, allocations: 83.89 kB / 402.1 MB, free: 9.316 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009269/0.2094, allocations: 73.47 kB / 402.2 MB, free: 9.246 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007519/0.217, allocations: 3.078 MB / 405.2 MB, free: 6.039 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006456/0.2177, allocations: 0.7791 MB / 406 MB, free: 5.234 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0003207/0.218, allocations: 59.16 kB / 406.1 MB, free: 5.176 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002551/0.2183, allocations: 91.41 kB / 406.2 MB, free: 5.086 MB / 302.1 MB Notification: Performance of SimCode: time 1.512e-06/0.2183, allocations: 0 / 406.2 MB, free: 5.086 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1392/0.3575, allocations: 7.629 MB / 413.8 MB, free: 13.45 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 17.46/17.82, allocations: 12.44 kB / 413.8 MB, free: 13.44 MB / 318.1 MB (rm -f IndustrialControlSystems_IndustrialControlSystems.Logical.Timers.Examples.testT_OffDelay_Redge.pipe ; mkfifo IndustrialControlSystems_IndustrialControlSystems.Logical.Timers.Examples.testT_OffDelay_Redge.pipe ; head -c 1048576 < IndustrialControlSystems_IndustrialControlSystems.Logical.Timers.Examples.testT_OffDelay_Redge.pipe >> ../files/IndustrialControlSystems_IndustrialControlSystems.Logical.Timers.Examples.testT_OffDelay_Redge.sim & python3 -m fmpy simulate --output-file IndustrialControlSystems_IndustrialControlSystems.Logical.Timers.Examples.testT_OffDelay_Redge_res.csv --start-time 0 --stop-time 50 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.02 IndustrialControlSystems_IndustrialControlSystems_Logical_Timers_Examples_testT_OffDelay_Redge.fmu > IndustrialControlSystems_IndustrialControlSystems.Logical.Timers.Examples.testT_OffDelay_Redge.pipe 2>&1)