Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/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_9_Buildings_Electrical_DC_Lines_Examples_DCLinesLinearized",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized,fileNamePrefix="Buildings_9_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.00116/0.00116, 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.001407/0.001407, 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.373/1.373, allocations: 222.9 MB / 239.8 MB, free: 4.621 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.348/2.348, allocations: 390.2 MB / 0.6643 GB, free: 0.6172 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001472/0.001472, allocations: 75.86 kB / 0.812 GB, free: 14.77 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6257/0.6272, allocations: 140.4 MB / 0.949 GB, free: 9.184 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized): time 0.02266/0.6499, allocations: 22.42 MB / 0.9709 GB, free: 7.895 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.02583/0.6758, allocations: 17.59 MB / 0.9881 GB, free: 9.945 MB / 0.7481 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003478/0.6793, allocations: 109.2 kB / 0.9882 GB, free: 9.855 MB / 0.7481 GB Notification: Performance of NFTyping.typeComponents: time 0.009538/0.6888, allocations: 3.917 MB / 0.9921 GB, free: 5.934 MB / 0.7481 GB Notification: Performance of NFTyping.typeBindings: time 0.01034/0.6992, allocations: 3.208 MB / 0.9952 GB, free: 2.723 MB / 0.7481 GB Notification: Performance of NFTyping.typeClassSections: time 0.003456/0.7027, allocations: 1.177 MB / 0.9963 GB, free: 1.547 MB / 0.7481 GB Notification: Performance of NFFlatten.flatten: time 0.008932/0.7116, allocations: 7.063 MB / 1.003 GB, free: 10.46 MB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 0.004309/0.7159, allocations: 2.499 MB / 1.006 GB, free: 7.891 MB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004635/0.7206, allocations: 2.175 MB / 1.008 GB, free: 5.707 MB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 0.005305/0.7259, allocations: 2.463 MB / 1.01 GB, free: 3.234 MB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 0.0015/0.7275, allocations: 228 kB / 1.01 GB, free: 3.012 MB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00368/0.7312, allocations: 1.107 MB / 1.012 GB, free: 1.902 MB / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 0.00205/0.7332, allocations: 1.059 MB / 1.013 GB, free: 0.8398 MB / 0.7637 GB Notification: Performance of NFVerifyModel.verify: time 0.004465/0.7377, allocations: 1.861 MB / 1.014 GB, free: 14.97 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.007747/0.7455, allocations: 5.069 MB / 1.019 GB, free: 9.883 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 7.244e-06/0.7455, allocations: 3.984 kB / 1.019 GB, free: 9.879 MB / 0.7794 GB Notification: Performance of FrontEnd: time 2.575e-06/0.7455, allocations: 0 / 1.019 GB, free: 9.879 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 0.0002081/0.7457, allocations: 0 / 1.019 GB, free: 9.879 MB / 0.7794 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.01356/0.7593, allocations: 4.624 MB / 1.024 GB, free: 5.141 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 5.124e-05/0.7594, allocations: 8.031 kB / 1.024 GB, free: 5.133 MB / 0.7794 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001047/0.7604, allocations: 362.3 kB / 1.024 GB, free: 4.77 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0159/0.7763, allocations: 3.265 MB / 1.027 GB, free: 1.496 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004874/0.7812, allocations: 2.084 MB / 1.029 GB, free: 15.34 MB / 0.795 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004243/0.7817, allocations: 466 kB / 1.03 GB, free: 14.82 MB / 0.795 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008455/0.7825, allocations: 232 kB / 1.03 GB, free: 14.6 MB / 0.795 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01168/0.7942, allocations: 4.818 MB / 1.035 GB, free: 9.633 MB / 0.795 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.505e-05/0.7943, allocations: 7.875 kB / 1.035 GB, free: 9.625 MB / 0.795 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000561/0.7949, allocations: 99.98 kB / 1.035 GB, free: 9.527 MB / 0.795 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001922/0.7951, allocations: 172.8 kB / 1.035 GB, free: 9.355 MB / 0.795 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01248/0.8076, allocations: 5.195 MB / 1.04 GB, free: 4.145 MB / 0.795 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02116/0.8287, allocations: 14.48 MB / 1.054 GB, free: 4.484 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.008895/0.8377, allocations: 3.396 MB / 1.058 GB, free: 1.078 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003377/0.8411, allocations: 1.467 MB / 1.059 GB, free: 15.61 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001412/0.8412, allocations: 25.23 kB / 1.059 GB, free: 15.59 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003953/0.8452, allocations: 1.792 MB / 1.061 GB, free: 13.73 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=163): time 4.849e-06/0.8452, allocations: 0 / 1.061 GB, free: 13.73 MB / 0.8262 GB Notification: Performance of matching and sorting (n=250): time 0.1175/0.9627, allocations: 28.21 MB / 1.088 GB, free: 1.301 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000237/0.963, allocations: 0.4928 MB / 1.089 GB, free: 0.6953 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003324/0.9663, allocations: 2.3 MB / 1.091 GB, free: 14.38 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 0.000315/0.9666, allocations: 77.7 kB / 1.091 GB, free: 14.3 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 0.001179/0.9678, allocations: 1.434 MB / 1.093 GB, free: 12.85 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 0.0008321/0.9687, allocations: 0.8202 MB / 1.093 GB, free: 12.02 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009711/0.9696, allocations: 412.5 kB / 1.094 GB, free: 11.61 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 9.469e-05/0.9698, allocations: 301.1 kB / 1.094 GB, free: 11.31 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004975/0.9747, allocations: 1.929 MB / 1.096 GB, free: 9.379 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005131/0.9799, allocations: 2.231 MB / 1.098 GB, free: 7.062 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009892/0.9898, allocations: 4.169 MB / 1.102 GB, free: 2.758 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.337e-06/0.9898, allocations: 4 kB / 1.102 GB, free: 2.754 MB / 0.8575 GB Notification: Performance of matching and sorting (n=299) (initialization): time 0.01796/1.008, allocations: 6.535 MB / 1.109 GB, free: 12.12 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001022/1.008, allocations: 148.5 kB / 1.109 GB, free: 11.95 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.545e-05/1.008, allocations: 4 kB / 1.109 GB, free: 11.95 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01008/1.018, allocations: 2.926 MB / 1.112 GB, free: 9.008 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002744/1.021, allocations: 491.2 kB / 1.112 GB, free: 8.527 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03737/1.058, allocations: 17.34 MB / 1.129 GB, free: 6.953 MB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003859/1.062, allocations: 327.5 kB / 1.129 GB, free: 6.633 MB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000264/1.062, allocations: 83.98 kB / 1.129 GB, free: 6.551 MB / 0.8887 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.001422/1.064, allocations: 0.7105 MB / 1.13 GB, free: 5.828 MB / 0.8887 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005435/1.064, allocations: 332.1 kB / 1.13 GB, free: 5.5 MB / 0.8887 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005913/1.065, allocations: 388 kB / 1.131 GB, free: 5.113 MB / 0.8887 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.65e-05/1.065, allocations: 24 kB / 1.131 GB, free: 5.09 MB / 0.8887 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.931e-05/1.065, allocations: 12 kB / 1.131 GB, free: 5.078 MB / 0.8887 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.781e-05/1.065, allocations: 11.95 kB / 1.131 GB, free: 5.066 MB / 0.8887 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00452/1.07, allocations: 3.628 MB / 1.134 GB, free: 1.379 MB / 0.8887 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.035e-05/1.07, allocations: 3.938 kB / 1.134 GB, free: 1.375 MB / 0.8887 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002478/1.072, allocations: 415.4 kB / 1.135 GB, free: 0.9688 MB / 0.8887 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.009941/1.082, allocations: 2.865 MB / 1.138 GB, free: 14.09 MB / 0.9044 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004134/1.082, allocations: 59.84 kB / 1.138 GB, free: 14.04 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03805/1.12, allocations: 17.1 MB / 1.154 GB, free: 12.66 MB / 0.92 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.67e-06/1.121, allocations: 8 kB / 1.154 GB, free: 12.65 MB / 0.92 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01767/1.138, allocations: 6.173 MB / 1.16 GB, free: 6.438 MB / 0.92 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00174/1.14, allocations: 0.7 MB / 1.161 GB, free: 5.715 MB / 0.92 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000548/1.141, allocations: 51.92 kB / 1.161 GB, free: 5.664 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003193/1.144, allocations: 311.6 kB / 1.161 GB, free: 5.359 MB / 0.92 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001268/1.145, allocations: 350.7 kB / 1.162 GB, free: 5.02 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002112/1.145, allocations: 75.97 kB / 1.162 GB, free: 4.945 MB / 0.92 GB Notification: Performance of sorting global known variables: time 0.002115/1.147, allocations: 1.532 MB / 1.163 GB, free: 3.414 MB / 0.92 GB Notification: Performance of sort global known variables: time 1.2e-07/1.147, allocations: 0 / 1.163 GB, free: 3.414 MB / 0.92 GB Notification: Performance of remove unused functions: time 0.002633/1.15, allocations: 1.043 MB / 1.164 GB, free: 2.371 MB / 0.92 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.0178/1.168, allocations: 6.802 MB / 1.171 GB, free: 11.53 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.02244/1.19, allocations: 6.441 MB / 1.177 GB, free: 4.988 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 9.317e-06/1.19, allocations: 4 kB / 1.177 GB, free: 4.984 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 0.0165/1.207, allocations: 4.045 MB / 1.181 GB, free: 0.9141 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004742/1.212, allocations: 1.06 MB / 1.182 GB, free: 15.87 MB / 0.9512 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07644/1.288, allocations: 38.09 MB / 1.219 GB, free: 7.691 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002137/1.29, allocations: 2.227 MB / 1.222 GB, free: 5.434 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 0.002692/1.293, allocations: 0.5099 MB / 1.222 GB, free: 4.918 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001741/1.295, allocations: 1.327 MB / 1.223 GB, free: 3.59 MB / 0.9825 GB Notification: Performance of SimCode: time 8.51e-07/1.295, allocations: 4 kB / 1.223 GB, free: 3.586 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.56/1.855, allocations: 99.39 MB / 1.32 GB, free: 247 MB / 1.014 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001737/1.855, allocations: 236.8 kB / 1.321 GB, free: 246.8 MB / 1.014 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.598/6.452, allocations: 6.938 kB / 1.321 GB, free: 246.7 MB / 1.014 GB (rm -f Buildings_9_Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized.pipe ; mkfifo Buildings_9_Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized.pipe >> ../files/Buildings_9_Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized_res.mat --tempDir=temp_Buildings_9_Buildings_Electrical_DC_Lines_Examples_DCLinesLinearized_fmu --startTime=0 --stopTime=4000 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Electrical_DC_Lines_Examples_DCLinesLinearized.fmu > Buildings_9_Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized.pipe 2>&1)