Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IndustrialControlSystems_IndustrialControlSystems.Logical.Timers.Examples.testT_OffDelay_Fedge.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_Fedge,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems.Logical.Timers.Examples.testT_OffDelay_Fedge") translateModel(IndustrialControlSystems.Logical.Timers.Examples.testT_OffDelay_Fedge,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems.Logical.Timers.Examples.testT_OffDelay_Fedge") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001549/0.001549, allocations: 115.3 kB / 16.42 MB, free: 6.496 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.002205/0.002205, allocations: 186.6 kB / 17.35 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.275/1.275, allocations: 205.1 MB / 223.2 MB, free: 12.25 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.05861/0.05861, 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.001502/0.001502, allocations: 69.22 kB / 391.5 MB, free: 46.03 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08344/0.08495, allocations: 49.02 MB / 440.5 MB, free: 3.824 MB / 318.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Logical.Timers.Examples.testT_OffDelay_Fedge): time 0.002722/0.08771, allocations: 1.979 MB / 442.5 MB, free: 1.828 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001442/0.08916, allocations: 1.185 MB / 443.7 MB, free: 0.6328 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001181/0.08929, allocations: 3.938 kB / 443.7 MB, free: 0.6289 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007875/0.09009, allocations: 294 kB / 444 MB, free: 352 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.000403/0.0905, allocations: 199.3 kB / 444.2 MB, free: 152 kB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00071/0.09122, allocations: 298.9 kB / 444.5 MB, free: 15.86 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003954/0.09163, allocations: 351 kB / 444.8 MB, free: 15.52 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001453/0.09178, allocations: 52.31 kB / 444.9 MB, free: 15.46 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001895/0.09198, allocations: 151.4 kB / 445 MB, free: 15.32 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002064/0.09219, allocations: 143.4 kB / 445.2 MB, free: 15.18 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.703e-05/0.09225, allocations: 16 kB / 445.2 MB, free: 15.16 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002539/0.09251, allocations: 115.9 kB / 445.3 MB, free: 15.05 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001299/0.09264, allocations: 83.73 kB / 445.4 MB, free: 14.96 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001442/0.0928, allocations: 119.2 kB / 445.5 MB, free: 14.85 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004695/0.09327, allocations: 378.8 kB / 445.9 MB, free: 14.48 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.51e-06/0.09329, allocations: 0 / 445.9 MB, free: 14.48 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.354e-06/0.0933, allocations: 4 kB / 445.9 MB, free: 14.47 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.356e-05/0.09332, allocations: 0 / 445.9 MB, free: 14.47 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.001042/0.09437, allocations: 0.6729 MB / 446.5 MB, free: 13.74 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.017e-05/0.09442, allocations: 8.031 kB / 446.5 MB, free: 13.73 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.437e-05/0.09451, allocations: 32.56 kB / 446.6 MB, free: 13.7 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004959/0.09501, allocations: 328.2 kB / 446.9 MB, free: 13.34 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.603e-05/0.09505, allocations: 16.12 kB / 446.9 MB, free: 13.32 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.532e-05/0.09508, allocations: 16 kB / 446.9 MB, free: 13.31 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003269/0.09541, allocations: 156 kB / 447.1 MB, free: 13.14 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.987e-06/0.09543, allocations: 0 / 447.1 MB, free: 13.14 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.119e-05/0.09546, allocations: 3.984 kB / 447.1 MB, free: 13.14 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.995e-06/0.09547, allocations: 4 kB / 447.1 MB, free: 13.13 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001921/0.09567, allocations: 67.91 kB / 447.2 MB, free: 13.07 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007437/0.09642, allocations: 488.3 kB / 447.6 MB, free: 12.54 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004158/0.09685, allocations: 146.7 kB / 447.8 MB, free: 12.39 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000125/0.09699, allocations: 64.8 kB / 447.8 MB, free: 12.32 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.427e-05/0.09702, allocations: 4 kB / 447.8 MB, free: 12.32 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002661/0.09729, allocations: 141.2 kB / 448 MB, free: 12.17 MB / 334.1 MB Notification: Performance of pre-optimization done (n=18): time 3.547e-06/0.09731, allocations: 3.984 kB / 448 MB, free: 12.16 MB / 334.1 MB Notification: Performance of matching and sorting (n=18): time 0.0006476/0.09796, allocations: 274.3 kB / 448.2 MB, free: 11.89 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.418e-05/0.09804, allocations: 122.7 kB / 448.4 MB, free: 11.75 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004796/0.09853, allocations: 420.4 kB / 448.8 MB, free: 11.32 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.986e-05/0.09857, allocations: 33.7 kB / 448.8 MB, free: 11.29 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001175/0.09869, allocations: 160.4 kB / 449 MB, free: 11.12 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.129e-05/0.09875, allocations: 43.39 kB / 449 MB, free: 11.08 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.876e-05/0.09883, allocations: 49.7 kB / 449.1 MB, free: 11.02 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.000123/0.09895, allocations: 346.7 kB / 449.4 MB, free: 10.68 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001129/0.09907, allocations: 48.2 kB / 449.4 MB, free: 10.63 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001798/0.09926, allocations: 148.7 kB / 449.6 MB, free: 10.44 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003145/0.09958, allocations: 196.4 kB / 449.8 MB, free: 10.22 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.208e-06/0.0996, allocations: 4 kB / 449.8 MB, free: 10.21 MB / 334.1 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.0003968/0.1, allocations: 221.1 kB / 450 MB, free: 9.992 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.384e-05/0.1, allocations: 4 kB / 450 MB, free: 9.988 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.003e-06/0.1, allocations: 8.234 kB / 450 MB, free: 9.98 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.475e-05/0.1001, allocations: 8 kB / 450 MB, free: 9.973 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001126/0.1002, allocations: 31.92 kB / 450.1 MB, free: 9.941 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.831e-05/0.1002, allocations: 7.984 kB / 450.1 MB, free: 9.934 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000125/0.1003, allocations: 23.75 kB / 450.1 MB, free: 9.91 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.645e-05/0.1004, allocations: 12 kB / 450.1 MB, free: 9.898 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.0001993/0.1006, allocations: 192.4 kB / 450.3 MB, free: 9.703 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.529e-05/0.1006, allocations: 31.62 kB / 450.3 MB, free: 9.672 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.608e-05/0.1007, allocations: 35.28 kB / 450.3 MB, free: 9.633 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.3e-06/0.1007, allocations: 3.984 kB / 450.4 MB, free: 9.629 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.222e-06/0.1007, allocations: 0 / 450.4 MB, free: 9.629 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.795e-05/0.1008, allocations: 104.8 kB / 450.5 MB, free: 9.508 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.877e-05/0.1009, allocations: 7.938 kB / 450.5 MB, free: 9.5 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.766e-05/0.101, allocations: 11.98 kB / 450.5 MB, free: 9.488 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.704e-05/0.101, allocations: 7.984 kB / 450.5 MB, free: 9.48 MB / 334.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0004769/0.1015, allocations: 311.8 kB / 450.8 MB, free: 9.172 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0005039/0.102, allocations: 406.3 kB / 451.2 MB, free: 8.758 MB / 334.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0001539/0.1022, allocations: 75.95 kB / 451.3 MB, free: 8.684 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0003338/0.1025, allocations: 314.8 kB / 451.6 MB, free: 8.379 MB / 334.1 MB Notification: Performance of Backend: time 6.31e-07/0.1025, allocations: 0 / 451.6 MB, free: 8.379 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001532/0.1041, allocations: 0.5202 MB / 452.1 MB, free: 7.98 MB / 334.1 MB Notification: Performance of SimCode: time 0.001122/0.1052, allocations: 0.9343 MB / 453 MB, free: 6.992 MB / 334.1 MB Notification: Performance of Templates: time 0.008889/0.1141, allocations: 4.359 MB / 457.4 MB, free: 2.637 MB / 334.1 MB make -j1 -f IndustrialControlSystems_IndustrialControlSystems.Logical.Timers.Examples.testT_OffDelay_Fedge.makefile (rm -f IndustrialControlSystems_IndustrialControlSystems.Logical.Timers.Examples.testT_OffDelay_Fedge.pipe ; mkfifo IndustrialControlSystems_IndustrialControlSystems.Logical.Timers.Examples.testT_OffDelay_Fedge.pipe ; head -c 1048576 < IndustrialControlSystems_IndustrialControlSystems.Logical.Timers.Examples.testT_OffDelay_Fedge.pipe >> ../files/IndustrialControlSystems_IndustrialControlSystems.Logical.Timers.Examples.testT_OffDelay_Fedge.sim & ./IndustrialControlSystems_IndustrialControlSystems.Logical.Timers.Examples.testT_OffDelay_Fedge -abortSlowSimulation -alarm=480 -lv LOG_STATS > IndustrialControlSystems_IndustrialControlSystems.Logical.Timers.Examples.testT_OffDelay_Fedge.pipe 2>&1)