Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Electrical.DC.Lines.Examples.DCLines.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.0.0-master/package.mo", uses=false) Using package Buildings with version 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.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.DCLines,fileNamePrefix="Buildings_latest_Buildings_Electrical_DC_Lines_Examples_DCLines",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.DC.Lines.Examples.DCLines,fileNamePrefix="Buildings_latest_Buildings_Electrical_DC_Lines_Examples_DCLines",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.00164/0.00164, allocations: 101.5 kB / 15.06 MB, free: 1.094 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.00233/0.00233, allocations: 177.3 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.667/2.667, allocations: 223.2 MB / 239.9 MB, free: 5.477 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 4.45/4.45, allocations: 409.2 MB / 0.6838 GB, free: 0.9648 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.0005902/0.0005906, allocations: 8 kB / 0.8375 GB, free: 6.586 MB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.373/1.374, allocations: 146.8 MB / 0.9809 GB, free: 6.355 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Lines.Examples.DCLines): time 0.04073/1.415, allocations: 19.15 MB / 0.9996 GB, free: 3.148 MB / 0.7481 GB Notification: Performance of NFInst.instExpressions: time 0.03818/1.453, allocations: 16.05 MB / 1.015 GB, free: 3.055 MB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.005711/1.459, allocations: 91.44 kB / 1.015 GB, free: 2.965 MB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 0.003898/1.463, allocations: 0.547 MB / 1.016 GB, free: 2.414 MB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 0.01743/1.48, allocations: 2.817 MB / 1.019 GB, free: 15.6 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.006495/1.487, allocations: 0.9406 MB / 1.02 GB, free: 14.66 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.01434/1.501, allocations: 3.324 MB / 1.023 GB, free: 11.34 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.006797/1.508, allocations: 2.032 MB / 1.025 GB, free: 9.242 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.007876/1.516, allocations: 1.705 MB / 1.026 GB, free: 7.531 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.007372/1.523, allocations: 1.751 MB / 1.028 GB, free: 5.773 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 0.001863/1.525, allocations: 167.9 kB / 1.028 GB, free: 5.609 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003759/1.529, allocations: 487.4 kB / 1.029 GB, free: 5.133 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 0.002036/1.531, allocations: 0.8449 MB / 1.03 GB, free: 4.285 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 0.002692/1.534, allocations: 0.6912 MB / 1.03 GB, free: 3.586 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.01047/1.544, allocations: 3.785 MB / 1.034 GB, free: 15.79 MB / 0.795 GB Notification: Performance of FrontEnd - DAE generated: time 8.195e-06/1.544, allocations: 0 / 1.034 GB, free: 15.79 MB / 0.795 GB Notification: Performance of FrontEnd: time 5.711e-06/1.545, allocations: 0 / 1.034 GB, free: 15.79 MB / 0.795 GB Notification: Performance of Transformations before backend: time 0.0003554/1.545, allocations: 0 / 1.034 GB, free: 15.79 MB / 0.795 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.01649/1.561, allocations: 3.873 MB / 1.038 GB, free: 11.81 MB / 0.795 GB Notification: Performance of prepare preOptimizeDAE: time 9.233e-05/1.561, allocations: 12.03 kB / 1.038 GB, free: 11.8 MB / 0.795 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00174/1.563, allocations: 354.1 kB / 1.038 GB, free: 11.44 MB / 0.795 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02498/1.588, allocations: 3.401 MB / 1.041 GB, free: 8.031 MB / 0.795 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008356/1.597, allocations: 1.952 MB / 1.043 GB, free: 6.012 MB / 0.795 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003565/1.597, allocations: 184.6 kB / 1.044 GB, free: 5.828 MB / 0.795 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001402/1.599, allocations: 236 kB / 1.044 GB, free: 5.598 MB / 0.795 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01861/1.617, allocations: 4.697 MB / 1.048 GB, free: 0.7539 MB / 0.795 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.984e-05/1.617, allocations: 11.88 kB / 1.048 GB, free: 0.7422 MB / 0.795 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005375/1.618, allocations: 104 kB / 1.048 GB, free: 0.6406 MB / 0.795 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003479/1.618, allocations: 172.8 kB / 1.049 GB, free: 480 kB / 0.795 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02197/1.64, allocations: 5.222 MB / 1.054 GB, free: 11.23 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03777/1.678, allocations: 14.12 MB / 1.067 GB, free: 11.94 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01621/1.694, allocations: 3.843 MB / 1.071 GB, free: 8.086 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002326/1.695, allocations: 33.27 kB / 1.071 GB, free: 8.055 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00732/1.702, allocations: 1.816 MB / 1.073 GB, free: 6.176 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=163): time 7.003e-06/1.702, allocations: 0 / 1.073 GB, free: 6.176 MB / 0.8262 GB Notification: Performance of matching and sorting (n=250): time 0.2279/1.93, allocations: 33.39 MB / 1.106 GB, free: 4.57 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0004518/1.93, allocations: 0.4967 MB / 1.106 GB, free: 3.961 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006039/1.937, allocations: 2.269 MB / 1.108 GB, free: 1.68 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 0.0008269/1.937, allocations: 77.7 kB / 1.108 GB, free: 1.598 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 0.002276/1.94, allocations: 1.426 MB / 1.11 GB, free: 160 kB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 0.001942/1.942, allocations: 0.8242 MB / 1.111 GB, free: 15.32 MB / 0.8731 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003468/1.942, allocations: 48 kB / 1.111 GB, free: 15.27 MB / 0.8731 GB Notification: Performance of setup shared object (initialization): time 0.0003837/1.942, allocations: 398.7 kB / 1.111 GB, free: 14.88 MB / 0.8731 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.009424/1.952, allocations: 1.921 MB / 1.113 GB, free: 12.95 MB / 0.8731 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01026/1.962, allocations: 2.208 MB / 1.115 GB, free: 10.66 MB / 0.8731 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009717/1.972, allocations: 2.132 MB / 1.117 GB, free: 8.473 MB / 0.8731 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.576e-05/1.972, allocations: 7.984 kB / 1.117 GB, free: 8.465 MB / 0.8731 GB Notification: Performance of matching and sorting (n=299) (initialization): time 0.03018/2.002, allocations: 6.165 MB / 1.123 GB, free: 2.211 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 0.002416/2.005, allocations: 2.446 MB / 1.126 GB, free: 15.49 MB / 0.8887 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.127e-05/2.005, allocations: 15.94 kB / 1.126 GB, free: 15.48 MB / 0.8887 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01236/2.017, allocations: 1.848 MB / 1.127 GB, free: 13.62 MB / 0.8887 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005648/2.023, allocations: 0.589 MB / 1.128 GB, free: 13.04 MB / 0.8887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04295/2.066, allocations: 14.82 MB / 1.142 GB, free: 13.99 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006995/2.073, allocations: 407.6 kB / 1.143 GB, free: 13.59 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007885/2.074, allocations: 91.97 kB / 1.143 GB, free: 13.5 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 2.405e-05/2.074, allocations: 4 kB / 1.143 GB, free: 13.5 MB / 0.9044 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.02903/2.103, allocations: 5.749 MB / 1.149 GB, free: 7.664 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.724e-05/2.103, allocations: 8 kB / 1.149 GB, free: 7.656 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.009769/2.113, allocations: 1.825 MB / 1.15 GB, free: 5.824 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005842/2.119, allocations: 0.6086 MB / 1.151 GB, free: 5.215 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.042/2.161, allocations: 14.06 MB / 1.165 GB, free: 6.883 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006982/2.168, allocations: 399.6 kB / 1.165 GB, free: 6.492 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008597/2.169, allocations: 95.97 kB / 1.165 GB, free: 6.398 MB / 0.92 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 (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 {10 52} Notification: Performance of prepare postOptimizeDAE: time 0.003016/2.172, allocations: 0.7722 MB / 1.166 GB, free: 5.613 MB / 0.92 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001309/2.173, allocations: 336 kB / 1.166 GB, free: 5.281 MB / 0.92 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001332/2.175, allocations: 396.1 kB / 1.167 GB, free: 4.887 MB / 0.92 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.949e-05/2.175, allocations: 24 kB / 1.167 GB, free: 4.863 MB / 0.92 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.175e-05/2.175, allocations: 12 kB / 1.167 GB, free: 4.852 MB / 0.92 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.595e-05/2.175, allocations: 15.95 kB / 1.167 GB, free: 4.836 MB / 0.92 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007778/2.183, allocations: 3.169 MB / 1.17 GB, free: 1.613 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.441e-05/2.183, allocations: 0 / 1.17 GB, free: 1.613 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004652/2.187, allocations: 0.5189 MB / 1.17 GB, free: 1.094 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01151/2.199, allocations: 1.707 MB / 1.172 GB, free: 15.38 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008023/2.2, allocations: 51.97 kB / 1.172 GB, free: 15.32 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04297/2.243, allocations: 14.61 MB / 1.186 GB, free: 456 kB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.049e-06/2.243, allocations: 0 / 1.186 GB, free: 456 kB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02936/2.272, allocations: 5.783 MB / 1.192 GB, free: 10.62 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003484/2.276, allocations: 0.6648 MB / 1.192 GB, free: 9.934 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001512/2.277, allocations: 48 kB / 1.193 GB, free: 9.887 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006371/2.284, allocations: 399.6 kB / 1.193 GB, free: 9.496 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001933/2.286, allocations: 307.2 kB / 1.193 GB, free: 9.199 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005309/2.286, allocations: 67.97 kB / 1.193 GB, free: 9.133 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 0.005611/2.292, allocations: 1.509 MB / 1.195 GB, free: 7.625 MB / 0.9512 GB Notification: Performance of sort global known variables: time 1.252e-06/2.292, allocations: 0 / 1.195 GB, free: 7.625 MB / 0.9512 GB Notification: Performance of remove unused functions: time 0.01123/2.303, allocations: 1.625 MB / 1.196 GB, free: 6 MB / 0.9512 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 (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 52} Notification: Performance of Backend phase and start with SimCode phase: time 0.02981/2.333, allocations: 6.412 MB / 1.203 GB, free: 15.54 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.0464/2.38, allocations: 10.07 MB / 1.212 GB, free: 5.281 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 2.177e-05/2.38, allocations: 4.25 kB / 1.212 GB, free: 5.277 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 0.01693/2.397, allocations: 3.495 MB / 1.216 GB, free: 1.758 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009247/2.406, allocations: 1.002 MB / 1.217 GB, free: 0.7656 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.109/2.515, allocations: 29.36 MB / 1.246 GB, free: 1.91 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 1.069/3.584, allocations: 2.363 MB / 1.248 GB, free: 247.3 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.009573/3.594, allocations: 0.6339 MB / 1.248 GB, free: 247.3 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005344/3.599, allocations: 1.333 MB / 1.25 GB, free: 247.3 MB / 0.9981 GB Notification: Performance of SimCode: time 1.964e-06/3.599, allocations: 0 / 1.25 GB, free: 247.3 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.8184/4.417, allocations: 100.4 MB / 1.348 GB, free: 171.2 MB / 0.9981 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002679/4.418, allocations: 205.2 kB / 1.348 GB, free: 171 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.641/14.06, allocations: 0 / 1.348 GB, free: 171 MB / 0.9981 GB (rm -f Buildings_latest_Buildings.Electrical.DC.Lines.Examples.DCLines.pipe ; mkfifo Buildings_latest_Buildings.Electrical.DC.Lines.Examples.DCLines.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.DC.Lines.Examples.DCLines.pipe >> ../files/Buildings_latest_Buildings.Electrical.DC.Lines.Examples.DCLines.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Electrical.DC.Lines.Examples.DCLines_res.mat --tempDir=temp_Buildings_latest_Buildings_Electrical_DC_Lines_Examples_DCLines_fmu --startTime=0 --stopTime=4000 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Electrical_DC_Lines_Examples_DCLines.fmu > Buildings_latest_Buildings.Electrical.DC.Lines.Examples.DCLines.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result Buildings_latest_Buildings.Electrical.DC.Lines.Examples.DCLines_res.mat does not exist to compare? outputFormat=mat