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.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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.001139/0.001138, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001269/0.001269, allocations: 195.3 kB / 16.53 MB, free: 6.664 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.343/1.343, allocations: 222.9 MB / 240.2 MB, free: 4.406 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.708/2.708, allocations: 461.9 MB / 0.7347 GB, free: 14.73 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001359/0.001359, allocations: 63.45 kB / 0.8992 GB, free: 36.94 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2992/0.3006, allocations: 157.4 MB / 1.053 GB, free: 8.293 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized): time 0.02671/0.3273, allocations: 22.63 MB / 1.075 GB, free: 1.578 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.0292/0.3566, allocations: 17.64 MB / 1.092 GB, free: 15.89 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.004318/0.361, allocations: 107.4 kB / 1.092 GB, free: 15.78 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.01127/0.3723, allocations: 4.175 MB / 1.096 GB, free: 11.6 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.01171/0.384, allocations: 3.512 MB / 1.1 GB, free: 8.078 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.003867/0.3879, allocations: 1.318 MB / 1.101 GB, free: 6.762 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.008464/0.3963, allocations: 5.772 MB / 1.107 GB, free: 0.9727 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.00566/0.402, allocations: 3.596 MB / 1.11 GB, free: 13.3 MB / 0.8731 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004209/0.4063, allocations: 2.391 MB / 1.113 GB, free: 10.91 MB / 0.8731 GB Notification: Performance of NFSimplifyModel.simplify: time 0.004582/0.4109, allocations: 2.452 MB / 1.115 GB, free: 8.445 MB / 0.8731 GB Notification: Performance of NFPackage.collectConstants: time 0.00125/0.4121, allocations: 368 kB / 1.115 GB, free: 8.086 MB / 0.8731 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002994/0.4151, allocations: 1.034 MB / 1.116 GB, free: 7.051 MB / 0.8731 GB Notification: Performance of NFScalarize.scalarize: time 0.001566/0.4167, allocations: 1.203 MB / 1.118 GB, free: 5.844 MB / 0.8731 GB Notification: Performance of NFVerifyModel.verify: time 0.003572/0.4203, allocations: 1.986 MB / 1.119 GB, free: 3.848 MB / 0.8731 GB Notification: Performance of NFConvertDAE.convert: time 0.00634/0.4267, allocations: 5.116 MB / 1.124 GB, free: 14.71 MB / 0.8887 GB Notification: Performance of FrontEnd - DAE generated: time 4.778e-06/0.4267, allocations: 0 / 1.124 GB, free: 14.71 MB / 0.8887 GB Notification: Performance of FrontEnd: time 1.282e-06/0.4267, allocations: 0 / 1.124 GB, free: 14.71 MB / 0.8887 GB Notification: Performance of Transformations before backend: time 0.0001306/0.4268, allocations: 0 / 1.124 GB, free: 14.71 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.009924/0.4368, allocations: 4.608 MB / 1.129 GB, free: 9.992 MB / 0.8887 GB Notification: Performance of prepare preOptimizeDAE: time 4.25e-05/0.4368, allocations: 8.625 kB / 1.129 GB, free: 9.984 MB / 0.8887 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004609/0.4373, allocations: 362.3 kB / 1.129 GB, free: 9.621 MB / 0.8887 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01662/0.4539, allocations: 3.265 MB / 1.133 GB, free: 6.348 MB / 0.8887 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004661/0.4586, allocations: 2.096 MB / 1.135 GB, free: 4.184 MB / 0.8887 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004953/0.4592, allocations: 466 kB / 1.135 GB, free: 3.664 MB / 0.8887 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001053/0.4602, allocations: 232 kB / 1.135 GB, free: 3.438 MB / 0.8887 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01351/0.4737, allocations: 4.818 MB / 1.14 GB, free: 14.47 MB / 0.9044 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.038e-05/0.4739, allocations: 0 / 1.14 GB, free: 14.47 MB / 0.9044 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008359/0.4747, allocations: 104 kB / 1.14 GB, free: 14.37 MB / 0.9044 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002311/0.4749, allocations: 176.8 kB / 1.14 GB, free: 14.2 MB / 0.9044 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01493/0.4899, allocations: 5.194 MB / 1.145 GB, free: 8.984 MB / 0.9044 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02272/0.5126, allocations: 14.47 MB / 1.159 GB, free: 9.34 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01014/0.5228, allocations: 3.387 MB / 1.163 GB, free: 5.945 MB / 0.92 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003915/0.5267, allocations: 1.475 MB / 1.164 GB, free: 4.469 MB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001118/0.5269, allocations: 21.3 kB / 1.164 GB, free: 4.445 MB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004333/0.5312, allocations: 1.794 MB / 1.166 GB, free: 2.586 MB / 0.92 GB Notification: Performance of pre-optimization done (n=163): time 5.08e-06/0.5312, allocations: 0 / 1.166 GB, free: 2.586 MB / 0.92 GB Notification: Performance of matching and sorting (n=250): time 0.1263/0.6576, allocations: 28.23 MB / 1.193 GB, free: 6.129 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000235/0.6578, allocations: 0.4889 MB / 1.194 GB, free: 5.527 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003288/0.6611, allocations: 2.304 MB / 1.196 GB, free: 3.211 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 0.0003031/0.6614, allocations: 73.7 kB / 1.196 GB, free: 3.133 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 0.00107/0.6625, allocations: 1.43 MB / 1.198 GB, free: 1.688 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 0.0007588/0.6633, allocations: 0.824 MB / 1.198 GB, free: 0.8516 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009141/0.6642, allocations: 416.5 kB / 1.199 GB, free: 448 kB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 7.591e-05/0.6643, allocations: 305.1 kB / 1.199 GB, free: 140 kB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005121/0.6694, allocations: 1.925 MB / 1.201 GB, free: 14.21 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005243/0.6747, allocations: 2.235 MB / 1.203 GB, free: 11.89 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01007/0.6848, allocations: 4.158 MB / 1.207 GB, free: 7.594 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.412e-06/0.6848, allocations: 0 / 1.207 GB, free: 7.594 MB / 0.9669 GB Notification: Performance of matching and sorting (n=299) (initialization): time 0.01765/0.7024, allocations: 6.543 MB / 1.214 GB, free: 0.9609 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 8.45e-05/0.7026, allocations: 152.4 kB / 1.214 GB, free: 0.7812 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.503e-05/0.7026, allocations: 4 kB / 1.214 GB, free: 0.7773 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.009629/0.7122, allocations: 2.946 MB / 1.217 GB, free: 13.82 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002717/0.7149, allocations: 487.2 kB / 1.217 GB, free: 13.35 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03735/0.7523, allocations: 18.86 MB / 1.236 GB, free: 10.25 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003816/0.7562, allocations: 323.6 kB / 1.236 GB, free: 9.934 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003797/0.7566, allocations: 83.98 kB / 1.236 GB, free: 9.852 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.001479/0.758, allocations: 0.7066 MB / 1.237 GB, free: 9.133 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007056/0.7588, allocations: 336 kB / 1.237 GB, free: 8.801 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007531/0.7595, allocations: 376.1 kB / 1.237 GB, free: 8.426 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.752e-05/0.7595, allocations: 27.98 kB / 1.237 GB, free: 8.398 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.979e-05/0.7596, allocations: 12 kB / 1.237 GB, free: 8.387 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.021e-05/0.7596, allocations: 11.95 kB / 1.237 GB, free: 8.375 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004812/0.7644, allocations: 3.628 MB / 1.241 GB, free: 4.688 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.42e-05/0.7645, allocations: 4 kB / 1.241 GB, free: 4.684 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002417/0.7669, allocations: 415.3 kB / 1.241 GB, free: 4.277 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.009209/0.7761, allocations: 2.892 MB / 1.244 GB, free: 1.375 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002366/0.7764, allocations: 51.97 kB / 1.244 GB, free: 1.324 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.4528/1.229, allocations: 18.62 MB / 1.262 GB, free: 174.8 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.973e-06/1.229, allocations: 0 / 1.262 GB, free: 174.8 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01827/1.247, allocations: 6.175 MB / 1.268 GB, free: 173.7 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001355/1.249, allocations: 0.6944 MB / 1.269 GB, free: 173.4 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000687/1.25, allocations: 49.27 kB / 1.269 GB, free: 173.3 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003248/1.253, allocations: 311.5 kB / 1.269 GB, free: 173.3 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001164/1.254, allocations: 354.9 kB / 1.27 GB, free: 173.2 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002128/1.254, allocations: 72.88 kB / 1.27 GB, free: 173.2 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.002313/1.256, allocations: 1.532 MB / 1.271 GB, free: 172.6 MB / 0.9981 GB Notification: Performance of sort global known variables: time 2e-07/1.257, allocations: 0 / 1.271 GB, free: 172.6 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.002643/1.259, allocations: 1.047 MB / 1.272 GB, free: 172.5 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.01702/1.276, allocations: 6.807 MB / 1.279 GB, free: 170 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.02345/1.3, allocations: 7.305 MB / 1.286 GB, free: 167.7 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 8.657e-06/1.3, allocations: 4.344 kB / 1.286 GB, free: 167.7 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.01573/1.315, allocations: 4.061 MB / 1.29 GB, free: 166.4 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004695/1.32, allocations: 1.131 MB / 1.291 GB, free: 166 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06/1.38, allocations: 36.88 MB / 1.327 GB, free: 133.7 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001748/1.382, allocations: 2.239 MB / 1.329 GB, free: 131.4 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.002117/1.384, allocations: 0.506 MB / 1.33 GB, free: 130.9 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001329/1.385, allocations: 1.339 MB / 1.331 GB, free: 129.6 MB / 0.9981 GB Notification: Performance of SimCode: time 7.61e-07/1.385, allocations: 4 kB / 1.331 GB, free: 129.6 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 3.404/4.79, allocations: 104.2 MB / 1.433 GB, free: 26.48 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 30.87/35.66, allocations: 6.125 kB / 1.433 GB, free: 26.48 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)