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.001014/0.001014, allocations: 176.1 kB / 7.643 MB, free: 1.414 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.05922/0.05922, allocations: 10.66 MB / 18.73 MB, free: 1.316 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.597/1.597, allocations: 205.3 MB / 226.9 MB, free: 7.902 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009625/0.0009625, allocations: 90.41 kB / 277.3 MB, free: 5.426 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.405e-05/1.407e-05, allocations: 0 / 333.5 MB, free: 28.42 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1005/0.1005, allocations: 50 MB / 383.5 MB, free: 10.37 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3725/0.4731, allocations: 80.92 MB / 464.5 MB, free: 3.82 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003133/0.4734, allocations: 89.62 kB / 464.5 MB, free: 3.773 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02587/0.4993, allocations: 9.246 MB / 473.8 MB, free: 12.13 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.543e-06/0.4994, allocations: 0 / 473.8 MB, free: 12.13 MB / 346.7 MB Notification: Performance of Transformations before backend: time 3.949e-05/0.4994, allocations: 12 kB / 473.8 MB, free: 12.12 MB / 346.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.0009969/0.5004, allocations: 0.5797 MB / 474.4 MB, free: 11.5 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.349e-05/0.5005, allocations: 8.031 kB / 474.4 MB, free: 11.49 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001557/0.5006, allocations: 39.48 kB / 474.4 MB, free: 11.45 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007602/0.5014, allocations: 347.2 kB / 474.8 MB, free: 11.11 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.471e-05/0.5015, allocations: 4 kB / 474.8 MB, free: 11.11 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.52e-05/0.5015, allocations: 12 kB / 474.8 MB, free: 11.09 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001688/0.5017, allocations: 61.11 kB / 474.8 MB, free: 11.06 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002552/0.5019, allocations: 140.3 kB / 475 MB, free: 10.93 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.247e-06/0.502, allocations: 0 / 475 MB, free: 10.93 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.85e-05/0.502, allocations: 0 / 475 MB, free: 10.93 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.175e-06/0.502, allocations: 4 kB / 475 MB, free: 10.93 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008237/0.5028, allocations: 493.5 kB / 475.5 MB, free: 10.49 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003012/0.5031, allocations: 131.7 kB / 475.6 MB, free: 10.39 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.686e-05/0.5032, allocations: 62.28 kB / 475.7 MB, free: 10.34 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.699e-05/0.5033, allocations: 0 / 475.7 MB, free: 10.34 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000217/0.5035, allocations: 130.8 kB / 475.8 MB, free: 10.23 MB / 346.7 MB Notification: Performance of pre-optimization done (n=18): time 1.412e-06/0.5035, allocations: 0 / 475.8 MB, free: 10.23 MB / 346.7 MB Notification: Performance of matching and sorting (n=18): time 0.00054/0.5041, allocations: 229.5 kB / 476 MB, free: 10.04 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.087e-05/0.5042, allocations: 114.4 kB / 476.1 MB, free: 9.91 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005091/0.5047, allocations: 382.8 kB / 476.5 MB, free: 9.613 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 3.278e-05/0.5047, allocations: 29.7 kB / 476.5 MB, free: 9.578 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001147/0.5048, allocations: 161.6 kB / 476.7 MB, free: 9.469 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.023e-05/0.5049, allocations: 46.08 kB / 476.7 MB, free: 9.43 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.085e-06/0.5049, allocations: 0 / 476.7 MB, free: 9.43 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001821/0.5051, allocations: 345.6 kB / 477.1 MB, free: 9.098 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.93e-05/0.5052, allocations: 39.48 kB / 477.1 MB, free: 9.07 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001511/0.5053, allocations: 144.4 kB / 477.2 MB, free: 8.914 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001241/0.5055, allocations: 61.62 kB / 477.3 MB, free: 8.871 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.394e-06/0.5055, allocations: 0 / 477.3 MB, free: 8.871 MB / 346.7 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.000299/0.5058, allocations: 193.9 kB / 477.5 MB, free: 8.711 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.135e-05/0.5058, allocations: 15.97 kB / 477.5 MB, free: 8.695 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.113e-06/0.5058, allocations: 0 / 477.5 MB, free: 8.695 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.92e-05/0.5059, allocations: 7.953 kB / 477.5 MB, free: 8.688 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001326/0.506, allocations: 32.09 kB / 477.5 MB, free: 8.656 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.258e-05/0.506, allocations: 11.94 kB / 477.6 MB, free: 8.645 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001376/0.5062, allocations: 15.84 kB / 477.6 MB, free: 8.629 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.821e-05/0.5062, allocations: 11.12 kB / 477.6 MB, free: 8.621 MB / 346.7 MB Warning: Assuming fixed start value for the following 3 variables: timer.Sd:DISCRETE(fixed = false ) type: Boolean timer.Q:DISCRETE(fixed = false ) "status of the timer" type: Boolean timer.tr:DISCRETE(fixed = false ) "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,$PRE.timer.run,timer.run,$PRE.timer.startTime,timer.startTime,$PRE.timer.Q,timer.Q,$PRE.timer.tr,timer.tr,$whenCondition3,$PRE.ResetSignal.combiTimeTable.nextTimeEvent,$whenCondition2,$PRE.SetSignal.combiTimeTable.nextTimeEvent,$whenCondition1,ResetSignal.y,ResetSignal.combiTimeTable.nextTimeEvent,$PRE.ResetSignal.combiTimeTable.nextTimeEventScaled,ResetSignal.combiTimeTable.nextTimeEventScaled,SetSignal.y,SetSignal.combiTimeTable.nextTimeEvent,$PRE.SetSignal.combiTimeTable.nextTimeEventScaled,SetSignal.combiTimeTable.nextTimeEventScaled) * Number of discrete 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001768/0.5064, allocations: 137.3 kB / 477.7 MB, free: 8.488 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.167e-05/0.5064, allocations: 31.62 kB / 477.7 MB, free: 8.457 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005029/0.5069, allocations: 247.1 kB / 478 MB, free: 8.266 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.617e-06/0.507, allocations: 0 / 478 MB, free: 8.266 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.779e-06/0.507, allocations: 0 / 478 MB, free: 8.266 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.139e-05/0.507, allocations: 7.953 kB / 478 MB, free: 8.258 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003114/0.5073, allocations: 289.2 kB / 478.3 MB, free: 7.984 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.265e-06/0.5073, allocations: 4 kB / 478.3 MB, free: 7.98 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.146e-05/0.5074, allocations: 11.94 kB / 478.3 MB, free: 7.969 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.925e-06/0.5074, allocations: 4 kB / 478.3 MB, free: 7.965 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.178e-05/0.5074, allocations: 11.42 kB / 478.3 MB, free: 7.957 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.739e-06/0.5074, allocations: 4 kB / 478.3 MB, free: 7.953 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.497e-06/0.5075, allocations: 0 / 478.3 MB, free: 7.953 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004589/0.5079, allocations: 267.6 kB / 478.6 MB, free: 7.719 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001213/0.5081, allocations: 126.7 kB / 478.7 MB, free: 7.586 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.485e-05/0.5081, allocations: 8 kB / 478.7 MB, free: 7.578 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001055/0.5082, allocations: 7.984 kB / 478.7 MB, free: 7.57 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.913e-05/0.5083, allocations: 19.48 kB / 478.7 MB, free: 7.555 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.717e-05/0.5083, allocations: 7.984 kB / 478.7 MB, free: 7.547 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0003474/0.5087, allocations: 299 kB / 479 MB, free: 7.324 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.5087, allocations: 0 / 479 MB, free: 7.324 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0004522/0.5091, allocations: 74.86 kB / 479.1 MB, free: 7.254 MB / 346.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) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0008872/0.51, allocations: 386.4 kB / 479.5 MB, free: 6.883 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.000295/0.5104, allocations: 151.7 kB / 479.6 MB, free: 6.773 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.494e-06/0.5104, allocations: 0 / 479.6 MB, free: 6.773 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001171/0.5105, allocations: 76.92 kB / 479.7 MB, free: 6.723 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004113/0.5109, allocations: 69.59 kB / 479.8 MB, free: 6.672 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007144/0.5116, allocations: 402.5 kB / 480.2 MB, free: 6.312 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000405/0.5121, allocations: 0.7854 MB / 481 MB, free: 5.508 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0001391/0.5122, allocations: 48.98 kB / 481 MB, free: 5.465 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.422e-05/0.5123, allocations: 30.69 kB / 481 MB, free: 5.438 MB / 346.7 MB Notification: Performance of SimCode: time 3.71e-07/0.5123, allocations: 3.938 kB / 481 MB, free: 5.434 MB / 346.7 MB Notification: Performance of Templates: time 0.007955/0.5202, allocations: 3.913 MB / 484.9 MB, free: 1.527 MB / 346.7 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)