Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_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 9.1.1-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.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_9_Buildings_Electrical_DC_Lines_Examples_DCLinesLinearized",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized,fileNamePrefix="Buildings_9_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.001191/0.00119, allocations: 99.7 kB / 15.05 MB, free: 1.105 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.001494/0.001494, allocations: 177.3 kB / 15.95 MB, free: 216 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.48/1.48, allocations: 223.2 MB / 239.9 MB, free: 5.367 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.498/2.498, allocations: 390.3 MB / 0.6653 GB, free: 2.977 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003306/0.0003307, allocations: 12 kB / 0.8146 GB, free: 14.23 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6874/0.6878, allocations: 142.3 MB / 0.9536 GB, free: 8.148 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized): time 0.01961/0.7074, allocations: 19.17 MB / 0.9723 GB, free: 9.695 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.0247/0.7322, allocations: 16.07 MB / 0.988 GB, free: 12.86 MB / 0.7481 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.004351/0.7366, allocations: 91.44 kB / 0.9881 GB, free: 12.77 MB / 0.7481 GB Notification: Performance of NFTyping.typeComponents: time 0.004282/0.7409, allocations: 0.5509 MB / 0.9886 GB, free: 12.22 MB / 0.7481 GB Notification: Performance of NFTyping.typeBindings: time 0.01518/0.7561, allocations: 2.817 MB / 0.9914 GB, free: 9.406 MB / 0.7481 GB Notification: Performance of NFTyping.typeClassSections: time 0.004127/0.7603, allocations: 0.9403 MB / 0.9923 GB, free: 8.469 MB / 0.7481 GB Notification: Performance of NFFlatten.flatten: time 0.008324/0.7686, allocations: 3.419 MB / 0.9956 GB, free: 5.047 MB / 0.7481 GB Notification: Performance of NFFlatten.resolveConnections: time 0.003804/0.7725, allocations: 2.063 MB / 0.9977 GB, free: 2.918 MB / 0.7481 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004234/0.7767, allocations: 1.818 MB / 0.9994 GB, free: 1.094 MB / 0.7481 GB Notification: Performance of NFSimplifyModel.simplify: time 0.004189/0.7809, allocations: 1.79 MB / 1.001 GB, free: 15.29 MB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 0.0007955/0.7818, allocations: 180 kB / 1.001 GB, free: 15.12 MB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002554/0.7843, allocations: 491.2 kB / 1.002 GB, free: 14.64 MB / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 0.001067/0.7854, allocations: 0.8878 MB / 1.003 GB, free: 13.75 MB / 0.7637 GB Notification: Performance of NFVerifyModel.verify: time 0.001499/0.7869, allocations: 0.6912 MB / 1.003 GB, free: 13.05 MB / 0.7637 GB Notification: Performance of NFConvertDAE.convert: time 0.006033/0.793, allocations: 3.898 MB / 1.007 GB, free: 9.145 MB / 0.7637 GB Notification: Performance of FrontEnd - DAE generated: time 5.009e-06/0.793, allocations: 3.938 kB / 1.007 GB, free: 9.141 MB / 0.7637 GB Notification: Performance of FrontEnd: time 3.176e-06/0.793, allocations: 0 / 1.007 GB, free: 9.141 MB / 0.7637 GB Notification: Performance of Transformations before backend: time 0.0001864/0.7932, allocations: 0 / 1.007 GB, free: 9.141 MB / 0.7637 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.01051/0.8037, allocations: 4.103 MB / 1.011 GB, free: 4.926 MB / 0.7637 GB Notification: Performance of prepare preOptimizeDAE: time 4.643e-05/0.8038, allocations: 11.97 kB / 1.011 GB, free: 4.914 MB / 0.7637 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001141/0.8049, allocations: 366.1 kB / 1.012 GB, free: 4.547 MB / 0.7637 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0169/0.8219, allocations: 3.401 MB / 1.015 GB, free: 1.137 MB / 0.7637 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005477/0.8274, allocations: 1.987 MB / 1.017 GB, free: 15.08 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000477/0.8279, allocations: 461.7 kB / 1.017 GB, free: 14.57 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001038/0.829, allocations: 236 kB / 1.017 GB, free: 14.34 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01304/0.842, allocations: 4.841 MB / 1.022 GB, free: 9.348 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.673e-05/0.8421, allocations: 3.938 kB / 1.022 GB, free: 9.344 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00038/0.8425, allocations: 99.98 kB / 1.022 GB, free: 9.246 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002191/0.8427, allocations: 172.8 kB / 1.022 GB, free: 9.074 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01443/0.8572, allocations: 5.296 MB / 1.028 GB, free: 3.762 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02454/0.8818, allocations: 14.6 MB / 1.042 GB, free: 3.988 MB / 0.795 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01044/0.8922, allocations: 3.668 MB / 1.045 GB, free: 312 kB / 0.795 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002722/0.8926, allocations: 25.23 kB / 1.045 GB, free: 288 kB / 0.795 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004488/0.8971, allocations: 1.907 MB / 1.047 GB, free: 14.31 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=163): time 3.296e-06/0.8971, allocations: 0 / 1.047 GB, free: 14.31 MB / 0.8106 GB Notification: Performance of matching and sorting (n=250): time 0.1386/1.036, allocations: 34.08 MB / 1.081 GB, free: 12.01 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002919/1.036, allocations: 0.4967 MB / 1.081 GB, free: 11.4 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004255/1.04, allocations: 2.277 MB / 1.083 GB, free: 9.109 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 0.0005721/1.041, allocations: 73.7 kB / 1.083 GB, free: 9.031 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 0.001507/1.042, allocations: 1.434 MB / 1.085 GB, free: 7.582 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 0.001214/1.044, allocations: 0.824 MB / 1.086 GB, free: 6.746 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003621/1.044, allocations: 48 kB / 1.086 GB, free: 6.699 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0002389/1.044, allocations: 390.7 kB / 1.086 GB, free: 6.312 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005844/1.05, allocations: 2.112 MB / 1.088 GB, free: 4.195 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006189/1.056, allocations: 2.395 MB / 1.09 GB, free: 1.715 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.006069/1.062, allocations: 2.292 MB / 1.093 GB, free: 15.37 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.198e-05/1.063, allocations: 0 / 1.093 GB, free: 15.37 MB / 0.8575 GB Notification: Performance of matching and sorting (n=299) (initialization): time 0.01995/1.082, allocations: 6.883 MB / 1.099 GB, free: 8.391 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001412/1.083, allocations: 148.5 kB / 1.1 GB, free: 8.215 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.501e-05/1.083, allocations: 7.984 kB / 1.1 GB, free: 8.207 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01049/1.093, allocations: 2.946 MB / 1.102 GB, free: 5.258 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003109/1.096, allocations: 0.5773 MB / 1.103 GB, free: 4.68 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04364/1.14, allocations: 18.14 MB / 1.121 GB, free: 2.305 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00445/1.144, allocations: 419.7 kB / 1.121 GB, free: 1.895 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005435/1.145, allocations: 95.86 kB / 1.121 GB, free: 1.801 MB / 0.8731 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.00206/1.147, allocations: 0.7066 MB / 1.122 GB, free: 1.082 MB / 0.8731 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00094/1.148, allocations: 328.1 kB / 1.122 GB, free: 0.7578 MB / 0.8731 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009432/1.149, allocations: 388.1 kB / 1.123 GB, free: 380 kB / 0.8731 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.169e-05/1.149, allocations: 20 kB / 1.123 GB, free: 360 kB / 0.8731 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.52e-05/1.149, allocations: 12 kB / 1.123 GB, free: 348 kB / 0.8731 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.066e-05/1.149, allocations: 11.95 kB / 1.123 GB, free: 336 kB / 0.8731 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005914/1.155, allocations: 3.624 MB / 1.126 GB, free: 12.64 MB / 0.8887 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.079e-05/1.155, allocations: 0 / 1.126 GB, free: 12.64 MB / 0.8887 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00273/1.158, allocations: 0.5033 MB / 1.127 GB, free: 12.14 MB / 0.8887 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01005/1.168, allocations: 2.872 MB / 1.129 GB, free: 9.262 MB / 0.8887 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005261/1.169, allocations: 51.97 kB / 1.13 GB, free: 9.211 MB / 0.8887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0386/1.207, allocations: 17.93 MB / 1.147 GB, free: 7 MB / 0.9044 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.188e-06/1.207, allocations: 7.922 kB / 1.147 GB, free: 6.992 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01794/1.225, allocations: 6.529 MB / 1.153 GB, free: 436 kB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002297/1.227, allocations: 0.7 MB / 1.154 GB, free: 15.7 MB / 0.92 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005482/1.228, allocations: 51.98 kB / 1.154 GB, free: 15.65 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003165/1.231, allocations: 407.6 kB / 1.155 GB, free: 15.25 MB / 0.92 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001192/1.232, allocations: 362.6 kB / 1.155 GB, free: 14.9 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002066/1.233, allocations: 72.53 kB / 1.155 GB, free: 14.83 MB / 0.92 GB Notification: Performance of sorting global known variables: time 0.002249/1.235, allocations: 1.513 MB / 1.156 GB, free: 13.32 MB / 0.92 GB Notification: Performance of sort global known variables: time 1.5e-07/1.235, allocations: 0 / 1.156 GB, free: 13.32 MB / 0.92 GB Notification: Performance of remove unused functions: time 0.003496/1.238, allocations: 1.043 MB / 1.157 GB, free: 12.27 MB / 0.92 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.01863/1.257, allocations: 7.165 MB / 1.164 GB, free: 5.066 MB / 0.92 GB Notification: Performance of simCode: created initialization part: time 0.0224/1.279, allocations: 6.825 MB / 1.171 GB, free: 14.15 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 7.834e-06/1.28, allocations: 192 / 1.171 GB, free: 14.15 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 0.01668/1.296, allocations: 4.225 MB / 1.175 GB, free: 9.895 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005041/1.301, allocations: 0.9981 MB / 1.176 GB, free: 8.906 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06273/1.364, allocations: 30.55 MB / 1.206 GB, free: 8.855 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003461/1.368, allocations: 2.297 MB / 1.208 GB, free: 6.523 MB / 0.9669 GB Notification: Performance of simCode: alias equations: time 0.00317/1.371, allocations: 0.506 MB / 1.209 GB, free: 6.012 MB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002261/1.373, allocations: 1.327 MB / 1.21 GB, free: 4.684 MB / 0.9669 GB Notification: Performance of SimCode: time 1.173e-06/1.373, allocations: 0 / 1.21 GB, free: 4.684 MB / 0.9669 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.7094/2.082, allocations: 96.46 MB / 1.304 GB, free: 268.6 MB / 1.014 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001502/2.083, allocations: 219.4 kB / 1.304 GB, free: 268.4 MB / 1.014 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.915/6.998, allocations: 2.188 kB / 1.304 GB, free: 268.4 MB / 1.014 GB (rm -f Buildings_9_Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized.pipe ; mkfifo Buildings_9_Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized.pipe >> ../files/Buildings_9_Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized_res.mat --tempDir=temp_Buildings_9_Buildings_Electrical_DC_Lines_Examples_DCLinesLinearized_fmu --startTime=0 --stopTime=4000 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Electrical_DC_Lines_Examples_DCLinesLinearized.fmu > Buildings_9_Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized_res.mat does not exist to compare? outputFormat=mat