Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8.0.0_Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/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 8.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo) Running command: "" <> buildModelFMU(Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized,fileNamePrefix="Buildings_8_0_0_Buildings_Electrical_DC_Lines_Examples_DCLinesLinearized",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized,fileNamePrefix="Buildings_8_0_0_Buildings_Electrical_DC_Lines_Examples_DCLinesLinearized",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo): time 2.559/2.559, allocations: 287.5 MB / 302.4 MB, free: 8.223 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001454/0.001454, allocations: 182.3 kB / 371 MB, free: 10.86 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.209/2.209, allocations: 205.4 MB / 0.6297 GB, free: 10.6 MB / 458.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008779/0.0008778, allocations: 94.53 kB / 0.743 GB, free: 6.605 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0007229/0.0007233, allocations: 12.56 kB / 0.8659 GB, free: 140.2 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2323/0.2331, allocations: 115.3 MB / 0.9784 GB, free: 28.28 MB / 0.6198 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized): time 0.02816/0.2613, allocations: 20.26 MB / 0.9982 GB, free: 7.961 MB / 0.6198 GB Notification: Performance of NFInst.instExpressions: time 0.03393/0.2953, allocations: 16.51 MB / 1.014 GB, free: 7.406 MB / 0.6355 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003432/0.2988, allocations: 103.4 kB / 1.014 GB, free: 7.305 MB / 0.6355 GB Notification: Performance of NFTyping.typeComponents: time 0.003184/0.302, allocations: 0.5618 MB / 1.015 GB, free: 6.738 MB / 0.6355 GB Notification: Performance of NFTyping.typeBindings: time 0.01326/0.3153, allocations: 2.863 MB / 1.018 GB, free: 3.871 MB / 0.6355 GB Notification: Performance of NFTyping.typeClassSections: time 0.004815/0.3202, allocations: 0.964 MB / 1.019 GB, free: 2.91 MB / 0.6355 GB Notification: Performance of NFFlatten.flatten: time 0.01213/0.3323, allocations: 5.932 MB / 1.025 GB, free: 12.96 MB / 0.6511 GB Notification: Performance of NFFlatten.resolveConnections: time 0.005935/0.3383, allocations: 2.063 MB / 1.027 GB, free: 10.83 MB / 0.6511 GB Notification: Performance of NFEvalConstants.evaluate: time 0.006037/0.3444, allocations: 1.969 MB / 1.028 GB, free: 8.855 MB / 0.6511 GB Notification: Performance of NFSimplifyModel.simplify: time 0.00678/0.3512, allocations: 2.218 MB / 1.031 GB, free: 6.629 MB / 0.6511 GB Notification: Performance of NFPackage.collectConstants: time 0.00144/0.3527, allocations: 176 kB / 1.031 GB, free: 6.457 MB / 0.6511 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003511/0.3563, allocations: 0.4994 MB / 1.031 GB, free: 5.957 MB / 0.6511 GB Notification: Performance of NFScalarize.scalarize: time 0.002264/0.3586, allocations: 0.9459 MB / 1.032 GB, free: 5.008 MB / 0.6511 GB Notification: Performance of NFVerifyModel.verify: time 0.002202/0.3608, allocations: 0.6912 MB / 1.033 GB, free: 4.309 MB / 0.6511 GB Notification: Performance of NFConvertDAE.convert: time 0.008073/0.3689, allocations: 3.931 MB / 1.037 GB, free: 376 kB / 0.6511 GB Notification: Performance of FrontEnd - DAE generated: time 7.183e-06/0.369, allocations: 0 / 1.037 GB, free: 376 kB / 0.6511 GB Notification: Performance of FrontEnd: time 2.745e-06/0.369, allocations: 4 kB / 1.037 GB, free: 372 kB / 0.6511 GB Notification: Performance of Transformations before backend: time 0.0002065/0.3692, allocations: 0 / 1.037 GB, free: 372 kB / 0.6511 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.0162/0.3854, allocations: 4.111 MB / 1.041 GB, free: 12.14 MB / 0.6667 GB Notification: Performance of prepare preOptimizeDAE: time 6.39e-05/0.3855, allocations: 12.02 kB / 1.041 GB, free: 12.13 MB / 0.6667 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001704/0.3872, allocations: 362.2 kB / 1.041 GB, free: 11.77 MB / 0.6667 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02855/0.4158, allocations: 3.362 MB / 1.044 GB, free: 8.395 MB / 0.6667 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01094/0.4268, allocations: 1.987 MB / 1.046 GB, free: 6.34 MB / 0.6667 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001093/0.428, allocations: 473.7 kB / 1.047 GB, free: 5.812 MB / 0.6667 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002038/0.4301, allocations: 228 kB / 1.047 GB, free: 5.59 MB / 0.6667 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02206/0.4522, allocations: 4.853 MB / 1.052 GB, free: 0.5938 MB / 0.6667 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001215/0.4524, allocations: 11.88 kB / 1.052 GB, free: 0.582 MB / 0.6667 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001185/0.4536, allocations: 112 kB / 1.052 GB, free: 484 kB / 0.6667 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000353/0.4539, allocations: 168.8 kB / 1.052 GB, free: 312 kB / 0.6667 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02597/0.4799, allocations: 5.296 MB / 1.057 GB, free: 10.99 MB / 0.6823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.7095/1.189, allocations: 14.58 MB / 1.071 GB, free: 79.24 MB / 0.6823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02006/1.21, allocations: 3.67 MB / 1.075 GB, free: 78.36 MB / 0.6823 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.007719/1.217, allocations: 1.589 MB / 1.077 GB, free: 77.9 MB / 0.6823 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003078/1.218, allocations: 26.97 kB / 1.077 GB, free: 77.9 MB / 0.6823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.008887/1.227, allocations: 1.915 MB / 1.078 GB, free: 77.29 MB / 0.6823 GB Notification: Performance of pre-optimization done (n=163): time 8.987e-06/1.227, allocations: 2.625 kB / 1.078 GB, free: 77.29 MB / 0.6823 GB Notification: Performance of matching and sorting (n=250): time 0.2967/1.523, allocations: 34.1 MB / 1.112 GB, free: 67.68 MB / 0.6823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001849/1.524, allocations: 0.4948 MB / 1.112 GB, free: 67.1 MB / 0.6823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004822/1.529, allocations: 2.271 MB / 1.114 GB, free: 65.9 MB / 0.6823 GB Notification: Performance of collectPreVariables (initialization): time 0.0006955/1.529, allocations: 82.72 kB / 1.115 GB, free: 65.83 MB / 0.6823 GB Notification: Performance of collectInitialEqns (initialization): time 0.001398/1.531, allocations: 1.43 MB / 1.116 GB, free: 64.57 MB / 0.6823 GB Notification: Performance of collectInitialBindings (initialization): time 0.001298/1.532, allocations: 0.8174 MB / 1.117 GB, free: 63.86 MB / 0.6823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003628/1.532, allocations: 46.94 kB / 1.117 GB, free: 63.83 MB / 0.6823 GB Notification: Performance of setup shared object (initialization): time 0.0001653/1.533, allocations: 408.2 kB / 1.117 GB, free: 63.45 MB / 0.6823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.009485/1.542, allocations: 2.099 MB / 1.119 GB, free: 61.72 MB / 0.6823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01017/1.552, allocations: 2.415 MB / 1.122 GB, free: 59.22 MB / 0.6823 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01015/1.562, allocations: 2.284 MB / 1.124 GB, free: 56.88 MB / 0.6823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.594e-05/1.563, allocations: 0 / 1.124 GB, free: 56.88 MB / 0.6823 GB Notification: Performance of matching and sorting (n=299) (initialization): time 0.03361/1.596, allocations: 6.89 MB / 1.131 GB, free: 49.9 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001071/1.596, allocations: 148.5 kB / 1.131 GB, free: 49.73 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2e-05/1.596, allocations: 4 kB / 1.131 GB, free: 49.72 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01747/1.614, allocations: 2.944 MB / 1.134 GB, free: 46.78 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005403/1.619, allocations: 0.5695 MB / 1.134 GB, free: 46.21 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.06332/1.683, allocations: 17.33 MB / 1.151 GB, free: 28.68 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007281/1.69, allocations: 415.6 kB / 1.151 GB, free: 28.28 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008293/1.691, allocations: 91.97 kB / 1.152 GB, free: 28.19 MB / 0.6823 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 (162): * Single equations (assignments): 155 * Array equations: 0 * Algorithm blocks: 5 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(10,45.0%) 52} * Non-linear torn systems: 1 {9 63} Notification: Performance of prepare postOptimizeDAE: time 0.002669/1.694, allocations: 0.7028 MB / 1.152 GB, free: 27.48 MB / 0.6823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00112/1.695, allocations: 336 kB / 1.153 GB, free: 27.14 MB / 0.6823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001126/1.696, allocations: 380.1 kB / 1.153 GB, free: 26.77 MB / 0.6823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.209e-05/1.696, allocations: 24 kB / 1.153 GB, free: 26.74 MB / 0.6823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.396e-05/1.696, allocations: 12 kB / 1.153 GB, free: 26.73 MB / 0.6823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.74e-05/1.696, allocations: 15.91 kB / 1.153 GB, free: 26.71 MB / 0.6823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008027/1.704, allocations: 3.628 MB / 1.156 GB, free: 23.09 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.067e-05/1.704, allocations: 3.938 kB / 1.156 GB, free: 23.08 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004748/1.709, allocations: 0.4955 MB / 1.157 GB, free: 22.59 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01664/1.726, allocations: 2.868 MB / 1.16 GB, free: 19.71 MB / 0.6823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006413/1.726, allocations: 55.91 kB / 1.16 GB, free: 19.66 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.06213/1.788, allocations: 17.11 MB / 1.177 GB, free: 2.285 MB / 0.6823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.695e-06/1.788, allocations: 0 / 1.177 GB, free: 2.285 MB / 0.6823 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03401/1.822, allocations: 6.522 MB / 1.183 GB, free: 11.73 MB / 0.698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002861/1.825, allocations: 0.7039 MB / 1.184 GB, free: 11.01 MB / 0.698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001225/1.827, allocations: 51.95 kB / 1.184 GB, free: 10.96 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007051/1.834, allocations: 407.6 kB / 1.184 GB, free: 10.56 MB / 0.698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002125/1.836, allocations: 373.4 kB / 1.184 GB, free: 10.2 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005645/1.837, allocations: 67.97 kB / 1.184 GB, free: 10.13 MB / 0.698 GB Notification: Performance of sorting global known variables: time 0.003832/1.84, allocations: 1.513 MB / 1.186 GB, free: 8.621 MB / 0.698 GB Notification: Performance of sort global known variables: time 5.61e-07/1.84, allocations: 0 / 1.186 GB, free: 8.621 MB / 0.698 GB Notification: Performance of remove unused functions: time 0.00503/1.845, allocations: 1.043 MB / 1.187 GB, free: 7.578 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 (118): * Single equations (assignments): 106 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 10 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(10,60.0%) 52} * Non-linear torn systems: 1 {10 62} Notification: Performance of Backend phase and start with SimCode phase: time 0.03656/1.882, allocations: 7.151 MB / 1.194 GB, free: 384 kB / 0.698 GB Notification: Performance of simCode: created initialization part: time 0.04503/1.927, allocations: 6.821 MB / 1.201 GB, free: 9.461 MB / 0.7136 GB Notification: Performance of simCode: created event and clocks part: time 1.172e-05/1.927, allocations: 4 kB / 1.201 GB, free: 9.457 MB / 0.7136 GB Notification: Performance of simCode: created simulation system equations: time 0.03331/1.961, allocations: 4.227 MB / 1.205 GB, free: 5.203 MB / 0.7136 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009756/1.97, allocations: 1.051 MB / 1.206 GB, free: 4.172 MB / 0.7136 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1056/2.076, allocations: 27.16 MB / 1.232 GB, free: 7.543 MB / 0.7448 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003672/2.08, allocations: 2.227 MB / 1.234 GB, free: 5.281 MB / 0.7448 GB Notification: Performance of simCode: alias equations: time 0.004139/2.084, allocations: 0.5138 MB / 1.235 GB, free: 4.762 MB / 0.7448 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003519/2.087, allocations: 1.327 MB / 1.236 GB, free: 3.434 MB / 0.7448 GB Notification: Performance of SimCode: time 1.923e-06/2.088, allocations: 3.938 kB / 1.236 GB, free: 3.43 MB / 0.7448 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2857/2.373, allocations: 96.53 MB / 1.331 GB, free: 3.785 MB / 0.8386 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003527/2.374, allocations: 231.5 kB / 1.331 GB, free: 3.543 MB / 0.8386 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.308/9.681, allocations: 3.75 kB / 1.331 GB, free: 3.543 MB / 0.8386 GB (rm -f Buildings_8.0.0_Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized.pipe ; mkfifo Buildings_8.0.0_Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized.pipe ; head -c 1048576 < Buildings_8.0.0_Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized.pipe >> ../files/Buildings_8.0.0_Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_0_0_Buildings_Electrical_DC_Lines_Examples_DCLinesLinearized_fmu --startTime=0 --stopTime=4000 --timeout=50 --tolerance=1e-06 Buildings_8_0_0_Buildings_Electrical_DC_Lines_Examples_DCLinesLinearized.fmu > Buildings_8.0.0_Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized.pipe 2>&1)