Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr AES_AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_004_LTI.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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo", uses=false) Using package AES with version (/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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(AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_004_LTI,tolerance=1e-09,outputFormat="empty",numberOfIntervals=10000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_004_LTI") translateModel(AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_004_LTI,tolerance=1e-09,outputFormat="empty",numberOfIntervals=10000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_004_LTI") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00133/0.00133, allocations: 99.23 kB / 15.05 MB, free: 1.105 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.001779/0.001779, allocations: 177.3 kB / 15.94 MB, free: 228 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.403/1.403, allocations: 223.2 MB / 239.9 MB, free: 5.309 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.221/0.221, allocations: 22.33 MB / 313.3 MB, free: 13.14 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003319/0.000332, allocations: 8 kB / 381.8 MB, free: 10.56 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3099/0.3103, allocations: 55.97 MB / 437.8 MB, free: 39.28 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_004_LTI): time 0.001201/0.3115, allocations: 0.677 MB / 438.5 MB, free: 38.82 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001178/0.3127, allocations: 1.186 MB / 439.7 MB, free: 37.95 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.623e-05/0.3128, allocations: 0 / 439.7 MB, free: 37.95 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002959/0.3131, allocations: 30.95 kB / 439.7 MB, free: 37.94 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001369/0.3132, allocations: 48.94 kB / 439.8 MB, free: 37.92 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001573/0.3134, allocations: 50.33 kB / 439.8 MB, free: 37.9 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001499/0.3136, allocations: 107.3 kB / 439.9 MB, free: 37.86 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001203/0.3137, allocations: 19.05 kB / 439.9 MB, free: 37.85 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001318/0.3138, allocations: 105.5 kB / 440 MB, free: 37.8 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001277/0.314, allocations: 78.89 kB / 440.1 MB, free: 37.78 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.104e-05/0.314, allocations: 2.719 kB / 440.1 MB, free: 37.78 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.074e-05/0.314, allocations: 5.469 kB / 440.1 MB, free: 37.78 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.349e-05/0.3141, allocations: 26.92 kB / 440.1 MB, free: 37.77 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.938e-05/0.3141, allocations: 38.86 kB / 440.2 MB, free: 37.73 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001037/0.3142, allocations: 77.7 kB / 440.3 MB, free: 37.71 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.896e-06/0.3142, allocations: 0 / 440.3 MB, free: 37.71 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.873e-06/0.3143, allocations: 0 / 440.3 MB, free: 37.71 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.78e-06/0.3143, allocations: 0 / 440.3 MB, free: 37.71 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 16 * Number of variables: 16 Notification: Performance of Generate backend data structure: time 0.000922/0.3152, allocations: 490.9 kB / 440.7 MB, free: 37.31 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.372e-05/0.3152, allocations: 12.62 kB / 440.7 MB, free: 37.31 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.371e-05/0.3153, allocations: 19.47 kB / 440.8 MB, free: 37.3 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004774/0.3158, allocations: 268.4 kB / 441 MB, free: 37.07 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.515e-05/0.3158, allocations: 6.656 kB / 441 MB, free: 37.07 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.041e-05/0.3158, allocations: 9.719 kB / 441 MB, free: 37.07 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001651/0.316, allocations: 101 kB / 441.1 MB, free: 37.01 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.478e-06/0.316, allocations: 2.5 kB / 441.1 MB, free: 37.01 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.603e-05/0.316, allocations: 11.94 kB / 441.2 MB, free: 37 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.604e-06/0.316, allocations: 3.594 kB / 441.2 MB, free: 37 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001365/0.3162, allocations: 78.42 kB / 441.2 MB, free: 36.98 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006046/0.3168, allocations: 415.6 kB / 441.6 MB, free: 36.65 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003252/0.3171, allocations: 150.6 kB / 441.8 MB, free: 36.59 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.157e-05/0.3172, allocations: 0 / 441.8 MB, free: 36.59 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.466e-05/0.3172, allocations: 41.14 kB / 441.8 MB, free: 36.55 MB / 350.1 MB Notification: Performance of pre-optimization done (n=10): time 9.62e-07/0.3172, allocations: 4 kB / 441.8 MB, free: 36.54 MB / 350.1 MB Notification: Performance of matching and sorting (n=10): time 0.002305/0.3195, allocations: 485.9 kB / 442.3 MB, free: 36.34 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.594e-05/0.3196, allocations: 51.41 kB / 442.4 MB, free: 36.28 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003811/0.3199, allocations: 245.3 kB / 442.6 MB, free: 36.14 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.215e-05/0.32, allocations: 28.61 kB / 442.6 MB, free: 36.11 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.373e-05/0.32, allocations: 115.5 kB / 442.7 MB, free: 36 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.259e-05/0.3201, allocations: 32.3 kB / 442.8 MB, free: 35.98 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.61e-06/0.3201, allocations: 0 / 442.8 MB, free: 35.98 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 4.813e-05/0.3201, allocations: 325 kB / 443.1 MB, free: 35.66 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.539e-05/0.3202, allocations: 33.67 kB / 443.1 MB, free: 35.65 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.149e-05/0.3202, allocations: 37.97 kB / 443.2 MB, free: 35.64 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.321e-05/0.3203, allocations: 50.2 kB / 443.2 MB, free: 35.62 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.583e-06/0.3203, allocations: 3.938 kB / 443.2 MB, free: 35.61 MB / 350.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0008392/0.3212, allocations: 237.5 kB / 443.4 MB, free: 35.52 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.472e-05/0.3212, allocations: 5.906 kB / 443.4 MB, free: 35.52 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.4e-06/0.3212, allocations: 3.281 kB / 443.5 MB, free: 35.52 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008783/0.3221, allocations: 119.9 kB / 443.6 MB, free: 35.5 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.567e-05/0.3222, allocations: 8.781 kB / 443.6 MB, free: 35.5 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003072/0.3253, allocations: 1.778 MB / 445.4 MB, free: 34.03 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001888/0.3255, allocations: 21.72 kB / 445.4 MB, free: 34.03 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.303e-05/0.3255, allocations: 10.27 kB / 445.4 MB, free: 34.03 MB / 350.1 MB Warning: Assuming fixed start value for the following 2 variables: C.x_scaled[1]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [1] A.x_scaled[1]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [1] Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (8): * Single equations (assignments): 7 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 4} Notification: Performance of prepare postOptimizeDAE: time 0.000105/0.3256, allocations: 134.3 kB / 445.5 MB, free: 33.9 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.361e-05/0.3256, allocations: 16.98 kB / 445.5 MB, free: 33.89 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007434/0.3264, allocations: 271 kB / 445.8 MB, free: 33.78 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.286e-06/0.3264, allocations: 3.031 kB / 445.8 MB, free: 33.78 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.433e-06/0.3264, allocations: 0 / 445.8 MB, free: 33.78 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.159e-06/0.3264, allocations: 3.953 kB / 445.8 MB, free: 33.77 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001976/0.3266, allocations: 242.2 kB / 446 MB, free: 33.55 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.324e-06/0.3266, allocations: 2.594 kB / 446 MB, free: 33.55 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.465e-05/0.3267, allocations: 16.7 kB / 446.1 MB, free: 33.54 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005767/0.3273, allocations: 115.2 kB / 446.2 MB, free: 33.52 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.722e-05/0.3273, allocations: 7.031 kB / 446.2 MB, free: 33.51 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002067/0.3294, allocations: 1.711 MB / 447.9 MB, free: 32.07 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.843e-06/0.3294, allocations: 3.953 kB / 447.9 MB, free: 32.07 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000773/0.3302, allocations: 394.3 kB / 448.3 MB, free: 31.85 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.649e-05/0.3302, allocations: 94.16 kB / 448.4 MB, free: 31.75 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.204e-05/0.3303, allocations: 6.812 kB / 448.4 MB, free: 31.75 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002101/0.3305, allocations: 23.64 kB / 448.4 MB, free: 31.75 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.771e-05/0.3305, allocations: 16.97 kB / 448.4 MB, free: 31.74 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.348e-06/0.3305, allocations: 2.969 kB / 448.4 MB, free: 31.74 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.000325/0.3309, allocations: 193.9 kB / 448.6 MB, free: 31.64 MB / 350.1 MB Notification: Performance of sort global known variables: time 3.7e-07/0.3309, allocations: 0 / 448.6 MB, free: 31.64 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002844/0.3312, allocations: 27.31 kB / 448.6 MB, free: 31.63 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (A.x_scaled[1],C.x_scaled[1]) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 6 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001211/0.3313, allocations: 107 kB / 448.7 MB, free: 31.54 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003991/0.3317, allocations: 249.2 kB / 449 MB, free: 31.38 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.565e-06/0.3317, allocations: 0 / 449 MB, free: 31.38 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001922/0.3319, allocations: 193.8 kB / 449.2 MB, free: 31.24 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002424/0.3322, allocations: 23.64 kB / 449.2 MB, free: 31.23 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005012/0.3327, allocations: 339.5 kB / 449.5 MB, free: 31 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001857/0.3329, allocations: 0.7351 MB / 450.3 MB, free: 30.3 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 6.048e-05/0.3329, allocations: 23.45 kB / 450.3 MB, free: 30.3 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.719e-05/0.333, allocations: 14.56 kB / 450.3 MB, free: 30.29 MB / 350.1 MB Notification: Performance of SimCode: time 2.41e-07/0.333, allocations: 0 / 450.3 MB, free: 30.29 MB / 350.1 MB Notification: Performance of Templates: time 0.00483/0.3378, allocations: 2.255 MB / 452.6 MB, free: 30.15 MB / 350.1 MB make -j1 -f AES_AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_004_LTI.makefile Environment - environmentSimulation: (rm -f AES_AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_004_LTI.pipe ; mkfifo AES_AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_004_LTI.pipe ; head -c 1048576 < AES_AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_004_LTI.pipe >> ../files/AES_AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_004_LTI.sim & ./AES_AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_004_LTI -lv=LOG_STATS -s=dassl -abortSlowSimulation -alarm=480 -lv LOG_STATS > AES_AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_004_LTI.pipe 2>&1) Environment - environmentSimulation: