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.001216/0.001216, allocations: 105.9 kB / 16.27 MB, free: 6.348 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.001179/0.001179, allocations: 187.6 kB / 17.2 MB, free: 5.949 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.179/1.179, allocations: 205.1 MB / 223.1 MB, free: 12.3 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.05397/0.05397, allocations: 10.74 MB / 281.2 MB, free: 1.367 MB / 222.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.001349/0.001349, allocations: 67.91 kB / 341.2 MB, free: 5.184 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1874/0.1887, allocations: 49 MB / 390.2 MB, free: 49.97 MB / 318.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Logical.Timers.Examples.testT_OffDelay_Fedge): time 0.002841/0.1916, allocations: 1.988 MB / 392.2 MB, free: 48.59 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001443/0.1931, allocations: 1.19 MB / 393.4 MB, free: 47.78 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001016/0.1932, allocations: 6.688 kB / 393.4 MB, free: 47.77 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000675/0.1939, allocations: 285.2 kB / 393.7 MB, free: 47.7 MB / 318.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.0003679/0.1942, allocations: 202 kB / 393.9 MB, free: 47.61 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000552/0.1948, allocations: 293.8 kB / 394.2 MB, free: 47.46 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003034/0.1951, allocations: 346.6 kB / 394.5 MB, free: 47.31 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001215/0.1952, allocations: 50.8 kB / 394.6 MB, free: 47.29 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00015/0.1954, allocations: 140.8 kB / 394.7 MB, free: 47.23 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001534/0.1956, allocations: 150.6 kB / 394.8 MB, free: 47.17 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.895e-05/0.1956, allocations: 22.84 kB / 394.9 MB, free: 47.17 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001759/0.1958, allocations: 105.2 kB / 395 MB, free: 47.14 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 9.383e-05/0.1959, allocations: 87.23 kB / 395 MB, free: 47.1 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 9.831e-05/0.196, allocations: 118.2 kB / 395.2 MB, free: 47.02 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003688/0.1964, allocations: 374.4 kB / 395.5 MB, free: 46.86 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.797e-06/0.1964, allocations: 2.078 kB / 395.5 MB, free: 46.86 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.263e-06/0.1964, allocations: 3.938 kB / 395.5 MB, free: 46.86 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.08e-06/0.1964, allocations: 0 / 395.5 MB, free: 46.86 MB / 318.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.0007407/0.1971, allocations: 0.6613 MB / 396.2 MB, free: 46.27 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.895e-05/0.1972, allocations: 10.8 kB / 396.2 MB, free: 46.27 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.784e-05/0.1973, allocations: 32.06 kB / 396.2 MB, free: 46.25 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003244/0.1976, allocations: 327.4 kB / 396.6 MB, free: 45.98 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.952e-05/0.1976, allocations: 14.06 kB / 396.6 MB, free: 45.97 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.251e-05/0.1976, allocations: 8.297 kB / 396.6 MB, free: 45.97 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002715/0.1979, allocations: 155.4 kB / 396.7 MB, free: 45.88 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.075e-06/0.1979, allocations: 5.125 kB / 396.7 MB, free: 45.88 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.829e-05/0.198, allocations: 6.531 kB / 396.7 MB, free: 45.88 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.909e-06/0.198, allocations: 1.688 kB / 396.7 MB, free: 45.88 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001654/0.1981, allocations: 74.41 kB / 396.8 MB, free: 45.85 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005677/0.1987, allocations: 495.3 kB / 397.3 MB, free: 45.48 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003813/0.1991, allocations: 146.4 kB / 397.4 MB, free: 45.41 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001171/0.1992, allocations: 60.58 kB / 397.5 MB, free: 45.38 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.867e-05/0.1993, allocations: 1.969 kB / 397.5 MB, free: 45.38 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002449/0.1995, allocations: 144.6 kB / 397.6 MB, free: 45.3 MB / 318.1 MB Notification: Performance of pre-optimization done (n=18): time 1.803e-06/0.1995, allocations: 0 / 397.6 MB, free: 45.3 MB / 318.1 MB Notification: Performance of matching and sorting (n=18): time 0.0005458/0.2001, allocations: 280.2 kB / 397.9 MB, free: 45.18 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.697e-05/0.2001, allocations: 116.2 kB / 398 MB, free: 45.05 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003954/0.2005, allocations: 420.4 kB / 398.4 MB, free: 44.85 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.746e-05/0.2005, allocations: 32.55 kB / 398.5 MB, free: 44.81 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.292e-05/0.2006, allocations: 164.3 kB / 398.6 MB, free: 44.67 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.533e-05/0.2007, allocations: 43.38 kB / 398.7 MB, free: 44.64 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.936e-05/0.2007, allocations: 48.34 kB / 398.7 MB, free: 44.61 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 6.358e-05/0.2008, allocations: 347.2 kB / 399.1 MB, free: 44.28 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001073/0.2009, allocations: 50.08 kB / 399.1 MB, free: 44.26 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001525/0.2011, allocations: 144.7 kB / 399.3 MB, free: 44.12 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002686/0.2014, allocations: 188.9 kB / 399.4 MB, free: 43.98 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.765e-06/0.2014, allocations: 5.094 kB / 399.4 MB, free: 43.98 MB / 318.1 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.0003434/0.2017, allocations: 229.1 kB / 399.7 MB, free: 43.87 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.369e-05/0.2017, allocations: 8.656 kB / 399.7 MB, free: 43.87 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.72e-06/0.2017, allocations: 2 kB / 399.7 MB, free: 43.87 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.363e-05/0.2018, allocations: 3.375 kB / 399.7 MB, free: 43.87 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001045/0.2019, allocations: 31.69 kB / 399.7 MB, free: 43.86 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.436e-06/0.2019, allocations: 4.141 kB / 399.7 MB, free: 43.86 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001106/0.202, allocations: 26.88 kB / 399.7 MB, free: 43.85 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.564e-05/0.202, allocations: 12.33 kB / 399.8 MB, free: 43.84 MB / 318.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.0001611/0.2022, allocations: 188.1 kB / 399.9 MB, free: 43.69 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.529e-05/0.2022, allocations: 32.08 kB / 400 MB, free: 43.68 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.933e-05/0.2023, allocations: 37.91 kB / 400 MB, free: 43.65 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.785e-06/0.2023, allocations: 2.938 kB / 400 MB, free: 43.65 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.548e-06/0.2023, allocations: 1.062 kB / 400 MB, free: 43.65 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.579e-06/0.2023, allocations: 0.7969 kB / 400 MB, free: 43.65 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002098/0.2025, allocations: 301.7 kB / 400.3 MB, free: 43.39 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.132e-06/0.2026, allocations: 1.219 kB / 400.3 MB, free: 43.39 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.419e-05/0.2026, allocations: 10.08 kB / 400.3 MB, free: 43.39 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.793e-06/0.2026, allocations: 5 kB / 400.3 MB, free: 43.39 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.402e-05/0.2026, allocations: 7.281 kB / 400.3 MB, free: 43.38 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.585e-06/0.2026, allocations: 1.281 kB / 400.3 MB, free: 43.38 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.62e-07/0.2026, allocations: 3.938 kB / 400.3 MB, free: 43.38 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003679/0.203, allocations: 266.2 kB / 400.6 MB, free: 43.22 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.652e-05/0.2031, allocations: 113.3 kB / 400.7 MB, free: 43.1 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.508e-05/0.2031, allocations: 6.969 kB / 400.7 MB, free: 43.09 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.666e-05/0.2032, allocations: 9.047 kB / 400.7 MB, free: 43.09 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.092e-05/0.2033, allocations: 17.98 kB / 400.7 MB, free: 43.08 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.751e-05/0.2033, allocations: 5.625 kB / 400.7 MB, free: 43.08 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0002592/0.2035, allocations: 310.9 kB / 401 MB, free: 42.9 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2035, allocations: 1.219 kB / 401 MB, free: 42.9 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002963/0.2038, allocations: 64.09 kB / 401.1 MB, free: 42.88 MB / 318.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.0008613/0.2047, allocations: 451.4 kB / 401.6 MB, free: 42.67 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0003468/0.2051, allocations: 164.7 kB / 401.7 MB, free: 42.6 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 1.904e-06/0.2051, allocations: 5.219 kB / 401.7 MB, free: 42.6 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001477/0.2052, allocations: 82.5 kB / 401.8 MB, free: 42.56 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003825/0.2056, allocations: 78.05 kB / 401.9 MB, free: 42.52 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006364/0.2063, allocations: 0.5333 MB / 402.4 MB, free: 42.15 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001612/0.2065, allocations: 0.766 MB / 403.2 MB, free: 41.42 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.701e-05/0.2065, allocations: 34.27 kB / 403.2 MB, free: 41.4 MB / 318.1 MB Notification: Performance of SimCode: time 2.21e-07/0.2065, allocations: 0 / 403.2 MB, free: 41.4 MB / 318.1 MB Notification: Performance of Templates: time 0.005415/0.2119, allocations: 4.507 MB / 407.7 MB, free: 39.05 MB / 318.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)