Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.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_10_Buildings_Electrical_DC_Lines_Examples_DCLinesLinearized",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized,fileNamePrefix="Buildings_10_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.001043/0.001043, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001073/0.001072, allocations: 194.6 kB / 16.14 MB, free: 6.648 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.323/1.323, allocations: 222.9 MB / 239.8 MB, free: 4.523 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.424/2.424, allocations: 437 MB / 0.7099 GB, free: 5.34 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001216/0.001216, allocations: 59.91 kB / 0.8687 GB, free: 5.113 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5343/0.5355, allocations: 151.6 MB / 1.017 GB, free: 2.793 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized): time 0.02052/0.5561, allocations: 22.44 MB / 1.039 GB, free: 12.28 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.02041/0.5765, allocations: 17.59 MB / 1.056 GB, free: 10.63 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002247/0.5788, allocations: 103.4 kB / 1.056 GB, free: 10.53 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.00855/0.5874, allocations: 3.913 MB / 1.06 GB, free: 6.613 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.007717/0.5951, allocations: 3.197 MB / 1.063 GB, free: 3.414 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.00259/0.5977, allocations: 1.184 MB / 1.064 GB, free: 2.234 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.006709/0.6044, allocations: 7.053 MB / 1.071 GB, free: 11.16 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.003225/0.6076, allocations: 2.499 MB / 1.073 GB, free: 8.586 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003063/0.6107, allocations: 2.171 MB / 1.075 GB, free: 6.406 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.003501/0.6142, allocations: 2.459 MB / 1.078 GB, free: 3.938 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 0.0005208/0.6148, allocations: 228 kB / 1.078 GB, free: 3.715 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001897/0.6167, allocations: 1.104 MB / 1.079 GB, free: 2.609 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 0.0008284/0.6175, allocations: 1.063 MB / 1.08 GB, free: 1.543 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.001614/0.6191, allocations: 1.861 MB / 1.082 GB, free: 15.67 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.003723/0.6228, allocations: 5.065 MB / 1.087 GB, free: 10.59 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 3.777e-06/0.6229, allocations: 0 / 1.087 GB, free: 10.59 MB / 0.8419 GB Notification: Performance of FrontEnd: time 1.102e-06/0.6229, allocations: 0 / 1.087 GB, free: 10.59 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 3.878e-05/0.6229, allocations: 0 / 1.087 GB, free: 10.59 MB / 0.8419 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.008091/0.631, allocations: 4.609 MB / 1.091 GB, free: 5.867 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 3.855e-05/0.6311, allocations: 12.03 kB / 1.091 GB, free: 5.855 MB / 0.8419 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004062/0.6315, allocations: 366.3 kB / 1.092 GB, free: 5.488 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0147/0.6462, allocations: 3.261 MB / 1.095 GB, free: 2.219 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003598/0.6498, allocations: 2.088 MB / 1.097 GB, free: 64 kB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003258/0.6501, allocations: 466 kB / 1.097 GB, free: 15.54 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003887/0.6505, allocations: 236 kB / 1.098 GB, free: 15.31 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00958/0.6601, allocations: 4.814 MB / 1.102 GB, free: 10.35 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.878e-05/0.6602, allocations: 0 / 1.102 GB, free: 10.35 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002879/0.6605, allocations: 107.9 kB / 1.103 GB, free: 10.25 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001922/0.6607, allocations: 172.8 kB / 1.103 GB, free: 10.07 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01239/0.6731, allocations: 5.195 MB / 1.108 GB, free: 4.863 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02313/0.6962, allocations: 14.46 MB / 1.122 GB, free: 5.23 MB / 0.8731 GB Notification: Performance of preOpt comSubExp (simulation): time 0.009375/0.7056, allocations: 3.406 MB / 1.125 GB, free: 1.816 MB / 0.8731 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00342/0.7091, allocations: 1.467 MB / 1.127 GB, free: 356 kB / 0.8731 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001705/0.7093, allocations: 21.3 kB / 1.127 GB, free: 336 kB / 0.8731 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004167/0.7134, allocations: 1.802 MB / 1.128 GB, free: 14.45 MB / 0.8887 GB Notification: Performance of pre-optimization done (n=163): time 3.877e-06/0.7135, allocations: 0 / 1.128 GB, free: 14.45 MB / 0.8887 GB Notification: Performance of matching and sorting (n=250): time 0.1124/0.8258, allocations: 28.22 MB / 1.156 GB, free: 2.004 MB / 0.9044 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002103/0.8261, allocations: 0.4928 MB / 1.156 GB, free: 1.398 MB / 0.9044 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003133/0.8292, allocations: 2.3 MB / 1.159 GB, free: 15.08 MB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 0.0003358/0.8296, allocations: 77.7 kB / 1.159 GB, free: 15 MB / 0.92 GB Notification: Performance of collectInitialEqns (initialization): time 0.001095/0.8307, allocations: 1.434 MB / 1.16 GB, free: 13.55 MB / 0.92 GB Notification: Performance of collectInitialBindings (initialization): time 0.0008079/0.8315, allocations: 0.8201 MB / 1.161 GB, free: 12.72 MB / 0.92 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009616/0.8325, allocations: 416.5 kB / 1.161 GB, free: 12.31 MB / 0.92 GB Notification: Performance of setup shared object (initialization): time 8.275e-05/0.8326, allocations: 301.1 kB / 1.162 GB, free: 12.01 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004592/0.8372, allocations: 1.933 MB / 1.164 GB, free: 10.07 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004773/0.8419, allocations: 2.223 MB / 1.166 GB, free: 7.766 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009433/0.8514, allocations: 4.161 MB / 1.17 GB, free: 3.469 MB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.677e-06/0.8514, allocations: 0 / 1.17 GB, free: 3.469 MB / 0.92 GB Notification: Performance of matching and sorting (n=299) (initialization): time 0.01659/0.868, allocations: 6.543 MB / 1.176 GB, free: 12.83 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 9.188e-05/0.8681, allocations: 148.5 kB / 1.176 GB, free: 12.66 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.625e-05/0.8682, allocations: 8 kB / 1.176 GB, free: 12.65 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.009409/0.8776, allocations: 2.926 MB / 1.179 GB, free: 9.715 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002518/0.8801, allocations: 487.2 kB / 1.18 GB, free: 9.238 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1649/1.045, allocations: 17.35 MB / 1.197 GB, free: 7.656 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003488/1.048, allocations: 323.5 kB / 1.197 GB, free: 7.34 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002297/1.049, allocations: 87.97 kB / 1.197 GB, free: 7.254 MB / 0.9512 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.001259/1.05, allocations: 0.7072 MB / 1.198 GB, free: 6.535 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004621/1.05, allocations: 332.1 kB / 1.198 GB, free: 6.207 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005282/1.051, allocations: 384.1 kB / 1.198 GB, free: 5.824 MB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.54e-05/1.051, allocations: 27.94 kB / 1.198 GB, free: 5.797 MB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.961e-05/1.051, allocations: 8 kB / 1.198 GB, free: 5.789 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.559e-05/1.051, allocations: 11.95 kB / 1.198 GB, free: 5.777 MB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003892/1.055, allocations: 3.624 MB / 1.202 GB, free: 2.098 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.152e-06/1.055, allocations: 4 kB / 1.202 GB, free: 2.094 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002214/1.057, allocations: 407.4 kB / 1.202 GB, free: 1.695 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00868/1.066, allocations: 2.869 MB / 1.205 GB, free: 14.81 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001983/1.066, allocations: 59.91 kB / 1.205 GB, free: 14.75 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03207/1.098, allocations: 17.1 MB / 1.222 GB, free: 13.38 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.907e-06/1.098, allocations: 4.078 kB / 1.222 GB, free: 13.37 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01541/1.114, allocations: 6.184 MB / 1.228 GB, free: 7.148 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001254/1.115, allocations: 0.7 MB / 1.229 GB, free: 6.426 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004478/1.115, allocations: 47.94 kB / 1.229 GB, free: 6.379 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00272/1.118, allocations: 311.6 kB / 1.229 GB, free: 6.074 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001051/1.119, allocations: 346.7 kB / 1.229 GB, free: 5.738 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002025/1.119, allocations: 75.97 kB / 1.229 GB, free: 5.664 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 0.001832/1.121, allocations: 1.532 MB / 1.231 GB, free: 4.133 MB / 0.9825 GB Notification: Performance of sort global known variables: time 1.61e-07/1.121, allocations: 0 / 1.231 GB, free: 4.133 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.002167/1.123, allocations: 1.043 MB / 1.232 GB, free: 3.09 MB / 0.9825 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.01601/1.139, allocations: 6.81 MB / 1.239 GB, free: 12.23 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.02009/1.159, allocations: 6.453 MB / 1.245 GB, free: 5.688 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 4.659e-06/1.16, allocations: 0 / 1.245 GB, free: 5.688 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.01466/1.174, allocations: 4.041 MB / 1.249 GB, free: 1.617 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00381/1.178, allocations: 1.043 MB / 1.25 GB, free: 0.5859 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4355/1.613, allocations: 38.11 MB / 1.287 GB, free: 199.3 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001388/1.615, allocations: 2.223 MB / 1.289 GB, free: 198.4 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.002154/1.617, allocations: 0.5105 MB / 1.29 GB, free: 198.4 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001301/1.618, allocations: 1.328 MB / 1.291 GB, free: 197.3 MB / 0.9981 GB Notification: Performance of SimCode: time 7.22e-07/1.618, allocations: 3.938 kB / 1.291 GB, free: 197.3 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 3.793/5.411, allocations: 99.38 MB / 1.388 GB, free: 105.5 MB / 0.9981 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001552/5.411, allocations: 247 kB / 1.388 GB, free: 105.2 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 5.054/10.47, allocations: 0 / 1.388 GB, free: 105.2 MB / 0.9981 GB (rm -f Buildings_10_Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized.pipe ; mkfifo Buildings_10_Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized.pipe ; head -c 1048576 < Buildings_10_Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized.pipe >> ../files/Buildings_10_Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_10_Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized_res.mat --tempDir=temp_Buildings_10_Buildings_Electrical_DC_Lines_Examples_DCLinesLinearized_fmu --startTime=0 --stopTime=4000 --timeout=50 --tolerance=1e-06 Buildings_10_Buildings_Electrical_DC_Lines_Examples_DCLinesLinearized.fmu > Buildings_10_Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized.pipe 2>&1)