Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized.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/Buildings 11.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/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: "" <> buildModelFMU(Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized,fileNamePrefix="Buildings_latest_Buildings_Electrical_DC_Lines_Examples_DCLinesLinearized",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized,fileNamePrefix="Buildings_latest_Buildings_Electrical_DC_Lines_Examples_DCLinesLinearized",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001246/0.001246, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001253/0.001253, allocations: 198.1 kB / 16.14 MB, free: 6.711 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.222/1.222, allocations: 222.9 MB / 239.8 MB, free: 4.613 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.435/2.435, allocations: 461.8 MB / 0.7342 GB, free: 14.14 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001336/0.001336, allocations: 64.69 kB / 0.8985 GB, free: 37.09 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2288/0.2302, allocations: 157.4 MB / 1.052 GB, free: 8.168 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized): time 0.02106/0.2512, allocations: 22.43 MB / 1.074 GB, free: 1.652 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.02101/0.2723, allocations: 17.59 MB / 1.091 GB, free: 12 kB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002126/0.2744, allocations: 111.4 kB / 1.091 GB, free: 15.9 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.008288/0.2828, allocations: 3.91 MB / 1.095 GB, free: 11.99 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.007218/0.29, allocations: 3.196 MB / 1.098 GB, free: 8.789 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.002482/0.2925, allocations: 1.189 MB / 1.099 GB, free: 7.605 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.006693/0.2992, allocations: 7.06 MB / 1.106 GB, free: 0.5234 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.003026/0.3022, allocations: 2.495 MB / 1.109 GB, free: 13.95 MB / 0.8731 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002913/0.3052, allocations: 2.179 MB / 1.111 GB, free: 11.77 MB / 0.8731 GB Notification: Performance of NFSimplifyModel.simplify: time 0.003021/0.3082, allocations: 2.451 MB / 1.113 GB, free: 9.305 MB / 0.8731 GB Notification: Performance of NFPackage.collectConstants: time 0.0004069/0.3086, allocations: 228 kB / 1.114 GB, free: 9.082 MB / 0.8731 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001728/0.3103, allocations: 1.111 MB / 1.115 GB, free: 7.969 MB / 0.8731 GB Notification: Performance of NFScalarize.scalarize: time 0.0008173/0.3112, allocations: 1.059 MB / 1.116 GB, free: 6.906 MB / 0.8731 GB Notification: Performance of NFVerifyModel.verify: time 0.001599/0.3128, allocations: 1.854 MB / 1.117 GB, free: 5.043 MB / 0.8731 GB Notification: Performance of NFConvertDAE.convert: time 0.003818/0.3166, allocations: 5.065 MB / 1.122 GB, free: 15.96 MB / 0.8887 GB Notification: Performance of FrontEnd - DAE generated: time 3.516e-06/0.3166, allocations: 3.938 kB / 1.122 GB, free: 15.95 MB / 0.8887 GB Notification: Performance of FrontEnd: time 7.92e-07/0.3166, allocations: 0 / 1.122 GB, free: 15.95 MB / 0.8887 GB Notification: Performance of Transformations before backend: time 6.348e-05/0.3167, allocations: 0 / 1.122 GB, free: 15.95 MB / 0.8887 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 635 * Number of variables: 635 Notification: Performance of Generate backend data structure: time 0.008428/0.3251, allocations: 4.601 MB / 1.127 GB, free: 11.24 MB / 0.8887 GB Notification: Performance of prepare preOptimizeDAE: time 4.565e-05/0.3252, allocations: 15.97 kB / 1.127 GB, free: 11.23 MB / 0.8887 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004271/0.3256, allocations: 370.3 kB / 1.127 GB, free: 10.86 MB / 0.8887 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01395/0.3396, allocations: 3.265 MB / 1.13 GB, free: 7.582 MB / 0.8887 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003101/0.3427, allocations: 2.08 MB / 1.133 GB, free: 5.434 MB / 0.8887 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003249/0.343, allocations: 474 kB / 1.133 GB, free: 4.906 MB / 0.8887 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000365/0.3434, allocations: 232 kB / 1.133 GB, free: 4.68 MB / 0.8887 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008663/0.3521, allocations: 4.81 MB / 1.138 GB, free: 15.72 MB / 0.9044 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.862e-05/0.3521, allocations: 7.938 kB / 1.138 GB, free: 15.71 MB / 0.9044 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002763/0.3524, allocations: 104 kB / 1.138 GB, free: 15.61 MB / 0.9044 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001671/0.3526, allocations: 172.8 kB / 1.138 GB, free: 15.44 MB / 0.9044 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0112/0.3638, allocations: 5.191 MB / 1.143 GB, free: 10.23 MB / 0.9044 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01675/0.3805, allocations: 14.49 MB / 1.157 GB, free: 10.57 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00853/0.3891, allocations: 3.387 MB / 1.161 GB, free: 7.168 MB / 0.92 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003161/0.3923, allocations: 1.467 MB / 1.162 GB, free: 5.703 MB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001172/0.3924, allocations: 29.17 kB / 1.162 GB, free: 5.672 MB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003608/0.396, allocations: 1.798 MB / 1.164 GB, free: 3.809 MB / 0.92 GB Notification: Performance of pre-optimization done (n=163): time 3.006e-06/0.396, allocations: 0 / 1.164 GB, free: 3.809 MB / 0.92 GB Notification: Performance of matching and sorting (n=250): time 0.1073/0.5033, allocations: 28.21 MB / 1.191 GB, free: 7.375 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002041/0.5036, allocations: 0.4928 MB / 1.192 GB, free: 6.77 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003279/0.5069, allocations: 2.3 MB / 1.194 GB, free: 4.457 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 0.0003066/0.5072, allocations: 77.7 kB / 1.194 GB, free: 4.375 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 0.00112/0.5083, allocations: 1.438 MB / 1.196 GB, free: 2.922 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 0.0007559/0.5091, allocations: 0.824 MB / 1.196 GB, free: 2.086 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009195/0.51, allocations: 416.5 kB / 1.197 GB, free: 1.672 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 9.317e-05/0.5101, allocations: 301.1 kB / 1.197 GB, free: 1.375 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004705/0.5148, allocations: 1.933 MB / 1.199 GB, free: 15.44 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004834/0.5197, allocations: 2.223 MB / 1.201 GB, free: 13.13 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009023/0.5287, allocations: 4.165 MB / 1.205 GB, free: 8.828 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.6e-06/0.5287, allocations: 0 / 1.205 GB, free: 8.828 MB / 0.9669 GB Notification: Performance of matching and sorting (n=299) (initialization): time 0.01626/0.545, allocations: 6.535 MB / 1.212 GB, free: 2.199 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 8.666e-05/0.5451, allocations: 148.5 kB / 1.212 GB, free: 2.023 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.53e-05/0.5451, allocations: 8.344 kB / 1.212 GB, free: 2.016 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.009187/0.5543, allocations: 2.926 MB / 1.215 GB, free: 15.09 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002457/0.5568, allocations: 495.2 kB / 1.215 GB, free: 14.6 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03413/0.5909, allocations: 17.34 MB / 1.232 GB, free: 13.02 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003661/0.5946, allocations: 319.6 kB / 1.232 GB, free: 12.71 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003862/0.595, allocations: 87.97 kB / 1.232 GB, free: 12.62 MB / 0.9981 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 24 * Number of states: 0 () * Number of discrete variables: 25 (varLoad5.count,$PRE.varLoad5.count,varLoad5.T_start,$PRE.varLoad5.T_start,varLoad4.count,$PRE.varLoad4.count,varLoad4.T_start,$PRE.varLoad4.T_start,varLoad3.count,$PRE.varLoad3.count,varLoad3.T_start,$PRE.varLoad3.T_start,varLoad2.count,$PRE.varLoad2.count,varLoad2.T_start,$PRE.varLoad2.T_start,varLoad1.count,$PRE.varLoad1.count,varLoad1.T_start,$PRE.varLoad1.T_start,$whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,$whenCondition5) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (162): * Single equations (assignments): 155 * Array equations: 0 * Algorithm blocks: 5 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(10,52,45.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(8,64)} Notification: Performance of prepare postOptimizeDAE: time 0.0014/0.5964, allocations: 0.7027 MB / 1.233 GB, free: 11.91 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006397/0.5971, allocations: 336.1 kB / 1.233 GB, free: 11.58 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006939/0.5978, allocations: 380.1 kB / 1.234 GB, free: 11.2 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.693e-05/0.5978, allocations: 24 kB / 1.234 GB, free: 11.18 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.858e-05/0.5978, allocations: 12 kB / 1.234 GB, free: 11.16 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.681e-05/0.5978, allocations: 11.95 kB / 1.234 GB, free: 11.15 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004497/0.6023, allocations: 3.628 MB / 1.237 GB, free: 7.465 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.177e-05/0.6024, allocations: 0 / 1.237 GB, free: 7.465 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002301/0.6047, allocations: 415.4 kB / 1.238 GB, free: 7.059 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.008961/0.6136, allocations: 2.868 MB / 1.241 GB, free: 4.188 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002099/0.6139, allocations: 55.91 kB / 1.241 GB, free: 4.133 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.4431/1.057, allocations: 17.1 MB / 1.257 GB, free: 173.5 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.605e-06/1.057, allocations: 4.969 kB / 1.257 GB, free: 173.5 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01676/1.074, allocations: 6.175 MB / 1.263 GB, free: 173.2 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00155/1.075, allocations: 0.6959 MB / 1.264 GB, free: 173.1 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005223/1.076, allocations: 46.23 kB / 1.264 GB, free: 173.1 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00309/1.079, allocations: 320.8 kB / 1.264 GB, free: 173.1 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001347/1.08, allocations: 350.5 kB / 1.265 GB, free: 173.1 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002412/1.081, allocations: 71.38 kB / 1.265 GB, free: 173.1 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.002441/1.083, allocations: 1.535 MB / 1.266 GB, free: 173 MB / 0.9981 GB Notification: Performance of sort global known variables: time 5.11e-07/1.083, allocations: 1.219 kB / 1.266 GB, free: 173 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.002645/1.086, allocations: 1.043 MB / 1.267 GB, free: 173 MB / 0.9981 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 15 ($whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,varLoad1.T_start,varLoad1.count,varLoad2.T_start,varLoad2.count,varLoad3.T_start,varLoad3.count,varLoad4.T_start,varLoad4.count,varLoad5.T_start,varLoad5.count) * Number of discrete states: 5 (varLoad1.count,varLoad2.count,varLoad3.count,varLoad4.count,varLoad5.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (118): * Single equations (assignments): 106 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 10 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(10,52,60.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(10,62)} Notification: Performance of Backend phase and start with SimCode phase: time 0.01666/1.102, allocations: 6.801 MB / 1.274 GB, free: 171.1 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.01981/1.122, allocations: 6.452 MB / 1.28 GB, free: 168.8 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 7.725e-06/1.122, allocations: 1.188 kB / 1.28 GB, free: 168.8 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.01425/1.136, allocations: 4.038 MB / 1.284 GB, free: 167.5 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003953/1.14, allocations: 1.051 MB / 1.285 GB, free: 167.2 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05999/1.2, allocations: 38.1 MB / 1.322 GB, free: 137.1 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001549/1.202, allocations: 2.227 MB / 1.325 GB, free: 134.8 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.002248/1.204, allocations: 0.5098 MB / 1.325 GB, free: 134.3 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001367/1.206, allocations: 1.327 MB / 1.326 GB, free: 133 MB / 0.9981 GB Notification: Performance of SimCode: time 4.91e-07/1.206, allocations: 0 / 1.326 GB, free: 133 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3749/1.581, allocations: 99.38 MB / 1.424 GB, free: 34.76 MB / 0.9981 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001583/1.581, allocations: 249.9 kB / 1.424 GB, free: 34.5 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.247/5.828, allocations: 0 / 1.424 GB, free: 34.5 MB / 0.9981 GB (rm -f Buildings_latest_Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized.pipe ; mkfifo Buildings_latest_Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized.pipe >> ../files/Buildings_latest_Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized_res.mat --tempDir=temp_Buildings_latest_Buildings_Electrical_DC_Lines_Examples_DCLinesLinearized_fmu --startTime=0 --stopTime=4000 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Electrical_DC_Lines_Examples_DCLinesLinearized.fmu > Buildings_latest_Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized.pipe 2>&1)