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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-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.005088/0.005088, allocations: 100.8 kB / 15.73 MB, free: 6.055 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.001411/0.001411, allocations: 192.8 kB / 16.67 MB, free: 5.969 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.316/1.316, allocations: 222.9 MB / 240.4 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.573/2.573, allocations: 482.6 MB / 0.755 GB, free: 6.633 MB / 0.6231 GB Notification: Performance of FrontEnd - loaded program: time 0.001714/0.001714, allocations: 68.33 kB / 1.083 GB, free: 13.92 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2649/0.2666, allocations: 162.3 MB / 1.242 GB, free: 8.965 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized): time 0.02347/0.2901, allocations: 22.62 MB / 1.264 GB, free: 2.262 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.02308/0.3133, allocations: 17.64 MB / 1.281 GB, free: 0.5664 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002263/0.3156, allocations: 107.4 kB / 1.281 GB, free: 472 kB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 0.009231/0.3248, allocations: 4.173 MB / 1.285 GB, free: 12.28 MB / 1.014 GB Notification: Performance of NFTyping.typeBindings: time 0.008801/0.3337, allocations: 3.515 MB / 1.289 GB, free: 8.758 MB / 1.014 GB Notification: Performance of NFTyping.typeClassSections: time 0.002858/0.3365, allocations: 1.31 MB / 1.29 GB, free: 7.449 MB / 1.014 GB Notification: Performance of NFFlatten.flatten: time 0.007079/0.3436, allocations: 5.775 MB / 1.296 GB, free: 1.66 MB / 1.014 GB Notification: Performance of NFFlatten.resolveConnections: time 0.004634/0.3483, allocations: 3.588 MB / 1.299 GB, free: 14 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003448/0.3517, allocations: 2.41 MB / 1.302 GB, free: 11.58 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 0.003358/0.3551, allocations: 2.444 MB / 1.304 GB, free: 9.129 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 0.0005437/0.3556, allocations: 371.9 kB / 1.304 GB, free: 8.766 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001833/0.3575, allocations: 1.041 MB / 1.305 GB, free: 7.723 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 0.001016/0.3585, allocations: 1.188 MB / 1.306 GB, free: 6.531 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 0.001959/0.3605, allocations: 2.002 MB / 1.308 GB, free: 4.52 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.005252/0.3657, allocations: 5.187 MB / 1.314 GB, free: 15.31 MB / 1.045 GB Notification: Performance of FrontEnd - DAE generated: time 3.677e-06/0.3657, allocations: 0 / 1.314 GB, free: 15.31 MB / 1.045 GB Notification: Performance of FrontEnd: time 1.693e-06/0.3658, allocations: 0 / 1.314 GB, free: 15.31 MB / 1.045 GB Notification: Performance of Transformations before backend: time 4.788e-05/0.3658, allocations: 0 / 1.314 GB, free: 15.31 MB / 1.045 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.008439/0.3743, allocations: 4.718 MB / 1.318 GB, free: 10.48 MB / 1.045 GB Notification: Performance of prepare preOptimizeDAE: time 3.524e-05/0.3743, allocations: 8.031 kB / 1.318 GB, free: 10.47 MB / 1.045 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000431/0.3747, allocations: 366.3 kB / 1.318 GB, free: 10.1 MB / 1.045 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01475/0.3895, allocations: 3.287 MB / 1.322 GB, free: 6.809 MB / 1.045 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00382/0.3933, allocations: 2.262 MB / 1.324 GB, free: 4.48 MB / 1.045 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003696/0.3937, allocations: 466 kB / 1.324 GB, free: 3.961 MB / 1.045 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003771/0.3941, allocations: 232 kB / 1.325 GB, free: 3.734 MB / 1.045 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00962/0.4037, allocations: 4.814 MB / 1.329 GB, free: 14.77 MB / 1.061 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.824e-05/0.4038, allocations: 0 / 1.329 GB, free: 14.77 MB / 1.061 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002845/0.4041, allocations: 99.98 kB / 1.329 GB, free: 14.68 MB / 1.061 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001835/0.4043, allocations: 176.8 kB / 1.33 GB, free: 14.5 MB / 1.061 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01255/0.4168, allocations: 5.194 MB / 1.335 GB, free: 9.289 MB / 1.061 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01895/0.4358, allocations: 14.42 MB / 1.349 GB, free: 9.703 MB / 1.076 GB Notification: Performance of preOpt comSubExp (simulation): time 0.009275/0.4451, allocations: 3.395 MB / 1.352 GB, free: 6.297 MB / 1.076 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0035/0.4486, allocations: 1.471 MB / 1.353 GB, free: 4.82 MB / 1.076 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001183/0.4488, allocations: 21.3 kB / 1.353 GB, free: 4.797 MB / 1.076 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003992/0.4528, allocations: 1.794 MB / 1.355 GB, free: 2.938 MB / 1.076 GB Notification: Performance of pre-optimization done (n=163): time 3.136e-06/0.4528, allocations: 0 / 1.355 GB, free: 2.938 MB / 1.076 GB Notification: Performance of matching and sorting (n=250): time 0.1211/0.5739, allocations: 28.3 MB / 1.383 GB, free: 6.422 MB / 1.107 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002616/0.5742, allocations: 0.4928 MB / 1.383 GB, free: 5.82 MB / 1.107 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002952/0.5771, allocations: 2.3 MB / 1.386 GB, free: 3.508 MB / 1.107 GB Notification: Performance of collectPreVariables (initialization): time 0.0002035/0.5773, allocations: 77.7 kB / 1.386 GB, free: 3.426 MB / 1.107 GB Notification: Performance of collectInitialEqns (initialization): time 0.001187/0.5785, allocations: 1.452 MB / 1.387 GB, free: 1.961 MB / 1.107 GB Notification: Performance of collectInitialBindings (initialization): time 0.0007484/0.5793, allocations: 0.8637 MB / 1.388 GB, free: 1.09 MB / 1.107 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008141/0.5801, allocations: 416.5 kB / 1.388 GB, free: 0.6758 MB / 1.107 GB Notification: Performance of setup shared object (initialization): time 0.0001104/0.5802, allocations: 301.1 kB / 1.389 GB, free: 388 kB / 1.107 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005072/0.5853, allocations: 1.925 MB / 1.39 GB, free: 14.45 MB / 1.123 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005338/0.5907, allocations: 2.235 MB / 1.393 GB, free: 12.13 MB / 1.123 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01029/0.601, allocations: 4.158 MB / 1.397 GB, free: 7.836 MB / 1.123 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.12e-06/0.601, allocations: 0 / 1.397 GB, free: 7.836 MB / 1.123 GB Notification: Performance of matching and sorting (n=299) (initialization): time 0.01786/0.6188, allocations: 6.561 MB / 1.403 GB, free: 1.184 MB / 1.123 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001024/0.619, allocations: 146.4 kB / 1.403 GB, free: 1.012 MB / 1.123 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.002e-05/0.619, allocations: 8 kB / 1.403 GB, free: 1.004 MB / 1.123 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00929/0.6283, allocations: 2.918 MB / 1.406 GB, free: 14.08 MB / 1.139 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002498/0.6308, allocations: 495.2 kB / 1.407 GB, free: 13.59 MB / 1.139 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03747/0.6683, allocations: 18.87 MB / 1.425 GB, free: 10.47 MB / 1.154 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003592/0.6719, allocations: 319.6 kB / 1.425 GB, free: 10.16 MB / 1.154 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002219/0.6721, allocations: 84.17 kB / 1.425 GB, free: 10.08 MB / 1.154 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.001253/0.6734, allocations: 0.7065 MB / 1.426 GB, free: 9.359 MB / 1.154 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004521/0.6738, allocations: 357.8 kB / 1.426 GB, free: 9.008 MB / 1.154 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006574/0.6745, allocations: 380.1 kB / 1.427 GB, free: 8.629 MB / 1.154 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.662e-05/0.6745, allocations: 24 kB / 1.427 GB, free: 8.605 MB / 1.154 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.301e-05/0.6746, allocations: 16 kB / 1.427 GB, free: 8.59 MB / 1.154 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.709e-05/0.6746, allocations: 11.95 kB / 1.427 GB, free: 8.578 MB / 1.154 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00404/0.6786, allocations: 3.628 MB / 1.43 GB, free: 4.895 MB / 1.154 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.881e-06/0.6786, allocations: 0 / 1.43 GB, free: 4.895 MB / 1.154 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002261/0.6809, allocations: 419.3 kB / 1.431 GB, free: 4.484 MB / 1.154 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.008787/0.6897, allocations: 2.865 MB / 1.434 GB, free: 1.609 MB / 1.154 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001874/0.6899, allocations: 55.91 kB / 1.434 GB, free: 1.555 MB / 1.154 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03633/0.7262, allocations: 18.64 MB / 1.452 GB, free: 14.61 MB / 1.186 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.423e-06/0.7263, allocations: 4.094 kB / 1.452 GB, free: 14.61 MB / 1.186 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01649/0.7427, allocations: 6.19 MB / 1.458 GB, free: 8.383 MB / 1.186 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001116/0.7439, allocations: 0.7134 MB / 1.459 GB, free: 7.648 MB / 1.186 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004094/0.7443, allocations: 47.94 kB / 1.459 GB, free: 7.602 MB / 1.186 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002802/0.7471, allocations: 311.6 kB / 1.459 GB, free: 7.297 MB / 1.186 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009488/0.7481, allocations: 358.7 kB / 1.459 GB, free: 6.945 MB / 1.186 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001965/0.7483, allocations: 71.97 kB / 1.459 GB, free: 6.875 MB / 1.186 GB Notification: Performance of sorting global known variables: time 0.00185/0.7501, allocations: 1.532 MB / 1.461 GB, free: 5.344 MB / 1.186 GB Notification: Performance of sort global known variables: time 2.01e-07/0.7501, allocations: 0 / 1.461 GB, free: 5.344 MB / 1.186 GB Notification: Performance of remove unused functions: time 0.002001/0.7521, allocations: 1.043 MB / 1.462 GB, free: 4.301 MB / 1.186 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.01692/0.7691, allocations: 6.82 MB / 1.469 GB, free: 13.45 MB / 1.201 GB Notification: Performance of simCode: created initialization part: time 0.0213/0.7904, allocations: 6.484 MB / 1.475 GB, free: 6.863 MB / 1.201 GB Notification: Performance of simCode: created event and clocks part: time 3.045e-06/0.7904, allocations: 0 / 1.475 GB, free: 6.863 MB / 1.201 GB Notification: Performance of simCode: created simulation system equations: time 0.01559/0.806, allocations: 4.076 MB / 1.479 GB, free: 2.762 MB / 1.201 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003431/0.8094, allocations: 1.136 MB / 1.48 GB, free: 1.668 MB / 1.201 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06282/0.8723, allocations: 31.97 MB / 1.511 GB, free: 1.227 MB / 1.232 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001845/0.8741, allocations: 2.227 MB / 1.513 GB, free: 14.96 MB / 1.248 GB Notification: Performance of simCode: alias equations: time 0.001697/0.8758, allocations: 0.5099 MB / 1.514 GB, free: 14.45 MB / 1.248 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001642/0.8775, allocations: 1.335 MB / 1.515 GB, free: 13.11 MB / 1.248 GB Notification: Performance of SimCode: time 4.01e-07/0.8775, allocations: 0 / 1.515 GB, free: 13.11 MB / 1.248 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 6.803/7.681, allocations: 102.7 MB / 1.615 GB, free: 242.8 MB / 1.264 GB Notification: Performance of buildModelFMU: Generate platform static: time 27.73/35.41, allocations: 22 kB / 1.615 GB, free: 242.7 MB / 1.264 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=400 --tolerance=1e-06 Buildings_latest_Buildings_Electrical_DC_Lines_Examples_DCLinesLinearized.fmu > Buildings_latest_Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized.pipe 2>&1)