Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.SingleUTubeResistances.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.Fluid.Geothermal.Boreholes.BaseClasses.Examples.SingleUTubeResistances,fileNamePrefix="Buildings_9_Buildings_Fluid_Geothermal_Boreholes_BaseClasses_Examples_SingleUTubeResistances",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.SingleUTubeResistances,fileNamePrefix="Buildings_9_Buildings_Fluid_Geothermal_Boreholes_BaseClasses_Examples_SingleUTubeResistances",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.0008507/0.0008506, allocations: 86.25 kB / 15.06 MB, free: 1.09 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.000936/0.0009361, allocations: 168.7 kB / 15.95 MB, free: 204 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.279/1.279, allocations: 223.3 MB / 240 MB, free: 5.422 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.305/2.305, allocations: 390.4 MB / 0.6655 GB, free: 2.941 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003122/0.0003123, allocations: 8 kB / 0.8149 GB, free: 14.16 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6024/0.6028, allocations: 142.3 MB / 0.9539 GB, free: 8.168 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.SingleUTubeResistances): time 0.001318/0.6041, allocations: 1.183 MB / 0.955 GB, free: 7.227 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001022/0.6052, allocations: 0.8321 MB / 0.9558 GB, free: 6.566 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.444e-05/0.6053, allocations: 2.25 kB / 0.9558 GB, free: 6.566 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0001605/0.6054, allocations: 37.16 kB / 0.9559 GB, free: 6.543 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 3.406e-05/0.6055, allocations: 17.88 kB / 0.9559 GB, free: 6.527 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004326/0.6059, allocations: 166.5 kB / 0.956 GB, free: 6.422 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 6.625e-05/0.606, allocations: 45.83 kB / 0.9561 GB, free: 6.395 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 3.646e-05/0.606, allocations: 2.688 kB / 0.9561 GB, free: 6.395 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 5.518e-05/0.6061, allocations: 19.89 kB / 0.9561 GB, free: 6.383 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 2.912e-05/0.6061, allocations: 14.66 kB / 0.9561 GB, free: 6.375 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 9.057e-06/0.6061, allocations: 1.469 kB / 0.9561 GB, free: 6.375 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002769/0.6064, allocations: 141.8 kB / 0.9563 GB, free: 6.309 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 9.879e-06/0.6064, allocations: 6.25 kB / 0.9563 GB, free: 6.305 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 2.19e-05/0.6065, allocations: 36.45 kB / 0.9563 GB, free: 6.266 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001281/0.6066, allocations: 89.61 kB / 0.9564 GB, free: 6.215 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.446e-06/0.6066, allocations: 0 / 0.9564 GB, free: 6.215 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.042e-06/0.6066, allocations: 0 / 0.9564 GB, free: 6.215 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 3.386e-06/0.6066, allocations: 1.406 kB / 0.9564 GB, free: 6.215 MB / 0.7169 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 0 * Number of variables: 0 Notification: Performance of Generate backend data structure: time 0.0002473/0.6069, allocations: 363.2 kB / 0.9567 GB, free: 5.828 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.847e-05/0.6069, allocations: 8.781 kB / 0.9567 GB, free: 5.828 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.665e-05/0.607, allocations: 107.2 kB / 0.9568 GB, free: 5.715 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.194e-05/0.607, allocations: 92.52 kB / 0.9569 GB, free: 5.625 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001454/0.6072, allocations: 250.3 kB / 0.9572 GB, free: 5.348 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.375e-05/0.6072, allocations: 151.7 kB / 0.9573 GB, free: 5.199 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.581e-05/0.6072, allocations: 155.6 kB / 0.9575 GB, free: 5.047 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 3.792e-05/0.6073, allocations: 105 kB / 0.9576 GB, free: 4.938 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.65e-05/0.6073, allocations: 80.44 kB / 0.9576 GB, free: 4.859 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.564e-05/0.6073, allocations: 158.5 kB / 0.9578 GB, free: 4.703 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.082e-05/0.6074, allocations: 150.6 kB / 0.9579 GB, free: 4.555 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.335e-05/0.6074, allocations: 155.7 kB / 0.9581 GB, free: 4.402 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001769/0.6076, allocations: 461.5 kB / 0.9585 GB, free: 3.91 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 4.068e-05/0.6076, allocations: 178.3 kB / 0.9587 GB, free: 3.727 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.361e-05/0.6076, allocations: 84.08 kB / 0.9588 GB, free: 3.641 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 9.228e-06/0.6076, allocations: 75.28 kB / 0.9588 GB, free: 3.566 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.82e-05/0.6077, allocations: 111.3 kB / 0.959 GB, free: 3.449 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=0): time 1.052e-06/0.6077, allocations: 0 / 0.959 GB, free: 3.449 MB / 0.7169 GB Notification: Performance of matching and sorting (n=0): time 8.007e-05/0.6078, allocations: 32.48 kB / 0.959 GB, free: 3.414 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.683e-05/0.6078, allocations: 134.6 kB / 0.9591 GB, free: 3.27 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001017/0.6079, allocations: 137.3 kB / 0.9592 GB, free: 3.148 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 6.523e-06/0.6079, allocations: 25.7 kB / 0.9593 GB, free: 3.117 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 2.959e-05/0.6079, allocations: 91.03 kB / 0.9594 GB, free: 3.027 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.523e-06/0.608, allocations: 0 / 0.9594 GB, free: 3.027 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.164e-06/0.608, allocations: 0 / 0.9594 GB, free: 3.027 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 3.913e-05/0.608, allocations: 316.3 kB / 0.9597 GB, free: 2.711 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.869e-05/0.608, allocations: 6.719 kB / 0.9597 GB, free: 2.707 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.327e-05/0.608, allocations: 10.91 kB / 0.9597 GB, free: 2.699 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.298e-05/0.6081, allocations: 7.922 kB / 0.9597 GB, free: 2.695 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.533e-06/0.6081, allocations: 0 / 0.9597 GB, free: 2.695 MB / 0.7169 GB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001005/0.6082, allocations: 45.55 kB / 0.9597 GB, free: 2.656 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.177e-05/0.6082, allocations: 5.656 kB / 0.9597 GB, free: 2.656 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.586e-05/0.6082, allocations: 1.438 kB / 0.9597 GB, free: 2.656 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.858e-06/0.6082, allocations: 1.406 kB / 0.9597 GB, free: 2.656 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.91e-07/0.6082, allocations: 0 / 0.9597 GB, free: 2.656 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.849e-06/0.6083, allocations: 3.984 kB / 0.9597 GB, free: 2.652 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.269e-05/0.6083, allocations: 1.438 kB / 0.9597 GB, free: 2.652 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.743e-06/0.6083, allocations: 9.266 kB / 0.9597 GB, free: 2.645 MB / 0.7169 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 5.185e-05/0.6084, allocations: 182.5 kB / 0.9599 GB, free: 2.457 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.897e-05/0.6084, allocations: 111.4 kB / 0.96 GB, free: 2.344 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.533e-05/0.6084, allocations: 115.7 kB / 0.9601 GB, free: 2.227 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.103e-05/0.6085, allocations: 185.3 kB / 0.9603 GB, free: 2.039 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.373e-05/0.6085, allocations: 177.5 kB / 0.9605 GB, free: 1.859 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.857e-05/0.6085, allocations: 180.3 kB / 0.9607 GB, free: 1.676 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000145/0.6087, allocations: 420.2 kB / 0.9611 GB, free: 1.215 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.391e-05/0.6087, allocations: 102.3 kB / 0.9612 GB, free: 1.109 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.467e-05/0.6087, allocations: 109.9 kB / 0.9613 GB, free: 0.9961 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.232e-05/0.6087, allocations: 177.2 kB / 0.9614 GB, free: 0.8164 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.454e-05/0.6088, allocations: 181.7 kB / 0.9616 GB, free: 0.6328 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.071e-05/0.6088, allocations: 184.4 kB / 0.9618 GB, free: 456 kB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.976e-05/0.6088, allocations: 185.8 kB / 0.962 GB, free: 264 kB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.76e-05/0.6089, allocations: 316.7 kB / 0.9623 GB, free: 15.93 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 6.692e-05/0.609, allocations: 183.9 kB / 0.9624 GB, free: 15.73 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.096e-05/0.6091, allocations: 185.9 kB / 0.9626 GB, free: 15.54 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.077e-05/0.6091, allocations: 107.6 kB / 0.9627 GB, free: 15.43 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.223e-05/0.6092, allocations: 192.1 kB / 0.9629 GB, free: 15.23 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.895e-05/0.6093, allocations: 101 kB / 0.963 GB, free: 15.13 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 5.752e-05/0.6093, allocations: 101.9 kB / 0.9631 GB, free: 15.04 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.31e-07/0.6093, allocations: 0 / 0.9631 GB, free: 15.04 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0002829/0.6096, allocations: 37.66 kB / 0.9631 GB, free: 15.03 MB / 0.7325 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (0): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005067/0.6101, allocations: 0.8571 MB / 0.964 GB, free: 14.19 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 6.922e-05/0.6102, allocations: 31.7 kB / 0.964 GB, free: 14.16 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 1.743e-06/0.6102, allocations: 0 / 0.964 GB, free: 14.16 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 2.434e-06/0.6102, allocations: 5.25 kB / 0.964 GB, free: 14.16 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004404/0.6107, allocations: 0.5295 MB / 0.9645 GB, free: 13.63 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006958/0.6114, allocations: 0.5597 MB / 0.9651 GB, free: 13.13 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002099/0.6116, allocations: 0.6801 MB / 0.9657 GB, free: 12.43 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 2.213e-05/0.6116, allocations: 9.484 kB / 0.9657 GB, free: 12.42 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.394e-05/0.6117, allocations: 18.09 kB / 0.9658 GB, free: 12.41 MB / 0.7325 GB Notification: Performance of SimCode: time 2.6e-07/0.6117, allocations: 0 / 0.9658 GB, free: 12.41 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01296/0.6246, allocations: 2.465 MB / 0.9682 GB, free: 11.25 MB / 0.7325 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001832/0.6248, allocations: 220.6 kB / 0.9684 GB, free: 11.02 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.657/2.282, allocations: 0 / 0.9684 GB, free: 11.02 MB / 0.7325 GB (rm -f Buildings_9_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.SingleUTubeResistances.pipe ; mkfifo Buildings_9_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.SingleUTubeResistances.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.SingleUTubeResistances.pipe >> ../files/Buildings_9_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.SingleUTubeResistances.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.SingleUTubeResistances_res.mat --tempDir=temp_Buildings_9_Buildings_Fluid_Geothermal_Boreholes_BaseClasses_Examples_SingleUTubeResistances_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Fluid_Geothermal_Boreholes_BaseClasses_Examples_SingleUTubeResistances.fmu > Buildings_9_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.SingleUTubeResistances.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.SingleUTubeResistances_res.mat does not exist to compare? outputFormat=mat