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 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_Redge,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems.Logical.Timers.Examples.testT_OffDelay_Redge") translateModel(IndustrialControlSystems.Logical.Timers.Examples.testT_OffDelay_Redge,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems.Logical.Timers.Examples.testT_OffDelay_Redge") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001865/0.001865, allocations: 105.6 kB / 16.27 MB, free: 6.414 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.001326/0.001326, allocations: 189.8 kB / 17.2 MB, free: 5.953 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.371/1.371, allocations: 222.9 MB / 240.9 MB, free: 15.23 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 2.0.0-master/package.mo): time 0.06267/0.06267, allocations: 11.21 MB / 302.3 MB, free: 4.145 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002095/0.002095, allocations: 59.89 kB / 365.3 MB, free: 5.082 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.205/0.2071, allocations: 51.98 MB / 417.2 MB, free: 22.5 MB / 302.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Logical.Timers.Examples.testT_OffDelay_Redge): time 0.002792/0.2099, allocations: 1.991 MB / 419.2 MB, free: 20.5 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001527/0.2115, allocations: 1.264 MB / 420.5 MB, free: 19.23 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.977e-05/0.2116, allocations: 3.938 kB / 420.5 MB, free: 19.23 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006609/0.2123, allocations: 291.2 kB / 420.8 MB, free: 18.94 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003275/0.2126, allocations: 210.2 kB / 421 MB, free: 18.74 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005611/0.2132, allocations: 321.4 kB / 421.3 MB, free: 18.43 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002496/0.2135, allocations: 355.1 kB / 421.7 MB, free: 18.09 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001196/0.2136, allocations: 56.38 kB / 421.7 MB, free: 18.03 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001213/0.2137, allocations: 147.4 kB / 421.9 MB, free: 17.89 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001282/0.2138, allocations: 147.4 kB / 422 MB, free: 17.74 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.403e-05/0.2139, allocations: 20 kB / 422 MB, free: 17.72 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001647/0.2141, allocations: 111.9 kB / 422.1 MB, free: 17.61 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 7.886e-05/0.2141, allocations: 91.73 kB / 422.2 MB, free: 17.52 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 8.632e-05/0.2142, allocations: 123.3 kB / 422.3 MB, free: 17.4 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003017/0.2145, allocations: 376.7 kB / 422.7 MB, free: 17.04 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.577e-06/0.2146, allocations: 4 kB / 422.7 MB, free: 17.03 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.613e-06/0.2146, allocations: 0 / 422.7 MB, free: 17.03 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.661e-06/0.2146, allocations: 3.938 kB / 422.7 MB, free: 17.03 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.0008237/0.2154, allocations: 0.6613 MB / 423.4 MB, free: 16.3 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.312e-05/0.2154, allocations: 8.031 kB / 423.4 MB, free: 16.3 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.398e-05/0.2155, allocations: 36.55 kB / 423.4 MB, free: 16.26 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003117/0.2158, allocations: 336.1 kB / 423.7 MB, free: 15.89 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.216e-05/0.2159, allocations: 16.11 kB / 423.8 MB, free: 15.88 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.02e-05/0.2159, allocations: 16 kB / 423.8 MB, free: 15.86 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002651/0.2162, allocations: 152.2 kB / 423.9 MB, free: 15.7 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.126e-05/0.2162, allocations: 3.938 kB / 423.9 MB, free: 15.69 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.703e-05/0.2162, allocations: 0 / 423.9 MB, free: 15.69 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.691e-06/0.2162, allocations: 4 kB / 423.9 MB, free: 15.69 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001566/0.2164, allocations: 75.89 kB / 424 MB, free: 15.61 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005095/0.2169, allocations: 488.3 kB / 424.5 MB, free: 15.09 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003613/0.2173, allocations: 142.8 kB / 424.6 MB, free: 14.94 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001095/0.2174, allocations: 64.83 kB / 424.7 MB, free: 14.87 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.375e-05/0.2174, allocations: 0 / 424.7 MB, free: 14.87 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002125/0.2176, allocations: 141.5 kB / 424.8 MB, free: 14.72 MB / 302.1 MB Notification: Performance of pre-optimization done (n=18): time 1.513e-06/0.2177, allocations: 0 / 424.8 MB, free: 14.72 MB / 302.1 MB Notification: Performance of matching and sorting (n=18): time 0.0005186/0.2182, allocations: 289.1 kB / 425.1 MB, free: 14.43 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.366e-05/0.2182, allocations: 114.8 kB / 425.2 MB, free: 14.3 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00033/0.2186, allocations: 437.7 kB / 425.7 MB, free: 13.86 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.718e-05/0.2186, allocations: 33.7 kB / 425.7 MB, free: 13.82 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.888e-05/0.2187, allocations: 168.4 kB / 425.8 MB, free: 13.65 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.048e-05/0.2187, allocations: 47.39 kB / 425.9 MB, free: 13.61 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.211e-05/0.2188, allocations: 41.7 kB / 425.9 MB, free: 13.56 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 5.889e-05/0.2188, allocations: 354.7 kB / 426.3 MB, free: 13.2 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001002/0.2189, allocations: 48.22 kB / 426.3 MB, free: 13.15 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001456/0.2191, allocations: 146.7 kB / 426.5 MB, free: 12.97 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002432/0.2194, allocations: 200.3 kB / 426.7 MB, free: 12.74 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.355e-06/0.2194, allocations: 0 / 426.7 MB, free: 12.74 MB / 302.1 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.0003136/0.2197, allocations: 229 kB / 426.9 MB, free: 12.51 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.167e-05/0.2197, allocations: 8.25 kB / 426.9 MB, free: 12.5 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.13e-06/0.2197, allocations: 4 kB / 426.9 MB, free: 12.5 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.649e-05/0.2197, allocations: 4 kB / 426.9 MB, free: 12.5 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.629e-05/0.2198, allocations: 27.92 kB / 426.9 MB, free: 12.47 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.392e-06/0.2198, allocations: 4 kB / 426.9 MB, free: 12.46 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001079/0.22, allocations: 27.83 kB / 427 MB, free: 12.44 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.232e-05/0.22, allocations: 15.94 kB / 427 MB, free: 12.42 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.0001569/0.2201, allocations: 188.8 kB / 427.2 MB, free: 12.23 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.927e-05/0.2202, allocations: 31.62 kB / 427.2 MB, free: 12.2 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.531e-05/0.2202, allocations: 35.28 kB / 427.2 MB, free: 12.16 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.805e-06/0.2203, allocations: 4 kB / 427.2 MB, free: 12.16 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.459e-06/0.2203, allocations: 0 / 427.2 MB, free: 12.16 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.707e-06/0.2203, allocations: 0 / 427.2 MB, free: 12.16 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001761/0.2205, allocations: 301.3 kB / 427.5 MB, free: 11.82 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.332e-06/0.2205, allocations: 0 / 427.5 MB, free: 11.82 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.212e-05/0.2205, allocations: 20.11 kB / 427.5 MB, free: 11.8 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.743e-06/0.2205, allocations: 4 kB / 427.6 MB, free: 11.79 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.337e-05/0.2205, allocations: 4 kB / 427.6 MB, free: 11.79 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.373e-06/0.2205, allocations: 0 / 427.6 MB, free: 11.79 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.272e-06/0.2205, allocations: 0 / 427.6 MB, free: 11.79 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003408/0.2209, allocations: 271.8 kB / 427.8 MB, free: 11.51 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.554e-05/0.2209, allocations: 108.7 kB / 427.9 MB, free: 11.38 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.718e-05/0.221, allocations: 8 kB / 427.9 MB, free: 11.38 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.5e-05/0.2211, allocations: 11.98 kB / 427.9 MB, free: 11.36 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.336e-05/0.2211, allocations: 15.98 kB / 428 MB, free: 11.35 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.672e-05/0.2212, allocations: 4 kB / 428 MB, free: 11.34 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002354/0.2214, allocations: 327.1 kB / 428.3 MB, free: 11.02 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.81e-07/0.2214, allocations: 0 / 428.3 MB, free: 11.02 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002884/0.2217, allocations: 67.92 kB / 428.4 MB, free: 10.96 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.001395/0.2231, allocations: 443.9 kB / 428.8 MB, free: 10.67 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003182/0.2234, allocations: 167.7 kB / 428.9 MB, free: 10.51 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.994e-06/0.2234, allocations: 0 / 428.9 MB, free: 10.51 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001294/0.2236, allocations: 75.91 kB / 429 MB, free: 10.43 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003993/0.224, allocations: 86.17 kB / 429.1 MB, free: 10.36 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006319/0.2246, allocations: 0.5298 MB / 429.6 MB, free: 9.797 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001655/0.2248, allocations: 0.783 MB / 430.4 MB, free: 8.988 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.226e-05/0.2249, allocations: 27.44 kB / 430.4 MB, free: 8.961 MB / 302.1 MB Notification: Performance of SimCode: time 2.6e-07/0.2249, allocations: 0 / 430.4 MB, free: 8.961 MB / 302.1 MB Notification: Performance of Templates: time 0.005351/0.2302, allocations: 4.585 MB / 435 MB, free: 4.395 MB / 302.1 MB make -j1 -f IndustrialControlSystems_IndustrialControlSystems.Logical.Timers.Examples.testT_OffDelay_Redge.makefile (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 & ./IndustrialControlSystems_IndustrialControlSystems.Logical.Timers.Examples.testT_OffDelay_Redge -abortSlowSimulation -alarm=480 -lv LOG_STATS > IndustrialControlSystems_IndustrialControlSystems.Logical.Timers.Examples.testT_OffDelay_Redge.pipe 2>&1)