Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Electrical.DC.Lines.Examples.DCLines.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Electrical.DC.Lines.Examples.DCLines,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Electrical_DC_Lines_Examples_DCLines",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.DC.Lines.Examples.DCLines,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Electrical_DC_Lines_Examples_DCLines",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.441/1.441, allocations: 252 MB / 267.3 MB, free: 10.82 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001036/0.001036, allocations: 168.7 kB / 327 MB, free: 2.102 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.047/2.047, allocations: 205.4 MB / 0.578 GB, free: 20.12 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.000925/0.0009248, allocations: 85.61 kB / 0.6826 GB, free: 12.75 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0003927/0.0003928, allocations: 8.625 kB / 0.7971 GB, free: 135.1 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2492/0.2496, allocations: 106.3 MB / 0.9009 GB, free: 63.37 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Lines.Examples.DCLines): time 0.0187/0.2683, allocations: 21.49 MB / 0.9219 GB, free: 41.79 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.0221/0.2905, allocations: 17.49 MB / 0.939 GB, free: 24.25 MB / 0.6042 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.004018/0.2946, allocations: 99.44 kB / 0.9391 GB, free: 24.15 MB / 0.6042 GB Notification: Performance of NFTyping.typeComponents: time 0.002623/0.2972, allocations: 0.5892 MB / 0.9397 GB, free: 23.56 MB / 0.6042 GB Notification: Performance of NFTyping.typeBindings: time 0.01178/0.309, allocations: 3.196 MB / 0.9428 GB, free: 20.36 MB / 0.6042 GB Notification: Performance of NFTyping.typeClassSections: time 0.004213/0.3132, allocations: 1.175 MB / 0.9439 GB, free: 19.19 MB / 0.6042 GB Notification: Performance of NFFlatten.flatten: time 0.008841/0.3221, allocations: 6.872 MB / 0.9506 GB, free: 12.3 MB / 0.6042 GB Notification: Performance of NFFlatten.resolveConnections: time 0.003033/0.3252, allocations: 2.511 MB / 0.9531 GB, free: 9.688 MB / 0.6042 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003483/0.3286, allocations: 1.972 MB / 0.955 GB, free: 7.707 MB / 0.6042 GB Notification: Performance of NFSimplifyModel.simplify: time 0.004269/0.3329, allocations: 2.249 MB / 0.9572 GB, free: 5.449 MB / 0.6042 GB Notification: Performance of NFPackage.collectConstants: time 0.0006564/0.3336, allocations: 164 kB / 0.9574 GB, free: 5.289 MB / 0.6042 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002486/0.3361, allocations: 1.041 MB / 0.9584 GB, free: 4.246 MB / 0.6042 GB Notification: Performance of NFScalarize.scalarize: time 0.0008564/0.337, allocations: 0.9496 MB / 0.9593 GB, free: 3.293 MB / 0.6042 GB Notification: Performance of NFVerifyModel.verify: time 0.002161/0.3391, allocations: 1.746 MB / 0.961 GB, free: 1.531 MB / 0.6042 GB Notification: Performance of NFConvertDAE.convert: time 0.005558/0.3447, allocations: 4.834 MB / 0.9657 GB, free: 12.68 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 5.721e-06/0.3447, allocations: 0 / 0.9657 GB, free: 12.68 MB / 0.6198 GB Notification: Performance of FrontEnd: time 2.875e-06/0.3447, allocations: 0 / 0.9657 GB, free: 12.68 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 8.058e-05/0.3448, allocations: 4 kB / 0.9657 GB, free: 12.68 MB / 0.6198 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.008025/0.3529, allocations: 3.838 MB / 0.9695 GB, free: 8.727 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 5.919e-05/0.3529, allocations: 8.031 kB / 0.9695 GB, free: 8.719 MB / 0.6198 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006502/0.3536, allocations: 362.3 kB / 0.9698 GB, free: 8.355 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01614/0.3697, allocations: 3.363 MB / 0.9731 GB, free: 4.98 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004773/0.3745, allocations: 2.057 MB / 0.9751 GB, free: 2.855 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001594/0.3747, allocations: 177.1 kB / 0.9753 GB, free: 2.68 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006518/0.3754, allocations: 239.9 kB / 0.9755 GB, free: 2.445 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01105/0.3865, allocations: 4.736 MB / 0.9802 GB, free: 13.57 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.384e-05/0.3865, allocations: 0 / 0.9802 GB, free: 13.57 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003176/0.3869, allocations: 119.9 kB / 0.9803 GB, free: 13.45 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002143/0.3871, allocations: 168.8 kB / 0.9804 GB, free: 13.28 MB / 0.6355 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01335/0.4005, allocations: 5.237 MB / 0.9855 GB, free: 8.027 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02343/0.424, allocations: 14.12 MB / 0.9993 GB, free: 8.742 MB / 0.6511 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01117/0.4352, allocations: 3.857 MB / 1.003 GB, free: 4.875 MB / 0.6511 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003676/0.4389, allocations: 1.522 MB / 1.005 GB, free: 3.352 MB / 0.6511 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001083/0.439, allocations: 25.28 kB / 1.005 GB, free: 3.328 MB / 0.6511 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004291/0.4433, allocations: 1.829 MB / 1.006 GB, free: 1.434 MB / 0.6511 GB Notification: Performance of pre-optimization done (n=163): time 3.947e-06/0.4434, allocations: 4 kB / 1.006 GB, free: 1.43 MB / 0.6511 GB Notification: Performance of matching and sorting (n=250): time 0.1301/0.5735, allocations: 33.43 MB / 1.039 GB, free: 15.78 MB / 0.698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003659/0.5739, allocations: 0.4889 MB / 1.04 GB, free: 15.18 MB / 0.698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004529/0.5785, allocations: 2.3 MB / 1.042 GB, free: 12.87 MB / 0.698 GB Notification: Performance of collectPreVariables (initialization): time 0.0005648/0.5791, allocations: 73.7 kB / 1.042 GB, free: 12.79 MB / 0.698 GB Notification: Performance of collectInitialEqns (initialization): time 0.001607/0.5807, allocations: 1.442 MB / 1.043 GB, free: 11.33 MB / 0.698 GB Notification: Performance of collectInitialBindings (initialization): time 0.001263/0.582, allocations: 0.8163 MB / 1.044 GB, free: 10.5 MB / 0.698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003318/0.5823, allocations: 48 kB / 1.044 GB, free: 10.46 MB / 0.698 GB Notification: Performance of setup shared object (initialization): time 0.0002435/0.5826, allocations: 398.6 kB / 1.044 GB, free: 10.06 MB / 0.698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005297/0.5879, allocations: 1.933 MB / 1.046 GB, free: 8.125 MB / 0.698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005521/0.5934, allocations: 2.227 MB / 1.049 GB, free: 5.812 MB / 0.698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01083/0.6043, allocations: 4.216 MB / 1.053 GB, free: 1.461 MB / 0.698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.978e-05/0.6044, allocations: 0 / 1.053 GB, free: 1.461 MB / 0.698 GB Notification: Performance of matching and sorting (n=299) (initialization): time 0.4869/1.091, allocations: 6.189 MB / 1.059 GB, free: 139.8 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003551/1.092, allocations: 404.9 kB / 1.059 GB, free: 139.3 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.97e-05/1.092, allocations: 10.03 kB / 1.059 GB, free: 139.3 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.007044/1.099, allocations: 1.861 MB / 1.061 GB, free: 139.3 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003363/1.102, allocations: 0.5792 MB / 1.061 GB, free: 139.2 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02645/1.129, allocations: 14.19 MB / 1.075 GB, free: 135.7 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004165/1.133, allocations: 407.7 kB / 1.076 GB, free: 135.6 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004858/1.133, allocations: 89.42 kB / 1.076 GB, free: 135.6 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 1.48e-05/1.133, allocations: 3.969 kB / 1.076 GB, free: 135.6 MB / 0.698 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01454/1.148, allocations: 5.782 MB / 1.081 GB, free: 133.7 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.149e-05/1.148, allocations: 7.906 kB / 1.081 GB, free: 133.7 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005027/1.153, allocations: 1.819 MB / 1.083 GB, free: 133.3 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003213/1.156, allocations: 0.6123 MB / 1.084 GB, free: 133.3 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01905/1.175, allocations: 13.47 MB / 1.097 GB, free: 125.1 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003912/1.179, allocations: 397.5 kB / 1.097 GB, free: 124.9 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004537/1.18, allocations: 94.69 kB / 1.097 GB, free: 124.9 MB / 0.698 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 ($whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,$PRE.varLoad1.T_start,varLoad1.T_start,$PRE.varLoad1.count,varLoad1.count,$PRE.varLoad2.T_start,varLoad2.T_start,$PRE.varLoad2.count,varLoad2.count,$PRE.varLoad3.T_start,varLoad3.T_start,$PRE.varLoad3.count,varLoad3.count,$PRE.varLoad4.T_start,varLoad4.T_start,$PRE.varLoad4.count,varLoad4.count,$PRE.varLoad5.T_start,varLoad5.T_start,$PRE.varLoad5.count,varLoad5.count) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (172): * Single equations (assignments): 165 * 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 {(10,52)} Notification: Performance of prepare postOptimizeDAE: time 0.001799/1.182, allocations: 0.7797 MB / 1.098 GB, free: 124.4 MB / 0.698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008061/1.183, allocations: 331.6 kB / 1.099 GB, free: 124.2 MB / 0.698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007329/1.183, allocations: 393.5 kB / 1.099 GB, free: 123.9 MB / 0.698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.487e-05/1.183, allocations: 24.28 kB / 1.099 GB, free: 123.9 MB / 0.698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.739e-05/1.183, allocations: 10.94 kB / 1.099 GB, free: 123.9 MB / 0.698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.989e-05/1.183, allocations: 15.95 kB / 1.099 GB, free: 123.9 MB / 0.698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004016/1.187, allocations: 3.167 MB / 1.102 GB, free: 120.8 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.066e-05/1.187, allocations: 3.938 kB / 1.102 GB, free: 120.8 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002511/1.19, allocations: 0.5111 MB / 1.103 GB, free: 120.3 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00564/1.196, allocations: 1.723 MB / 1.104 GB, free: 118.5 MB / 0.698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004411/1.196, allocations: 43.97 kB / 1.104 GB, free: 118.5 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0175/1.214, allocations: 13.98 MB / 1.118 GB, free: 104.2 MB / 0.698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.995e-06/1.214, allocations: 7.984 kB / 1.118 GB, free: 104.2 MB / 0.698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01378/1.227, allocations: 5.799 MB / 1.124 GB, free: 98.41 MB / 0.698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001602/1.229, allocations: 0.6624 MB / 1.124 GB, free: 97.72 MB / 0.698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005471/1.23, allocations: 49.83 kB / 1.124 GB, free: 97.68 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002893/1.233, allocations: 407 kB / 1.125 GB, free: 97.28 MB / 0.698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008731/1.233, allocations: 290.7 kB / 1.125 GB, free: 97 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001783/1.234, allocations: 71.97 kB / 1.125 GB, free: 96.93 MB / 0.698 GB Notification: Performance of sorting global known variables: time 0.001795/1.235, allocations: 1.528 MB / 1.127 GB, free: 95.4 MB / 0.698 GB Notification: Performance of sort global known variables: time 1.4e-07/1.235, allocations: 4 kB / 1.127 GB, free: 95.39 MB / 0.698 GB Notification: Performance of remove unused functions: time 0.004505/1.24, allocations: 1.625 MB / 1.128 GB, free: 93.77 MB / 0.698 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 (128): * Single equations (assignments): 116 * 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,52)} Notification: Performance of Backend phase and start with SimCode phase: time 0.01393/1.254, allocations: 6.44 MB / 1.134 GB, free: 87.29 MB / 0.698 GB Notification: Performance of simCode: created initialization part: time 0.0218/1.276, allocations: 10.1 MB / 1.144 GB, free: 77.01 MB / 0.698 GB Notification: Performance of simCode: created event and clocks part: time 1.059e-05/1.276, allocations: 4.25 kB / 1.144 GB, free: 77 MB / 0.698 GB Notification: Performance of simCode: created simulation system equations: time 0.007815/1.284, allocations: 3.491 MB / 1.148 GB, free: 73.49 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005028/1.289, allocations: 1.052 MB / 1.149 GB, free: 72.47 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06938/1.358, allocations: 37.21 MB / 1.185 GB, free: 33.21 MB / 0.698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001744/1.36, allocations: 2.305 MB / 1.187 GB, free: 30.86 MB / 0.698 GB Notification: Performance of simCode: alias equations: time 0.003159/1.363, allocations: 0.6348 MB / 1.188 GB, free: 30.22 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001542/1.365, allocations: 1.335 MB / 1.189 GB, free: 28.89 MB / 0.698 GB Notification: Performance of SimCode: time 6.91e-07/1.365, allocations: 0 / 1.189 GB, free: 28.89 MB / 0.698 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1623/1.527, allocations: 102.3 MB / 1.289 GB, free: 7.426 MB / 0.7761 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000201/1.527, allocations: 244.8 kB / 1.289 GB, free: 7.164 MB / 0.7761 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.408/7.936, allocations: 0 / 1.289 GB, free: 7.164 MB / 0.7761 GB (rm -f Buildings_maint.7.0.x_Buildings.Electrical.DC.Lines.Examples.DCLines.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Electrical.DC.Lines.Examples.DCLines.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Electrical.DC.Lines.Examples.DCLines.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Electrical.DC.Lines.Examples.DCLines.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_7_0_x_Buildings_Electrical_DC_Lines_Examples_DCLines_fmu --startTime=0 --stopTime=4000 --timeout=50 --tolerance=1e-06 Buildings_maint_7_0_x_Buildings_Electrical_DC_Lines_Examples_DCLines.fmu > Buildings_maint.7.0.x_Buildings.Electrical.DC.Lines.Examples.DCLines.pipe 2>&1)