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.0009537/0.0009537, allocations: 98.03 kB / 15.36 MB, free: 0.7344 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.008022/0.008022, allocations: 168.9 kB / 16.26 MB, free: 6.656 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.302/1.302, allocations: 223.3 MB / 240.3 MB, free: 5.348 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.451/2.451, allocations: 437.8 MB / 0.7121 GB, free: 6.977 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.000338/0.000338, allocations: 12 kB / 0.8729 GB, free: 3.234 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6074/0.6078, allocations: 153.8 MB / 1.023 GB, free: 15.89 MB / 0.7794 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized): time 0.02177/0.6296, allocations: 21.7 MB / 1.044 GB, free: 10.11 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.02344/0.6531, allocations: 17.37 MB / 1.061 GB, free: 8.691 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003023/0.6561, allocations: 99.38 kB / 1.061 GB, free: 8.594 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.002376/0.6585, allocations: 0.5931 MB / 1.062 GB, free: 7.996 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.009724/0.6683, allocations: 3.191 MB / 1.065 GB, free: 4.801 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.003358/0.6716, allocations: 1.189 MB / 1.066 GB, free: 3.617 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.008821/0.6805, allocations: 7.052 MB / 1.073 GB, free: 12.54 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.004604/0.6851, allocations: 2.558 MB / 1.076 GB, free: 9.891 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003707/0.6888, allocations: 2.046 MB / 1.078 GB, free: 7.836 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.004032/0.6929, allocations: 2.288 MB / 1.08 GB, free: 5.539 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 0.0009839/0.6939, allocations: 176 kB / 1.08 GB, free: 5.367 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002672/0.6966, allocations: 1.049 MB / 1.081 GB, free: 4.316 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 0.001483/0.6981, allocations: 0.9807 MB / 1.082 GB, free: 3.332 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.003182/0.7013, allocations: 1.777 MB / 1.084 GB, free: 1.539 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.006048/0.7073, allocations: 4.939 MB / 1.089 GB, free: 12.58 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 4.889e-06/0.7074, allocations: 0 / 1.089 GB, free: 12.58 MB / 0.8419 GB Notification: Performance of FrontEnd: time 1.703e-06/0.7074, allocations: 4 kB / 1.089 GB, free: 12.58 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 0.0001828/0.7076, allocations: 0 / 1.089 GB, free: 12.58 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.009656/0.7172, allocations: 4.064 MB / 1.093 GB, free: 8.402 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 4.26e-05/0.7173, allocations: 8.031 kB / 1.093 GB, free: 8.395 MB / 0.8419 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0009922/0.7183, allocations: 366.3 kB / 1.093 GB, free: 8.027 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01648/0.7348, allocations: 3.367 MB / 1.096 GB, free: 4.652 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004404/0.7392, allocations: 2.084 MB / 1.098 GB, free: 2.5 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004215/0.7396, allocations: 470 kB / 1.099 GB, free: 1.977 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009091/0.7406, allocations: 240 kB / 1.099 GB, free: 1.742 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0122/0.7528, allocations: 4.869 MB / 1.104 GB, free: 12.73 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.113e-05/0.7529, allocations: 0 / 1.104 GB, free: 12.73 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005789/0.7534, allocations: 108 kB / 1.104 GB, free: 12.62 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000203/0.7537, allocations: 176.8 kB / 1.104 GB, free: 12.45 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01413/0.7678, allocations: 5.315 MB / 1.109 GB, free: 7.113 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02359/0.7914, allocations: 14.58 MB / 1.123 GB, free: 7.359 MB / 0.8731 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01019/0.8017, allocations: 3.688 MB / 1.127 GB, free: 3.66 MB / 0.8731 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003854/0.8055, allocations: 1.592 MB / 1.129 GB, free: 2.07 MB / 0.8731 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001397/0.8057, allocations: 25.3 kB / 1.129 GB, free: 2.047 MB / 0.8731 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004507/0.8102, allocations: 1.919 MB / 1.13 GB, free: 60 kB / 0.8731 GB Notification: Performance of pre-optimization done (n=163): time 4.288e-06/0.8102, allocations: 0 / 1.13 GB, free: 60 kB / 0.8731 GB Notification: Performance of matching and sorting (n=250): time 0.1352/0.9454, allocations: 34.15 MB / 1.164 GB, free: 13.68 MB / 0.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002936/0.9457, allocations: 0.4928 MB / 1.164 GB, free: 13.07 MB / 0.92 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003871/0.9496, allocations: 2.296 MB / 1.166 GB, free: 10.76 MB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 0.0004292/0.9501, allocations: 69.7 kB / 1.167 GB, free: 10.69 MB / 0.92 GB Notification: Performance of collectInitialEqns (initialization): time 0.001263/0.9513, allocations: 1.438 MB / 1.168 GB, free: 9.234 MB / 0.92 GB Notification: Performance of collectInitialBindings (initialization): time 0.001001/0.9524, allocations: 0.8202 MB / 1.169 GB, free: 8.402 MB / 0.92 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004796/0.9528, allocations: 182.4 kB / 1.169 GB, free: 8.219 MB / 0.92 GB Notification: Performance of setup shared object (initialization): time 9.794e-05/0.953, allocations: 309.1 kB / 1.169 GB, free: 7.914 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006031/0.959, allocations: 2.116 MB / 1.171 GB, free: 5.793 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005884/0.9649, allocations: 2.423 MB / 1.174 GB, free: 3.285 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01132/0.9762, allocations: 4.533 MB / 1.178 GB, free: 14.62 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.518e-06/0.9763, allocations: 4 kB / 1.178 GB, free: 14.61 MB / 0.9356 GB Notification: Performance of matching and sorting (n=299) (initialization): time 0.01991/0.9962, allocations: 6.914 MB / 1.185 GB, free: 7.609 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001039/0.9963, allocations: 148.5 kB / 1.185 GB, free: 7.434 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.737e-05/0.9963, allocations: 4 kB / 1.185 GB, free: 7.43 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01019/1.007, allocations: 2.926 MB / 1.188 GB, free: 4.496 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003068/1.01, allocations: 0.5695 MB / 1.188 GB, free: 3.926 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03779/1.047, allocations: 17.38 MB / 1.205 GB, free: 2.309 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004277/1.052, allocations: 419.6 kB / 1.206 GB, free: 1.898 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004062/1.052, allocations: 87.97 kB / 1.206 GB, free: 1.812 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.001731/1.054, allocations: 0.7045 MB / 1.207 GB, free: 1.098 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007299/1.055, allocations: 336 kB / 1.207 GB, free: 0.7656 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009345/1.056, allocations: 384.1 kB / 1.207 GB, free: 392 kB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.902e-05/1.056, allocations: 24 kB / 1.207 GB, free: 368 kB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.734e-05/1.056, allocations: 8 kB / 1.207 GB, free: 360 kB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.818e-05/1.056, allocations: 15.95 kB / 1.207 GB, free: 344 kB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005021/1.061, allocations: 3.62 MB / 1.211 GB, free: 12.66 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.865e-05/1.061, allocations: 0 / 1.211 GB, free: 12.66 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002553/1.063, allocations: 0.5034 MB / 1.211 GB, free: 12.16 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.009599/1.073, allocations: 2.865 MB / 1.214 GB, free: 9.281 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002697/1.073, allocations: 59.84 kB / 1.214 GB, free: 9.223 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03724/1.11, allocations: 17.15 MB / 1.231 GB, free: 7.797 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.375e-06/1.111, allocations: 0 / 1.231 GB, free: 7.797 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01877/1.129, allocations: 6.552 MB / 1.237 GB, free: 1.203 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001471/1.131, allocations: 0.7 MB / 1.238 GB, free: 492 kB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007072/1.132, allocations: 47.94 kB / 1.238 GB, free: 444 kB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003551/1.135, allocations: 419.5 kB / 1.238 GB, free: 24 kB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001139/1.136, allocations: 350.6 kB / 1.239 GB, free: 15.68 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002167/1.136, allocations: 67.97 kB / 1.239 GB, free: 15.62 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.002519/1.139, allocations: 1.536 MB / 1.24 GB, free: 14.08 MB / 0.9981 GB Notification: Performance of sort global known variables: time 1.51e-07/1.139, allocations: 4 kB / 1.24 GB, free: 14.08 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.00286/1.142, allocations: 1.047 MB / 1.241 GB, free: 13.03 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.01886/1.161, allocations: 7.177 MB / 1.248 GB, free: 5.809 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.4455/1.606, allocations: 6.827 MB / 1.255 GB, free: 215.5 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 7.404e-06/1.606, allocations: 3.688 kB / 1.255 GB, free: 215.5 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.01756/1.624, allocations: 4.231 MB / 1.259 GB, free: 215.1 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006018/1.63, allocations: 1.052 MB / 1.26 GB, free: 215.1 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07886/1.709, allocations: 39.12 MB / 1.298 GB, free: 196.4 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00194/1.711, allocations: 2.235 MB / 1.301 GB, free: 195.4 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.002527/1.713, allocations: 0.5067 MB / 1.301 GB, free: 195.3 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001529/1.715, allocations: 1.329 MB / 1.302 GB, free: 194 MB / 0.9981 GB Notification: Performance of SimCode: time 9.91e-07/1.715, allocations: 0 / 1.302 GB, free: 194 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1772/1.892, allocations: 98.21 MB / 1.398 GB, free: 96.88 MB / 0.9981 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002278/1.892, allocations: 241.7 kB / 1.399 GB, free: 96.63 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.298/6.19, allocations: 0 / 1.399 GB, free: 96.63 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)