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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 2.0.0-master/package.mo", uses=false) Using package IndustrialControlSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 2.0.0-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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.001511/0.001512, allocations: 103.5 kB / 16.27 MB, free: 6.418 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.001956/0.001956, allocations: 190.1 kB / 17.2 MB, free: 5.949 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.429/1.429, allocations: 222.9 MB / 240.9 MB, free: 15.22 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 2.0.0-master/package.mo): time 0.06629/0.06629, allocations: 11.19 MB / 302.2 MB, free: 4.074 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001944/0.001944, allocations: 71.89 kB / 365.3 MB, free: 5 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1952/0.1972, allocations: 51.97 MB / 417.2 MB, free: 22.48 MB / 302.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Logical.Timers.Examples.testT_OffDelay_Fedge): time 0.002878/0.2001, allocations: 1.999 MB / 419.2 MB, free: 20.48 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.00157/0.2017, allocations: 1.257 MB / 420.5 MB, free: 19.21 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000106/0.2018, allocations: 3.938 kB / 420.5 MB, free: 19.21 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006649/0.2025, allocations: 295.2 kB / 420.8 MB, free: 18.93 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003415/0.2029, allocations: 195.3 kB / 421 MB, free: 18.74 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000592/0.2035, allocations: 323.2 kB / 421.3 MB, free: 18.43 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002554/0.2037, allocations: 351.2 kB / 421.6 MB, free: 18.09 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001262/0.2039, allocations: 54.91 kB / 421.7 MB, free: 18.04 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001261/0.204, allocations: 147.4 kB / 421.8 MB, free: 17.89 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001315/0.2041, allocations: 147.4 kB / 422 MB, free: 17.75 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.467e-05/0.2042, allocations: 20 kB / 422 MB, free: 17.73 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001838/0.2044, allocations: 107.9 kB / 422.1 MB, free: 17.62 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 8.316e-05/0.2045, allocations: 87.28 kB / 422.2 MB, free: 17.54 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 9.436e-05/0.2046, allocations: 131.2 kB / 422.3 MB, free: 17.41 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003039/0.2049, allocations: 364.8 kB / 422.7 MB, free: 17.05 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.028e-06/0.2049, allocations: 0 / 422.7 MB, free: 17.05 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.312e-06/0.2049, allocations: 0 / 422.7 MB, free: 17.05 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.36e-06/0.2049, allocations: 0 / 422.7 MB, free: 17.05 MB / 302.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.0007779/0.2057, allocations: 0.6613 MB / 423.3 MB, free: 16.33 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.032e-05/0.2057, allocations: 16.03 kB / 423.4 MB, free: 16.32 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.656e-05/0.2058, allocations: 32.56 kB / 423.4 MB, free: 16.29 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000316/0.2061, allocations: 332.2 kB / 423.7 MB, free: 15.92 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.581e-05/0.2061, allocations: 12.12 kB / 423.7 MB, free: 15.91 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.802e-05/0.2062, allocations: 15.94 kB / 423.7 MB, free: 15.89 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002623/0.2064, allocations: 150.4 kB / 423.9 MB, free: 15.73 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.081e-05/0.2065, allocations: 4 kB / 423.9 MB, free: 15.73 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.774e-05/0.2065, allocations: 4 kB / 423.9 MB, free: 15.72 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.368e-06/0.2065, allocations: 0 / 423.9 MB, free: 15.72 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001531/0.2066, allocations: 71.89 kB / 424 MB, free: 15.65 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00053/0.2072, allocations: 492.2 kB / 424.4 MB, free: 15.12 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003553/0.2076, allocations: 146.8 kB / 424.6 MB, free: 14.97 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001071/0.2077, allocations: 52.84 kB / 424.6 MB, free: 14.91 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.703e-05/0.2077, allocations: 7.984 kB / 424.6 MB, free: 14.91 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002158/0.2079, allocations: 143.2 kB / 424.8 MB, free: 14.75 MB / 302.1 MB Notification: Performance of pre-optimization done (n=18): time 1.553e-06/0.2079, allocations: 0 / 424.8 MB, free: 14.75 MB / 302.1 MB Notification: Performance of matching and sorting (n=18): time 0.0005212/0.2085, allocations: 287.1 kB / 425.1 MB, free: 14.47 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.521e-05/0.2085, allocations: 106.8 kB / 425.2 MB, free: 14.34 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003244/0.2088, allocations: 416.5 kB / 425.6 MB, free: 13.93 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.74e-05/0.2089, allocations: 33.69 kB / 425.6 MB, free: 13.89 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.676e-05/0.2089, allocations: 164.3 kB / 425.8 MB, free: 13.72 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.401e-05/0.209, allocations: 51.44 kB / 425.8 MB, free: 13.67 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.261e-05/0.209, allocations: 49.7 kB / 425.9 MB, free: 13.62 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 6.46e-05/0.2091, allocations: 350.7 kB / 426.2 MB, free: 13.27 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.853e-05/0.2092, allocations: 44.22 kB / 426.3 MB, free: 13.22 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000133/0.2094, allocations: 150.8 kB / 426.4 MB, free: 13.03 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000257/0.2096, allocations: 192.3 kB / 426.6 MB, free: 12.81 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.294e-06/0.2096, allocations: 0 / 426.6 MB, free: 12.81 MB / 302.1 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.0003187/0.21, allocations: 229.1 kB / 426.8 MB, free: 12.58 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.324e-05/0.21, allocations: 4 kB / 426.8 MB, free: 12.58 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.081e-06/0.21, allocations: 4 kB / 426.8 MB, free: 12.57 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.687e-05/0.21, allocations: 4 kB / 426.8 MB, free: 12.57 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.801e-05/0.2101, allocations: 27.92 kB / 426.9 MB, free: 12.54 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.254e-06/0.2101, allocations: 4 kB / 426.9 MB, free: 12.54 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001068/0.2102, allocations: 28.08 kB / 426.9 MB, free: 12.51 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.297e-05/0.2103, allocations: 19.94 kB / 426.9 MB, free: 12.49 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.0001616/0.2104, allocations: 189 kB / 427.1 MB, free: 12.3 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.98e-05/0.2105, allocations: 27.62 kB / 427.1 MB, free: 12.27 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.578e-05/0.2105, allocations: 31.28 kB / 427.1 MB, free: 12.24 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.316e-06/0.2105, allocations: 4 kB / 427.1 MB, free: 12.23 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.488e-06/0.2105, allocations: 7.938 kB / 427.2 MB, free: 12.23 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.477e-06/0.2106, allocations: 0 / 427.2 MB, free: 12.23 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001764/0.2107, allocations: 305.2 kB / 427.5 MB, free: 11.88 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.242e-06/0.2107, allocations: 0 / 427.5 MB, free: 11.88 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.028e-05/0.2108, allocations: 12 kB / 427.5 MB, free: 11.87 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.863e-06/0.2108, allocations: 0 / 427.5 MB, free: 11.87 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.307e-05/0.2108, allocations: 7.984 kB / 427.5 MB, free: 11.86 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.633e-06/0.2108, allocations: 0 / 427.5 MB, free: 11.86 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.42e-07/0.2108, allocations: 0 / 427.5 MB, free: 11.86 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003449/0.2112, allocations: 267.5 kB / 427.7 MB, free: 11.58 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.554e-05/0.2112, allocations: 100.8 kB / 427.8 MB, free: 11.46 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.365e-05/0.2113, allocations: 11.98 kB / 427.8 MB, free: 11.45 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.372e-05/0.2114, allocations: 4 kB / 427.8 MB, free: 11.45 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.929e-05/0.2114, allocations: 23.91 kB / 427.9 MB, free: 11.43 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.659e-05/0.2114, allocations: 4 kB / 427.9 MB, free: 11.42 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.000227/0.2117, allocations: 303 kB / 428.2 MB, free: 11.12 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.2117, allocations: 0 / 428.2 MB, free: 11.12 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002925/0.212, allocations: 83.77 kB / 428.3 MB, free: 11.04 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.0014/0.2134, allocations: 436.5 kB / 428.7 MB, free: 10.77 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003371/0.2137, allocations: 167.7 kB / 428.8 MB, free: 10.6 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.234e-06/0.2137, allocations: 0 / 428.8 MB, free: 10.6 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001315/0.2139, allocations: 72.47 kB / 428.9 MB, free: 10.53 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003864/0.2143, allocations: 80.72 kB / 429 MB, free: 10.46 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006561/0.2149, allocations: 0.5357 MB / 429.5 MB, free: 9.891 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001636/0.2151, allocations: 0.7714 MB / 430.3 MB, free: 9.094 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.52e-05/0.2152, allocations: 31.42 kB / 430.3 MB, free: 9.062 MB / 302.1 MB Notification: Performance of SimCode: time 2.11e-07/0.2152, allocations: 0 / 430.3 MB, free: 9.062 MB / 302.1 MB Notification: Performance of Templates: time 0.005476/0.2207, allocations: 4.506 MB / 434.8 MB, free: 4.574 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)