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.001143/0.001142, allocations: 108.2 kB / 16.41 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.001222/0.001222, allocations: 189.6 kB / 17.34 MB, free: 5.766 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.408/1.408, allocations: 205.1 MB / 223.2 MB, free: 12.24 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.05668/0.05668, allocations: 10.75 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.001832/0.001832, allocations: 75.59 kB / 391.5 MB, free: 45.99 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08787/0.08971, allocations: 49.03 MB / 440.5 MB, free: 3.832 MB / 318.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Logical.Timers.Examples.testT_OffDelay_Fedge): time 0.003096/0.09284, allocations: 1.99 MB / 442.5 MB, free: 1.824 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.00166/0.09452, allocations: 1.17 MB / 443.7 MB, free: 0.6445 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001882/0.09473, allocations: 7.938 kB / 443.7 MB, free: 0.6367 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007763/0.09555, allocations: 298.2 kB / 444 MB, free: 356 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.0004337/0.09599, allocations: 203.2 kB / 444.2 MB, free: 152 kB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007577/0.09676, allocations: 283.1 kB / 444.5 MB, free: 15.88 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004752/0.09724, allocations: 355.1 kB / 444.8 MB, free: 15.53 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001626/0.09742, allocations: 56.31 kB / 444.9 MB, free: 15.47 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002924/0.09772, allocations: 143.5 kB / 445 MB, free: 15.33 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002414/0.09797, allocations: 147.4 kB / 445.1 MB, free: 15.18 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.54e-05/0.09803, allocations: 20 kB / 445.2 MB, free: 15.16 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002657/0.0983, allocations: 111.8 kB / 445.3 MB, free: 15.05 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001121/0.09842, allocations: 79.75 kB / 445.4 MB, free: 14.98 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001491/0.09858, allocations: 135.1 kB / 445.5 MB, free: 14.84 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005087/0.0991, allocations: 366.8 kB / 445.8 MB, free: 14.48 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.975e-06/0.09911, allocations: 0 / 445.8 MB, free: 14.48 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.012e-06/0.09912, allocations: 8 kB / 445.9 MB, free: 14.48 MB / 334.1 MB Notification: Performance of Transformations before backend: time 9.778e-06/0.09914, allocations: 0 / 445.9 MB, free: 14.48 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.001076/0.1002, allocations: 0.6652 MB / 446.5 MB, free: 13.75 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.819e-05/0.1003, allocations: 8.031 kB / 446.5 MB, free: 13.74 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001001/0.1004, allocations: 40.48 kB / 446.6 MB, free: 13.7 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000413/0.1008, allocations: 324.3 kB / 446.9 MB, free: 13.35 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.393e-05/0.1008, allocations: 16.11 kB / 446.9 MB, free: 13.33 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.361e-05/0.1009, allocations: 15.94 kB / 446.9 MB, free: 13.32 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000335/0.1012, allocations: 152 kB / 447.1 MB, free: 13.15 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.237e-06/0.1012, allocations: 0 / 447.1 MB, free: 13.15 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.907e-05/0.1012, allocations: 8 kB / 447.1 MB, free: 13.14 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.12e-06/0.1013, allocations: 0 / 447.1 MB, free: 13.14 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001772/0.1014, allocations: 71.89 kB / 447.1 MB, free: 13.07 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006918/0.1021, allocations: 492.3 kB / 447.6 MB, free: 12.54 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000409/0.1026, allocations: 146.8 kB / 447.8 MB, free: 12.39 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001338/0.1027, allocations: 56.84 kB / 447.8 MB, free: 12.33 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.302e-05/0.1027, allocations: 8 kB / 447.8 MB, free: 12.32 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002677/0.103, allocations: 137.2 kB / 448 MB, free: 12.18 MB / 334.1 MB Notification: Performance of pre-optimization done (n=18): time 1.643e-06/0.103, allocations: 0 / 448 MB, free: 12.18 MB / 334.1 MB Notification: Performance of matching and sorting (n=18): time 0.0006106/0.1037, allocations: 286.3 kB / 448.2 MB, free: 11.89 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.167e-05/0.1037, allocations: 114.8 kB / 448.4 MB, free: 11.76 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000438/0.1042, allocations: 416.4 kB / 448.8 MB, free: 11.34 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.782e-05/0.1042, allocations: 41.62 kB / 448.8 MB, free: 11.29 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001205/0.1043, allocations: 160.4 kB / 449 MB, free: 11.13 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.85e-05/0.1044, allocations: 51.38 kB / 449 MB, free: 11.08 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.283e-05/0.1045, allocations: 41.7 kB / 449 MB, free: 11.03 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0002608/0.1047, allocations: 354.7 kB / 449.4 MB, free: 10.68 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001205/0.1049, allocations: 44.22 kB / 449.4 MB, free: 10.63 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002153/0.1051, allocations: 152.5 kB / 449.6 MB, free: 10.45 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003472/0.1054, allocations: 200.4 kB / 449.8 MB, free: 10.22 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.597e-06/0.1055, allocations: 0 / 449.8 MB, free: 10.22 MB / 334.1 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.0004274/0.1059, allocations: 221.1 kB / 450 MB, free: 9.996 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.867e-05/0.1059, allocations: 8 kB / 450 MB, free: 9.988 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.534e-06/0.1059, allocations: 4.25 kB / 450 MB, free: 9.984 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.536e-05/0.106, allocations: 4 kB / 450 MB, free: 9.98 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001148/0.1061, allocations: 31.92 kB / 450 MB, free: 9.949 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.197e-05/0.1061, allocations: 4 kB / 450 MB, free: 9.945 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001302/0.1062, allocations: 31.72 kB / 450.1 MB, free: 9.914 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.038e-05/0.1063, allocations: 15.98 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.0002266/0.1065, allocations: 184.4 kB / 450.3 MB, free: 9.711 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.133e-05/0.1065, allocations: 27.62 kB / 450.3 MB, free: 9.684 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.985e-05/0.1066, allocations: 39.22 kB / 450.3 MB, free: 9.641 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.03e-06/0.1066, allocations: 7.938 kB / 450.3 MB, free: 9.633 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.335e-06/0.1066, allocations: 4.125 kB / 450.4 MB, free: 9.629 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.577e-06/0.1067, allocations: 0 / 450.4 MB, free: 9.629 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002864/0.1069, allocations: 301.3 kB / 450.6 MB, free: 9.285 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.114e-06/0.107, allocations: 0 / 450.6 MB, free: 9.285 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.651e-05/0.107, allocations: 8 kB / 450.7 MB, free: 9.277 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.935e-06/0.107, allocations: 0 / 450.7 MB, free: 9.277 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.088e-05/0.107, allocations: 15.98 kB / 450.7 MB, free: 9.262 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.074e-06/0.107, allocations: 0 / 450.7 MB, free: 9.262 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.683e-06/0.1071, allocations: 0 / 450.7 MB, free: 9.262 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004379/0.1075, allocations: 263.7 kB / 450.9 MB, free: 8.988 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.972e-05/0.1076, allocations: 104.7 kB / 451 MB, free: 8.867 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.155e-05/0.1076, allocations: 7.984 kB / 451 MB, free: 8.859 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.355e-05/0.1077, allocations: 11.94 kB / 451.1 MB, free: 8.848 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.888e-05/0.1078, allocations: 15.98 kB / 451.1 MB, free: 8.832 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.3e-05/0.1078, allocations: 11.98 kB / 451.1 MB, free: 8.82 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0003107/0.1082, allocations: 307 kB / 451.4 MB, free: 8.523 MB / 334.1 MB Notification: Performance of sort global known variables: time 2.31e-07/0.1082, allocations: 0 / 451.4 MB, free: 8.523 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003498/0.1085, allocations: 67.92 kB / 451.4 MB, free: 8.457 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.0009833/0.1095, allocations: 434.4 kB / 451.9 MB, free: 8.145 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003575/0.1099, allocations: 159.7 kB / 452 MB, free: 7.988 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.795e-06/0.1099, allocations: 0 / 452 MB, free: 7.988 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000164/0.1101, allocations: 75.91 kB / 452.1 MB, free: 7.914 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000425/0.1105, allocations: 81.17 kB / 452.2 MB, free: 7.844 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008248/0.1113, allocations: 0.5175 MB / 452.7 MB, free: 7.293 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00036/0.1117, allocations: 0.7757 MB / 453.5 MB, free: 6.492 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.885e-05/0.1118, allocations: 31.44 kB / 453.5 MB, free: 6.461 MB / 334.1 MB Notification: Performance of SimCode: time 2.6e-07/0.1118, allocations: 0 / 453.5 MB, free: 6.461 MB / 334.1 MB Notification: Performance of Templates: time 0.009844/0.1216, allocations: 4.541 MB / 458 MB, free: 1.922 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)