Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.HANaturalCylinder.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.HeatExchangers.BaseClasses.Examples.HANaturalCylinder,fileNamePrefix="Buildings_9_Buildings_Fluid_HeatExchangers_BaseClasses_Examples_HANaturalCylinder",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.HeatExchangers.BaseClasses.Examples.HANaturalCylinder,fileNamePrefix="Buildings_9_Buildings_Fluid_HeatExchangers_BaseClasses_Examples_HANaturalCylinder",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.001159/0.001159, allocations: 92.16 kB / 15.06 MB, free: 1.098 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.001507/0.001507, allocations: 172.7 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 1.439/1.439, allocations: 223.2 MB / 240 MB, free: 5.25 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.436/2.436, allocations: 390.4 MB / 0.6655 GB, free: 2.918 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0004978/0.000498, allocations: 19.98 kB / 0.8149 GB, free: 14.12 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7626/0.7632, allocations: 142.3 MB / 0.9539 GB, free: 8.141 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatExchangers.BaseClasses.Examples.HANaturalCylinder): time 0.004517/0.7677, allocations: 4.089 MB / 0.9578 GB, free: 4.84 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0008446/0.7686, allocations: 0.7692 MB / 0.9586 GB, free: 4.215 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.955e-05/0.7687, allocations: 5.25 kB / 0.9586 GB, free: 4.211 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0001413/0.7689, allocations: 18.72 kB / 0.9586 GB, free: 4.195 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 5.794e-05/0.7689, allocations: 31.98 kB / 0.9587 GB, free: 4.168 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003946/0.7693, allocations: 128.3 kB / 0.9588 GB, free: 4.07 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0001463/0.7695, allocations: 157.9 kB / 0.9589 GB, free: 3.977 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 9.114e-05/0.7696, allocations: 12.34 kB / 0.9589 GB, free: 3.969 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001546/0.7697, allocations: 77.09 kB / 0.959 GB, free: 3.926 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 9.153e-05/0.7698, allocations: 80.59 kB / 0.9591 GB, free: 3.871 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 2.009e-05/0.7699, allocations: 5.312 kB / 0.9591 GB, free: 3.871 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002696/0.7701, allocations: 112.8 kB / 0.9592 GB, free: 3.824 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 2.514e-05/0.7702, allocations: 28.2 kB / 0.9592 GB, free: 3.801 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 3.256e-05/0.7702, allocations: 48.3 kB / 0.9593 GB, free: 3.758 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.000209/0.7704, allocations: 153.5 kB / 0.9594 GB, free: 3.664 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 5.7e-06/0.7704, allocations: 0 / 0.9594 GB, free: 3.664 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.763e-06/0.7705, allocations: 1.375 kB / 0.9594 GB, free: 3.664 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 4.409e-06/0.7705, allocations: 0 / 0.9594 GB, free: 3.664 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: 17 * Number of variables: 17 Notification: Performance of Generate backend data structure: time 0.0006593/0.7711, allocations: 479.5 kB / 0.9599 GB, free: 3.219 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.961e-05/0.7712, allocations: 12.25 kB / 0.9599 GB, free: 3.215 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.24e-05/0.7712, allocations: 37.31 kB / 0.9599 GB, free: 3.172 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.673e-05/0.7713, allocations: 14.77 kB / 0.9599 GB, free: 3.164 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.204e-05/0.7713, allocations: 181.7 kB / 0.9601 GB, free: 2.953 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.42e-05/0.7714, allocations: 8.125 kB / 0.9601 GB, free: 2.949 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.008e-05/0.7714, allocations: 10.88 kB / 0.9601 GB, free: 2.945 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002877/0.7717, allocations: 135.4 kB / 0.9603 GB, free: 2.859 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.916e-06/0.7717, allocations: 0 / 0.9603 GB, free: 2.859 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.179e-05/0.7717, allocations: 5.328 kB / 0.9603 GB, free: 2.855 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.33e-06/0.7717, allocations: 1.375 kB / 0.9603 GB, free: 2.855 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003752/0.7721, allocations: 163.9 kB / 0.9604 GB, free: 2.789 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007955/0.7729, allocations: 467.3 kB / 0.9609 GB, free: 2.371 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002639/0.7732, allocations: 146.8 kB / 0.961 GB, free: 2.285 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001769/0.7734, allocations: 76.5 kB / 0.9611 GB, free: 2.25 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001024/0.7744, allocations: 0.9557 MB / 0.962 GB, free: 1.266 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.928e-05/0.7744, allocations: 43.31 kB / 0.9621 GB, free: 1.215 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=12): time 1.353e-06/0.7744, allocations: 0.7188 kB / 0.9621 GB, free: 1.215 MB / 0.7169 GB Notification: Performance of matching and sorting (n=12): time 0.0006153/0.7751, allocations: 238.8 kB / 0.9623 GB, free: 1.102 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.451e-05/0.7751, allocations: 56.5 kB / 0.9623 GB, free: 1.035 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001115/0.7752, allocations: 162.1 kB / 0.9625 GB, free: 0.9023 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.464e-05/0.7752, allocations: 34.86 kB / 0.9625 GB, free: 0.8633 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 5.062e-05/0.7753, allocations: 113 kB / 0.9626 GB, free: 0.75 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.277e-05/0.7753, allocations: 36.59 kB / 0.9627 GB, free: 0.7188 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.037e-05/0.7753, allocations: 0.7812 kB / 0.9627 GB, free: 0.7188 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 4.909e-05/0.7754, allocations: 333.8 kB / 0.963 GB, free: 396 kB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002091/0.7756, allocations: 85.14 kB / 0.9631 GB, free: 360 kB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002164/0.7758, allocations: 125.9 kB / 0.9632 GB, free: 280 kB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002176/0.7761, allocations: 95.75 kB / 0.9633 GB, free: 240 kB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.104e-06/0.7761, allocations: 0 / 0.9633 GB, free: 240 kB / 0.7169 GB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0005083/0.7766, allocations: 266.3 kB / 0.9635 GB, free: 104 kB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.611e-05/0.7766, allocations: 8.562 kB / 0.9635 GB, free: 100 kB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.652e-06/0.7766, allocations: 1.25 kB / 0.9635 GB, free: 100 kB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.639e-05/0.7766, allocations: 2.781 kB / 0.9635 GB, free: 100 kB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002554/0.7769, allocations: 61.16 kB / 0.9636 GB, free: 84 kB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.057e-05/0.7769, allocations: 6.328 kB / 0.9636 GB, free: 80 kB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001387/0.7771, allocations: 39.58 kB / 0.9636 GB, free: 56 kB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.678e-05/0.7771, allocations: 6.062 kB / 0.9637 GB, free: 56 kB / 0.7169 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * 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 (26): * Single equations (assignments): 26 * 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 prepare postOptimizeDAE: time 0.0001112/0.7772, allocations: 124.1 kB / 0.9638 GB, free: 15.93 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.418e-05/0.7773, allocations: 12.66 kB / 0.9638 GB, free: 15.92 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004732/0.7777, allocations: 204.3 kB / 0.964 GB, free: 15.8 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.737e-06/0.7777, allocations: 1.125 kB / 0.964 GB, free: 15.8 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.14e-06/0.7778, allocations: 0 / 0.964 GB, free: 15.8 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.197e-06/0.7778, allocations: 0.9688 kB / 0.964 GB, free: 15.8 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002384/0.778, allocations: 221.4 kB / 0.9642 GB, free: 15.56 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.424e-06/0.778, allocations: 5.062 kB / 0.9642 GB, free: 15.56 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001702/0.7782, allocations: 34.75 kB / 0.9642 GB, free: 15.55 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.326e-06/0.7782, allocations: 0 / 0.9642 GB, free: 15.55 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.285e-05/0.7782, allocations: 1.156 kB / 0.9642 GB, free: 15.55 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.13e-05/0.7782, allocations: 1.125 kB / 0.9642 GB, free: 15.55 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.122e-06/0.7782, allocations: 3.938 kB / 0.9642 GB, free: 15.55 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004545/0.7787, allocations: 283.7 kB / 0.9645 GB, free: 15.34 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 7.471e-05/0.7788, allocations: 106 kB / 0.9646 GB, free: 15.23 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.062e-05/0.7788, allocations: 0 / 0.9646 GB, free: 15.23 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001304/0.779, allocations: 16.61 kB / 0.9646 GB, free: 15.22 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.752e-05/0.779, allocations: 11.92 kB / 0.9646 GB, free: 15.21 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.796e-06/0.779, allocations: 3.156 kB / 0.9646 GB, free: 15.21 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 8.35e-05/0.7791, allocations: 120 kB / 0.9648 GB, free: 15.12 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.2e-07/0.7791, allocations: 7.938 kB / 0.9648 GB, free: 15.11 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0003211/0.7794, allocations: 56.36 kB / 0.9648 GB, free: 15.1 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 (12): * Single equations (assignments): 12 * 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.001036/0.7805, allocations: 0.8757 MB / 0.9657 GB, free: 14.34 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0004751/0.781, allocations: 197 kB / 0.9659 GB, free: 14.26 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 2.635e-06/0.781, allocations: 0 / 0.9659 GB, free: 14.26 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.0001856/0.7812, allocations: 80.67 kB / 0.9659 GB, free: 14.23 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003556/0.7815, allocations: 20.92 kB / 0.966 GB, free: 14.21 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001729/0.7833, allocations: 1.011 MB / 0.9669 GB, free: 13.51 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000402/0.7837, allocations: 0.7105 MB / 0.9676 GB, free: 12.79 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 0.0001108/0.7838, allocations: 21.14 kB / 0.9677 GB, free: 12.79 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.01e-05/0.7839, allocations: 31.34 kB / 0.9677 GB, free: 12.76 MB / 0.7325 GB Notification: Performance of SimCode: time 5.2e-07/0.7839, allocations: 4 kB / 0.9677 GB, free: 12.76 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01569/0.7996, allocations: 4.006 MB / 0.9716 GB, free: 10.86 MB / 0.7325 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002313/0.7999, allocations: 218.3 kB / 0.9718 GB, free: 10.62 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.812/2.612, allocations: 0 / 0.9718 GB, free: 10.62 MB / 0.7325 GB (rm -f Buildings_9_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.HANaturalCylinder.pipe ; mkfifo Buildings_9_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.HANaturalCylinder.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.HANaturalCylinder.pipe >> ../files/Buildings_9_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.HANaturalCylinder.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.HANaturalCylinder_res.mat --tempDir=temp_Buildings_9_Buildings_Fluid_HeatExchangers_BaseClasses_Examples_HANaturalCylinder_fmu --startTime=0 --stopTime=250 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Fluid_HeatExchangers_BaseClasses_Examples_HANaturalCylinder.fmu > Buildings_9_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.HANaturalCylinder.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.HANaturalCylinder_res.mat does not exist to compare? outputFormat=mat