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/Complex 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) 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/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/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 IndustrialControlSystems with version 1.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/Complex 3.2.3+maint.om/package.mo): time 0.001051/0.001051, allocations: 182.2 kB / 15.98 MB, free: 5.77 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.05599/0.05599, allocations: 10.75 MB / 27.48 MB, free: 1.867 MB / 18.57 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.331/1.331, allocations: 205.1 MB / 235.7 MB, free: 11.73 MB / 202.8 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009199/0.0009199, allocations: 94.31 kB / 285.5 MB, free: 12.86 MB / 234.8 MB Notification: Performance of FrontEnd - loaded program: time 0.0009599/0.00096, allocations: 55.92 kB / 345.3 MB, free: 0.9766 MB / 282.8 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2153/0.2163, allocations: 49.01 MB / 394.3 MB, free: 35.57 MB / 298.8 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Logical.Timers.Examples.testT_OffDelay_Redge): time 0.002809/0.2192, allocations: 2.048 MB / 396.4 MB, free: 33.5 MB / 298.8 MB Notification: Performance of NFInst.instExpressions: time 0.001398/0.2206, allocations: 1.171 MB / 397.5 MB, free: 32.32 MB / 298.8 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001003/0.2207, allocations: 4 kB / 397.5 MB, free: 32.32 MB / 298.8 MB Notification: Performance of NFTyping.typeComponents: time 0.0006759/0.2214, allocations: 286.1 kB / 397.8 MB, free: 32.04 MB / 298.8 MB Notification: Performance of NFTyping.typeBindings: time 0.0003067/0.2217, allocations: 187.5 kB / 398 MB, free: 31.86 MB / 298.8 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005832/0.2223, allocations: 264.4 kB / 398.3 MB, free: 31.61 MB / 298.8 MB Notification: Performance of NFFlatten.flatten: time 0.0002807/0.2226, allocations: 359.1 kB / 398.6 MB, free: 31.25 MB / 298.8 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001378/0.2227, allocations: 52.38 kB / 398.7 MB, free: 31.2 MB / 298.8 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001281/0.2229, allocations: 131.4 kB / 398.8 MB, free: 31.07 MB / 298.8 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001283/0.223, allocations: 143.4 kB / 398.9 MB, free: 30.93 MB / 298.8 MB Notification: Performance of NFPackage.collectConstants: time 2.925e-05/0.223, allocations: 8 kB / 398.9 MB, free: 30.93 MB / 298.8 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001621/0.2232, allocations: 95.88 kB / 399 MB, free: 30.83 MB / 298.8 MB Notification: Performance of NFScalarize.scalarize: time 8.349e-05/0.2233, allocations: 75.73 kB / 399.1 MB, free: 30.76 MB / 298.8 MB Notification: Performance of NFVerifyModel.verify: time 9.539e-05/0.2234, allocations: 119.2 kB / 399.2 MB, free: 30.64 MB / 298.8 MB Notification: Performance of NFConvertDAE.convert: time 0.0003002/0.2237, allocations: 368.9 kB / 399.6 MB, free: 30.28 MB / 298.8 MB Notification: Performance of FrontEnd - DAE generated: time 3.697e-06/0.2237, allocations: 0 / 399.6 MB, free: 30.28 MB / 298.8 MB Notification: Performance of FrontEnd: time 7.72e-07/0.2237, allocations: 4 kB / 399.6 MB, free: 30.28 MB / 298.8 MB Notification: Performance of Transformations before backend: time 4.448e-06/0.2237, allocations: 0 / 399.6 MB, free: 30.28 MB / 298.8 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.0008168/0.2246, allocations: 0.6714 MB / 400.2 MB, free: 29.55 MB / 298.8 MB Notification: Performance of prepare preOptimizeDAE: time 3.686e-05/0.2246, allocations: 12.03 kB / 400.3 MB, free: 29.54 MB / 298.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.897e-05/0.2247, allocations: 32.47 kB / 400.3 MB, free: 29.5 MB / 298.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003238/0.225, allocations: 332.2 kB / 400.6 MB, free: 29.14 MB / 298.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.905e-05/0.225, allocations: 16.12 kB / 400.6 MB, free: 29.12 MB / 298.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.234e-05/0.2251, allocations: 15.98 kB / 400.6 MB, free: 29.11 MB / 298.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000295/0.2254, allocations: 156.1 kB / 400.8 MB, free: 28.94 MB / 298.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.105e-05/0.2254, allocations: 0 / 400.8 MB, free: 28.94 MB / 298.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.684e-05/0.2254, allocations: 3.984 kB / 400.8 MB, free: 28.94 MB / 298.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.171e-06/0.2254, allocations: 4 kB / 400.8 MB, free: 28.93 MB / 298.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001514/0.2256, allocations: 71.91 kB / 400.9 MB, free: 28.86 MB / 298.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005699/0.2262, allocations: 0.4884 MB / 401.4 MB, free: 28.32 MB / 298.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003611/0.2265, allocations: 138.8 kB / 401.5 MB, free: 28.18 MB / 298.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001081/0.2267, allocations: 60.84 kB / 401.6 MB, free: 28.12 MB / 298.8 MB Notification: Performance of preOpt evalFunc (simulation): time 2.748e-05/0.2267, allocations: 4 kB / 401.6 MB, free: 28.11 MB / 298.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000218/0.2269, allocations: 135.2 kB / 401.7 MB, free: 27.97 MB / 298.8 MB Notification: Performance of pre-optimization done (n=18): time 1.563e-06/0.2269, allocations: 0 / 401.7 MB, free: 27.97 MB / 298.8 MB Notification: Performance of matching and sorting (n=18): time 0.0004808/0.2274, allocations: 287.9 kB / 402 MB, free: 27.68 MB / 298.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.698e-05/0.2275, allocations: 110.7 kB / 402.1 MB, free: 27.55 MB / 298.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003232/0.2278, allocations: 441.7 kB / 402.5 MB, free: 27.11 MB / 298.8 MB Notification: Performance of collectPreVariables (initialization): time 1.608e-05/0.2278, allocations: 37.64 kB / 402.6 MB, free: 27.07 MB / 298.8 MB Notification: Performance of collectInitialEqns (initialization): time 7.675e-05/0.2279, allocations: 168.3 kB / 402.7 MB, free: 26.89 MB / 298.8 MB Notification: Performance of collectInitialBindings (initialization): time 3.032e-05/0.2279, allocations: 43.45 kB / 402.8 MB, free: 26.85 MB / 298.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.261e-05/0.228, allocations: 49.69 kB / 402.8 MB, free: 26.8 MB / 298.8 MB Notification: Performance of setup shared object (initialization): time 6.36e-05/0.2281, allocations: 350.8 kB / 403.2 MB, free: 26.45 MB / 298.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.453e-05/0.2282, allocations: 52.2 kB / 403.2 MB, free: 26.39 MB / 298.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001246/0.2283, allocations: 142.5 kB / 403.3 MB, free: 26.21 MB / 298.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002422/0.2285, allocations: 200.3 kB / 403.5 MB, free: 25.99 MB / 298.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.236e-06/0.2286, allocations: 0 / 403.5 MB, free: 25.99 MB / 298.8 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.0003008/0.2289, allocations: 236.9 kB / 403.8 MB, free: 25.75 MB / 298.8 MB Notification: Performance of prepare postOptimizeDAE: time 1.66e-05/0.2289, allocations: 4.25 kB / 403.8 MB, free: 25.75 MB / 298.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.963e-06/0.2289, allocations: 8.047 kB / 403.8 MB, free: 25.74 MB / 298.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.794e-05/0.2289, allocations: 7.984 kB / 403.8 MB, free: 25.73 MB / 298.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.798e-05/0.229, allocations: 27.92 kB / 403.8 MB, free: 25.7 MB / 298.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.326e-06/0.229, allocations: 4 kB / 403.8 MB, free: 25.7 MB / 298.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001049/0.2292, allocations: 23.84 kB / 403.8 MB, free: 25.68 MB / 298.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.45e-05/0.2292, allocations: 11.98 kB / 403.9 MB, free: 25.66 MB / 298.8 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.0002072/0.2294, allocations: 185.1 kB / 404 MB, free: 25.48 MB / 298.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.199e-05/0.2294, allocations: 35.61 kB / 404.1 MB, free: 25.44 MB / 298.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.331e-05/0.2295, allocations: 35.28 kB / 404.1 MB, free: 25.4 MB / 298.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.048e-06/0.2295, allocations: 4 kB / 404.1 MB, free: 25.4 MB / 298.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.841e-06/0.2295, allocations: 0 / 404.1 MB, free: 25.4 MB / 298.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.887e-06/0.2295, allocations: 0 / 404.1 MB, free: 25.4 MB / 298.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002171/0.2298, allocations: 309.2 kB / 404.4 MB, free: 25.05 MB / 298.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.302e-06/0.2298, allocations: 0 / 404.4 MB, free: 25.05 MB / 298.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.061e-05/0.2298, allocations: 7.938 kB / 404.4 MB, free: 25.04 MB / 298.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.695e-06/0.2298, allocations: 8 kB / 404.4 MB, free: 25.03 MB / 298.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.509e-05/0.2298, allocations: 7.984 kB / 404.4 MB, free: 25.02 MB / 298.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.432e-06/0.2298, allocations: 0 / 404.4 MB, free: 25.02 MB / 298.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.81e-07/0.2298, allocations: 4 kB / 404.4 MB, free: 25.02 MB / 298.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006363/0.2305, allocations: 0.92 MB / 405.4 MB, free: 24.04 MB / 298.8 MB Notification: Performance of postOpt removeConstants (simulation): time 5.361e-05/0.2306, allocations: 112.7 kB / 405.5 MB, free: 23.91 MB / 298.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.203e-05/0.2306, allocations: 11.94 kB / 405.5 MB, free: 23.9 MB / 298.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.368e-05/0.2307, allocations: 7.984 kB / 405.5 MB, free: 23.89 MB / 298.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.748e-05/0.2308, allocations: 11.98 kB / 405.5 MB, free: 23.88 MB / 298.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.122e-05/0.2308, allocations: 11.98 kB / 405.5 MB, free: 23.87 MB / 298.8 MB Notification: Performance of sorting global known variables: time 0.0002669/0.2311, allocations: 319.2 kB / 405.8 MB, free: 23.56 MB / 298.8 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2311, allocations: 0 / 405.8 MB, free: 23.56 MB / 298.8 MB Notification: Performance of remove unused functions: time 0.0003994/0.2315, allocations: 67.92 kB / 405.9 MB, free: 23.49 MB / 298.8 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.0008195/0.2323, allocations: 453.8 kB / 406.3 MB, free: 23.07 MB / 298.8 MB Notification: Performance of simCode: created initialization part: time 0.0002995/0.2326, allocations: 155.7 kB / 406.5 MB, free: 22.92 MB / 298.8 MB Notification: Performance of simCode: created event and clocks part: time 2.454e-06/0.2326, allocations: 0 / 406.5 MB, free: 22.92 MB / 298.8 MB Notification: Performance of simCode: created simulation system equations: time 0.0001287/0.2328, allocations: 79.91 kB / 406.6 MB, free: 22.84 MB / 298.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003837/0.2331, allocations: 77.73 kB / 406.6 MB, free: 22.76 MB / 298.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008121/0.234, allocations: 0.7352 MB / 407.4 MB, free: 21.99 MB / 298.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002457/0.2342, allocations: 0.7871 MB / 408.2 MB, free: 21.18 MB / 298.8 MB Notification: Performance of simCode: alias equations: time 0.0001326/0.2344, allocations: 43.2 kB / 408.2 MB, free: 21.13 MB / 298.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.844e-05/0.2344, allocations: 35.36 kB / 408.2 MB, free: 21.1 MB / 298.8 MB Notification: Performance of SimCode: time 1.91e-07/0.2344, allocations: 0 / 408.2 MB, free: 21.1 MB / 298.8 MB Notification: Performance of Templates: time 0.00647/0.2409, allocations: 4.193 MB / 412.4 MB, free: 16.91 MB / 298.8 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)