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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001986/0.001986, allocations: 85.48 kB / 19.44 MB, free: 340 kB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002227/0.002227, allocations: 173.2 kB / 22.76 MB, free: 1.66 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.583/1.583, allocations: 177.1 MB / 203.1 MB, free: 5.609 MB / 186.7 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 2.0.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 2.0.0/package.mo): time 0.07354/0.07354, allocations: 8.617 MB / 268.2 MB, free: 4.945 MB / 250.7 MB " [Timeout remaining time 180] Using package IndustrialControlSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 2.0.0/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(IndustrialControlSystems.Logical.Timers.Examples.testT_OffDelay_Redge,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems.Logical.Timers.Examples.testT_OffDelay_Redge") translateModel(IndustrialControlSystems.Logical.Timers.Examples.testT_OffDelay_Redge,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems.Logical.Timers.Examples.testT_OffDelay_Redge") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.953e-06/1.953e-06, allocations: 0 / 340.1 MB, free: 8.738 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.622e-05/2.817e-05, allocations: 4.703 kB / 340.1 MB, free: 8.734 MB / 266.7 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Logical.Timers.Examples.testT_OffDelay_Redge): time 0.002588/0.002616, allocations: 2.018 MB / 342.2 MB, free: 6.699 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001854/0.004471, allocations: 1.364 MB / 343.5 MB, free: 5.328 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001118/0.004582, allocations: 7.938 kB / 343.5 MB, free: 5.32 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0007918/0.005374, allocations: 311.1 kB / 343.8 MB, free: 5.016 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004759/0.00585, allocations: 266.9 kB / 344.1 MB, free: 4.754 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004804/0.00633, allocations: 255.2 kB / 344.3 MB, free: 4.504 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002784/0.006609, allocations: 375 kB / 344.7 MB, free: 4.137 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000118/0.006727, allocations: 36.91 kB / 344.8 MB, free: 4.102 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001995/0.006926, allocations: 199.5 kB / 344.9 MB, free: 3.906 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001531/0.007079, allocations: 147.6 kB / 345.1 MB, free: 3.762 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 4.035e-05/0.00712, allocations: 20 kB / 345.1 MB, free: 3.742 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002004/0.00732, allocations: 119.8 kB / 345.2 MB, free: 3.625 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 9.039e-05/0.007411, allocations: 95.67 kB / 345.3 MB, free: 3.531 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 8.027e-05/0.007491, allocations: 75.77 kB / 345.4 MB, free: 3.457 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000378/0.007869, allocations: 398.7 kB / 345.8 MB, free: 3.066 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.867e-06/0.007873, allocations: 0 / 345.8 MB, free: 3.066 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.093e-06/0.007874, allocations: 0 / 345.8 MB, free: 3.066 MB / 266.7 MB Notification: Performance of Transformations before backend: time 5.981e-06/0.00788, allocations: 0 / 345.8 MB, free: 3.066 MB / 266.7 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.0008563/0.008736, allocations: 0.7475 MB / 346.5 MB, free: 2.27 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.035e-05/0.008766, allocations: 12.03 kB / 346.5 MB, free: 2.258 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.73e-05/0.008854, allocations: 44.69 kB / 346.6 MB, free: 2.215 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003556/0.009209, allocations: 290.9 kB / 346.9 MB, free: 1.902 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.977e-05/0.009229, allocations: 8.562 kB / 346.9 MB, free: 1.895 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.08e-05/0.00925, allocations: 8.375 kB / 346.9 MB, free: 1.887 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002238/0.009474, allocations: 131.9 kB / 347 MB, free: 1.754 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.028e-05/0.009484, allocations: 0 / 347 MB, free: 1.754 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.653e-05/0.009501, allocations: 7.984 kB / 347 MB, free: 1.746 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.58e-06/0.009506, allocations: 11.98 kB / 347 MB, free: 1.734 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001572/0.009663, allocations: 59.97 kB / 347.1 MB, free: 1.676 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005794/0.01024, allocations: 499.3 kB / 347.6 MB, free: 1.152 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003629/0.01061, allocations: 143.3 kB / 347.7 MB, free: 1 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001027/0.01071, allocations: 51.67 kB / 347.8 MB, free: 0.9453 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.997e-05/0.01073, allocations: 4 kB / 347.8 MB, free: 0.9414 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002192/0.01095, allocations: 140.9 kB / 347.9 MB, free: 0.7891 MB / 266.7 MB Notification: Performance of pre-optimization done (n=18): time 1.312e-06/0.01095, allocations: 0 / 347.9 MB, free: 0.7891 MB / 266.7 MB Notification: Performance of matching and sorting (n=18): time 0.0005219/0.01147, allocations: 279.8 kB / 348.2 MB, free: 0.5117 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.904e-05/0.0115, allocations: 67.33 kB / 348.3 MB, free: 444 kB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004323/0.01193, allocations: 490.7 kB / 348.7 MB, free: 15.93 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 3.636e-05/0.01197, allocations: 33.7 kB / 348.8 MB, free: 15.89 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002398/0.01221, allocations: 243.2 kB / 349 MB, free: 15.65 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.174e-05/0.01228, allocations: 59.62 kB / 349.1 MB, free: 15.59 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001018/0.01238, allocations: 59.36 kB / 349.1 MB, free: 15.53 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0003685/0.01275, allocations: 0.547 MB / 349.7 MB, free: 14.97 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001125/0.01286, allocations: 40.22 kB / 349.7 MB, free: 14.93 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002718/0.01313, allocations: 212.8 kB / 349.9 MB, free: 14.66 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003734/0.01351, allocations: 216.7 kB / 350.1 MB, free: 14.41 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.815e-06/0.01351, allocations: 4 kB / 350.1 MB, free: 14.4 MB / 282.7 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.0004506/0.01396, allocations: 229.2 kB / 350.4 MB, free: 14.17 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.661e-05/0.01398, allocations: 8 kB / 350.4 MB, free: 14.16 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.446e-06/0.01399, allocations: 4 kB / 350.4 MB, free: 14.16 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.134e-05/0.01401, allocations: 4 kB / 350.4 MB, free: 14.16 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001319/0.01414, allocations: 35.92 kB / 350.4 MB, free: 14.12 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.327e-06/0.01415, allocations: 4.25 kB / 350.4 MB, free: 14.12 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001504/0.0143, allocations: 31.81 kB / 350.4 MB, free: 14.09 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.764e-05/0.01432, allocations: 8 kB / 350.4 MB, free: 14.08 MB / 282.7 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.0002555/0.01457, allocations: 191.3 kB / 350.6 MB, free: 13.88 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.85e-05/0.01466, allocations: 55.69 kB / 350.7 MB, free: 13.82 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005798/0.01524, allocations: 244.8 kB / 350.9 MB, free: 13.58 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.741e-06/0.01525, allocations: 4 kB / 350.9 MB, free: 13.57 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.38e-06/0.01525, allocations: 4 kB / 350.9 MB, free: 13.57 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.811e-06/0.01526, allocations: 0 / 350.9 MB, free: 13.57 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004529/0.01571, allocations: 288.4 kB / 351.2 MB, free: 13.25 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.392e-06/0.01571, allocations: 0 / 351.2 MB, free: 13.25 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.999e-05/0.01576, allocations: 8 kB / 351.2 MB, free: 13.25 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.65e-06/0.01577, allocations: 3.938 kB / 351.2 MB, free: 13.24 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.74e-05/0.01579, allocations: 4 kB / 351.2 MB, free: 13.24 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.508e-06/0.01579, allocations: 3.984 kB / 351.2 MB, free: 13.23 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.32e-07/0.01579, allocations: 0 / 351.2 MB, free: 13.23 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005721/0.01636, allocations: 290.8 kB / 351.5 MB, free: 12.93 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.516e-05/0.01644, allocations: 43.69 kB / 351.6 MB, free: 12.89 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.932e-05/0.01649, allocations: 7.938 kB / 351.6 MB, free: 12.88 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.731e-05/0.01658, allocations: 11.98 kB / 351.6 MB, free: 12.87 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.82e-05/0.01665, allocations: 15.97 kB / 351.6 MB, free: 12.85 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.5e-05/0.01668, allocations: 8 kB / 351.6 MB, free: 12.84 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0004031/0.01708, allocations: 319.1 kB / 351.9 MB, free: 12.54 MB / 282.7 MB Notification: Performance of sort global known variables: time 8e-08/0.01708, allocations: 0 / 351.9 MB, free: 12.54 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0003643/0.01745, allocations: 67.92 kB / 352 MB, free: 12.47 MB / 282.7 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,SetSignal.combiTimeTable.nextTimeEvent,ResetSignal.combiTimeTable.nextTimeEvent,SetSignal.combiTimeTable.nextTimeEventScaled,ResetSignal.combiTimeTable.nextTimeEventScaled) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (19): * Single equations (assignments): 11 * 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.003039/0.02048, allocations: 484.5 kB / 352.5 MB, free: 12.18 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0004037/0.02089, allocations: 164.8 kB / 352.6 MB, free: 12.01 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 1.833e-06/0.02089, allocations: 0 / 352.6 MB, free: 12.01 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001785/0.02107, allocations: 83.59 kB / 352.7 MB, free: 11.93 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004776/0.02155, allocations: 89.61 kB / 352.8 MB, free: 11.85 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009688/0.02251, allocations: 498.7 kB / 353.3 MB, free: 11.33 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001967/0.02271, allocations: 166.6 kB / 353.4 MB, free: 11.15 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0001242/0.02284, allocations: 43.2 kB / 353.5 MB, free: 11.11 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.046e-05/0.02292, allocations: 36.48 kB / 353.5 MB, free: 11.07 MB / 282.7 MB Notification: Performance of SimCode: time 5.11e-07/0.02292, allocations: 0 / 353.5 MB, free: 11.07 MB / 282.7 MB Notification: Performance of Templates: time 0.01061/0.03353, allocations: 4.506 MB / 358 MB, free: 6.637 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f IndustrialControlSystems_IndustrialControlSystems.Logical.Timers.Examples.testT_OffDelay_Redge.makefile [Timeout 660] (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=240 -lv LOG_STATS > IndustrialControlSystems_IndustrialControlSystems.Logical.Timers.Examples.testT_OffDelay_Redge.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 4.703778970055282]