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 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) Using package IndustrialControlSystems with version 1.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/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 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.001132/0.001132, allocations: 109.8 kB / 16.41 MB, free: 6.492 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.001086/0.001086, allocations: 189.4 kB / 17.34 MB, free: 5.762 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.413/1.413, allocations: 205.1 MB / 223.2 MB, free: 12.23 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.05653/0.05653, allocations: 10.74 MB / 281.3 MB, free: 1.297 MB / 222.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001467/0.001467, allocations: 72.08 kB / 391.5 MB, free: 45.98 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08872/0.0902, allocations: 49.03 MB / 440.5 MB, free: 3.828 MB / 318.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Logical.Timers.Examples.testT_OffDelay_Redge): time 0.003146/0.09338, allocations: 1.986 MB / 442.5 MB, free: 1.824 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001536/0.09494, allocations: 1.174 MB / 443.7 MB, free: 0.6406 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001453/0.09511, allocations: 11.94 kB / 443.7 MB, free: 0.6289 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008178/0.09593, allocations: 302.4 kB / 444 MB, free: 344 kB / 318.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Utilities/Strings.mo:139:3-175:14:writable] Warning: Pure function 'Modelica.Utilities.Strings.isEmpty' contains a call to impure function 'Modelica.Utilities.Strings.Advanced.skipWhiteSpace'. Notification: Performance of NFTyping.typeBindings: time 0.0004034/0.09635, allocations: 207.3 kB / 444.2 MB, free: 136 kB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007269/0.09708, allocations: 283.1 kB / 444.5 MB, free: 15.86 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004031/0.09749, allocations: 351.1 kB / 444.8 MB, free: 15.52 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001469/0.09765, allocations: 52.31 kB / 444.9 MB, free: 15.46 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001823/0.09784, allocations: 155.4 kB / 445 MB, free: 15.31 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000178/0.09803, allocations: 143.4 kB / 445.2 MB, free: 15.17 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.368e-05/0.09808, allocations: 20 kB / 445.2 MB, free: 15.15 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002295/0.09832, allocations: 119.8 kB / 445.3 MB, free: 15.03 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 9.88e-05/0.09843, allocations: 87.73 kB / 445.4 MB, free: 14.95 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001175/0.09855, allocations: 127.2 kB / 445.5 MB, free: 14.82 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004618/0.09902, allocations: 382.7 kB / 445.9 MB, free: 14.45 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.338e-06/0.09904, allocations: 0 / 445.9 MB, free: 14.45 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.693e-06/0.09905, allocations: 3.938 kB / 445.9 MB, free: 14.44 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.576e-06/0.09906, allocations: 0 / 445.9 MB, free: 14.44 MB / 334.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.001011/0.1001, allocations: 0.6691 MB / 446.6 MB, free: 13.71 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.968e-05/0.1001, allocations: 12.02 kB / 446.6 MB, free: 13.7 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.527e-05/0.1002, allocations: 44.47 kB / 446.6 MB, free: 13.66 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000424/0.1006, allocations: 344.1 kB / 446.9 MB, free: 13.28 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.202e-05/0.1007, allocations: 8.125 kB / 447 MB, free: 13.27 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.685e-05/0.1007, allocations: 12 kB / 447 MB, free: 13.26 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003537/0.1011, allocations: 156 kB / 447.1 MB, free: 13.09 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.327e-06/0.1011, allocations: 0 / 447.1 MB, free: 13.09 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.991e-05/0.1011, allocations: 8 kB / 447.1 MB, free: 13.09 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.46e-06/0.1011, allocations: 4 kB / 447.1 MB, free: 13.08 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001828/0.1013, allocations: 71.89 kB / 447.2 MB, free: 13.01 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007212/0.1021, allocations: 484.3 kB / 447.7 MB, free: 12.49 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004173/0.1025, allocations: 150.7 kB / 447.8 MB, free: 12.33 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001345/0.1026, allocations: 60.92 kB / 447.9 MB, free: 12.27 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.906e-05/0.1027, allocations: 4 kB / 447.9 MB, free: 12.27 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002667/0.1029, allocations: 133.5 kB / 448 MB, free: 12.12 MB / 334.1 MB Notification: Performance of pre-optimization done (n=18): time 1.733e-06/0.103, allocations: 4 kB / 448 MB, free: 12.12 MB / 334.1 MB Notification: Performance of matching and sorting (n=18): time 0.000626/0.1036, allocations: 289.1 kB / 448.3 MB, free: 11.83 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.278e-05/0.1037, allocations: 110.8 kB / 448.4 MB, free: 11.7 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004814/0.1042, allocations: 445.6 kB / 448.8 MB, free: 11.25 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.689e-05/0.1042, allocations: 29.7 kB / 448.9 MB, free: 11.22 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001428/0.1043, allocations: 164.4 kB / 449 MB, free: 11.05 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.447e-05/0.1044, allocations: 43.45 kB / 449.1 MB, free: 11.01 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.455e-05/0.1045, allocations: 45.7 kB / 449.1 MB, free: 10.96 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001451/0.1046, allocations: 354.7 kB / 449.5 MB, free: 10.6 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000108/0.1047, allocations: 44.22 kB / 449.5 MB, free: 10.56 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001871/0.1049, allocations: 148.6 kB / 449.7 MB, free: 10.37 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003176/0.1053, allocations: 196.4 kB / 449.8 MB, free: 10.15 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.655e-06/0.1053, allocations: 0 / 449.8 MB, free: 10.15 MB / 334.1 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.0003864/0.1057, allocations: 229.1 kB / 450.1 MB, free: 9.918 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.752e-05/0.1057, allocations: 9.094 kB / 450.1 MB, free: 9.91 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.595e-06/0.1057, allocations: 0 / 450.1 MB, free: 9.91 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.79e-05/0.1057, allocations: 8.062 kB / 450.1 MB, free: 9.902 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001144/0.1058, allocations: 35.92 kB / 450.1 MB, free: 9.867 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.927e-06/0.1059, allocations: 4 kB / 450.1 MB, free: 9.863 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001205/0.106, allocations: 23.83 kB / 450.1 MB, free: 9.84 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.515e-05/0.106, allocations: 12 kB / 450.2 MB, free: 9.828 MB / 334.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.0002235/0.1062, allocations: 200.3 kB / 450.4 MB, free: 9.621 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.647e-05/0.1063, allocations: 27.67 kB / 450.4 MB, free: 9.594 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.572e-05/0.1064, allocations: 39.25 kB / 450.4 MB, free: 9.559 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.168e-06/0.1064, allocations: 4 kB / 450.4 MB, free: 9.555 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.72e-06/0.1064, allocations: 0 / 450.4 MB, free: 9.555 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.871e-06/0.1064, allocations: 3.984 kB / 450.4 MB, free: 9.551 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002804/0.1067, allocations: 313.3 kB / 450.7 MB, free: 9.195 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.202e-06/0.1067, allocations: 3.938 kB / 450.7 MB, free: 9.191 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.373e-05/0.1067, allocations: 8 kB / 450.7 MB, free: 9.184 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.894e-06/0.1067, allocations: 0 / 450.7 MB, free: 9.184 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.358e-05/0.1068, allocations: 0 / 450.7 MB, free: 9.184 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.563e-06/0.1068, allocations: 4 kB / 450.8 MB, free: 9.18 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.154e-06/0.1068, allocations: 3.984 kB / 450.8 MB, free: 9.176 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004314/0.1072, allocations: 263.7 kB / 451 MB, free: 8.902 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.716e-05/0.1073, allocations: 108.8 kB / 451.1 MB, free: 8.777 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.883e-05/0.1074, allocations: 8 kB / 451.1 MB, free: 8.77 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.987e-05/0.1075, allocations: 7.984 kB / 451.1 MB, free: 8.762 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.926e-05/0.1075, allocations: 11.98 kB / 451.1 MB, free: 8.75 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.406e-05/0.1076, allocations: 19.92 kB / 451.2 MB, free: 8.73 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0003497/0.1079, allocations: 323.2 kB / 451.5 MB, free: 8.414 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1079, allocations: 0 / 451.5 MB, free: 8.414 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003478/0.1083, allocations: 67.83 kB / 451.5 MB, free: 8.348 MB / 334.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.001002/0.1093, allocations: 446.9 kB / 452 MB, free: 8.02 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003506/0.1096, allocations: 147.8 kB / 452.1 MB, free: 7.875 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.703e-06/0.1097, allocations: 0 / 452.1 MB, free: 7.875 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001521/0.1098, allocations: 83.89 kB / 452.2 MB, free: 7.793 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004093/0.1102, allocations: 77.8 kB / 452.3 MB, free: 7.727 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000851/0.1111, allocations: 0.5448 MB / 452.8 MB, free: 7.145 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003667/0.1115, allocations: 0.7714 MB / 453.6 MB, free: 6.348 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.587e-05/0.1115, allocations: 31.44 kB / 453.6 MB, free: 6.316 MB / 334.1 MB Notification: Performance of SimCode: time 2.1e-07/0.1116, allocations: 0 / 453.6 MB, free: 6.316 MB / 334.1 MB Notification: Performance of Templates: time 0.006632/0.1182, allocations: 4.611 MB / 458.2 MB, free: 1.703 MB / 334.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)