Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange.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.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange,fileNamePrefix="Buildings_latest_Buildings_Fluid_HeatExchangers_BaseClasses_Examples_MassExchange",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange,fileNamePrefix="Buildings_latest_Buildings_Fluid_HeatExchangers_BaseClasses_Examples_MassExchange",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.001229/0.001229, allocations: 99.47 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.001484/0.001484, allocations: 177.3 kB / 15.94 MB, free: 228 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.25/1.25, allocations: 223.2 MB / 239.9 MB, free: 5.344 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.308/2.308, allocations: 409.2 MB / 0.6838 GB, free: 1.008 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.000369/0.0003691, allocations: 8 kB / 0.8375 GB, free: 6.582 MB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7794/0.7798, allocations: 146.8 MB / 0.9809 GB, free: 6.312 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange): time 0.152/0.9318, allocations: 125.9 MB / 1.104 GB, free: 8.09 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.001119/0.933, allocations: 0.8536 MB / 1.105 GB, free: 7.234 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.147e-05/0.9331, allocations: 7.875 kB / 1.105 GB, free: 7.227 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.0002403/0.9334, allocations: 31.88 kB / 1.105 GB, free: 7.195 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.0003896/0.9338, allocations: 147.5 kB / 1.105 GB, free: 7.051 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001999/0.934, allocations: 87.81 kB / 1.105 GB, free: 6.965 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0005452/0.9345, allocations: 239.4 kB / 1.105 GB, free: 6.73 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001268/0.9347, allocations: 39.53 kB / 1.105 GB, free: 6.691 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 6.763e-05/0.9348, allocations: 35.86 kB / 1.105 GB, free: 6.656 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 7.213e-05/0.9348, allocations: 43.77 kB / 1.105 GB, free: 6.613 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 1.302e-05/0.9349, allocations: 4 kB / 1.105 GB, free: 6.609 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003512/0.9352, allocations: 203.7 kB / 1.105 GB, free: 6.41 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 3.839e-05/0.9353, allocations: 15.92 kB / 1.105 GB, free: 6.395 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 3.767e-05/0.9353, allocations: 49.58 kB / 1.106 GB, free: 6.34 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0002359/0.9356, allocations: 159.6 kB / 1.106 GB, free: 6.184 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 2.465e-06/0.9356, allocations: 0 / 1.106 GB, free: 6.184 MB / 0.8575 GB Notification: Performance of FrontEnd: time 2.235e-06/0.9356, allocations: 0 / 1.106 GB, free: 6.184 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 4.178e-06/0.9356, allocations: 0 / 1.106 GB, free: 6.184 MB / 0.8575 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 25 * Number of variables: 25 Notification: Performance of Generate backend data structure: time 0.0005777/0.9362, allocations: 446.7 kB / 1.106 GB, free: 5.699 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 3.631e-05/0.9362, allocations: 8.031 kB / 1.106 GB, free: 5.691 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.53e-05/0.9363, allocations: 42.55 kB / 1.106 GB, free: 5.641 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002853/0.9366, allocations: 39.78 kB / 1.106 GB, free: 5.602 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002184/0.9368, allocations: 214.8 kB / 1.106 GB, free: 5.352 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.37e-05/0.9368, allocations: 8 kB / 1.106 GB, free: 5.344 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.65e-05/0.9368, allocations: 8 kB / 1.106 GB, free: 5.336 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002676/0.9371, allocations: 123.1 kB / 1.107 GB, free: 5.211 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.366e-06/0.9371, allocations: 0 / 1.107 GB, free: 5.211 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.439e-05/0.9371, allocations: 4 kB / 1.107 GB, free: 5.207 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.562e-06/0.9371, allocations: 4 kB / 1.107 GB, free: 5.203 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002621/0.9374, allocations: 103.9 kB / 1.107 GB, free: 5.102 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006463/0.9381, allocations: 460.2 kB / 1.107 GB, free: 4.602 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002018/0.9383, allocations: 94.48 kB / 1.107 GB, free: 4.5 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 2.227e-05/0.9383, allocations: 4 kB / 1.107 GB, free: 4.496 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.555e-05/0.9383, allocations: 34.56 kB / 1.107 GB, free: 4.453 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=7): time 1.142e-06/0.9384, allocations: 0 / 1.107 GB, free: 4.453 MB / 0.8575 GB Notification: Performance of matching and sorting (n=7): time 0.0004366/0.9388, allocations: 157.6 kB / 1.107 GB, free: 4.293 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.302e-05/0.9388, allocations: 55.41 kB / 1.107 GB, free: 4.227 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001678/0.939, allocations: 182.1 kB / 1.108 GB, free: 4.039 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 1.76e-05/0.939, allocations: 29.7 kB / 1.108 GB, free: 4.004 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 6.557e-05/0.9391, allocations: 116 kB / 1.108 GB, free: 3.887 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 2.433e-05/0.9391, allocations: 23.86 kB / 1.108 GB, free: 3.863 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.661e-06/0.9391, allocations: 3.938 kB / 1.108 GB, free: 3.859 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001189/0.9393, allocations: 322.8 kB / 1.108 GB, free: 3.535 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001063/0.9394, allocations: 39.97 kB / 1.108 GB, free: 3.496 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.414e-05/0.9395, allocations: 39.91 kB / 1.108 GB, free: 3.457 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000109/0.9396, allocations: 43.94 kB / 1.108 GB, free: 3.414 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.963e-06/0.9396, allocations: 0 / 1.108 GB, free: 3.414 MB / 0.8575 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0002532/0.9399, allocations: 125.6 kB / 1.108 GB, free: 3.285 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.326e-05/0.9399, allocations: 4 kB / 1.108 GB, free: 3.281 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.769e-06/0.9399, allocations: 0 / 1.108 GB, free: 3.281 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.349e-05/0.9399, allocations: 0 / 1.108 GB, free: 3.281 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001299/0.9401, allocations: 27.92 kB / 1.108 GB, free: 3.254 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.35e-06/0.9401, allocations: 0 / 1.108 GB, free: 3.254 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.969e-05/0.9402, allocations: 23.83 kB / 1.108 GB, free: 3.23 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.437e-06/0.9402, allocations: 4.547 kB / 1.108 GB, free: 3.227 MB / 0.8575 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 (8): * Single equations (assignments): 8 * 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 9.95e-05/0.9403, allocations: 121.8 kB / 1.108 GB, free: 3.098 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.137e-05/0.9403, allocations: 15.81 kB / 1.108 GB, free: 3.082 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003193/0.9407, allocations: 139 kB / 1.109 GB, free: 2.945 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.285e-06/0.9407, allocations: 0 / 1.109 GB, free: 2.945 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.298e-06/0.9407, allocations: 0 / 1.109 GB, free: 2.945 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.935e-06/0.9407, allocations: 0 / 1.109 GB, free: 2.945 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002169/0.9409, allocations: 221.6 kB / 1.109 GB, free: 2.68 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.394e-06/0.9409, allocations: 3.953 kB / 1.109 GB, free: 2.676 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001031/0.941, allocations: 19.98 kB / 1.109 GB, free: 2.656 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.609e-06/0.941, allocations: 4 kB / 1.109 GB, free: 2.652 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.826e-06/0.9411, allocations: 0 / 1.109 GB, free: 2.652 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.006e-06/0.9411, allocations: 4.078 kB / 1.109 GB, free: 2.648 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.427e-06/0.9411, allocations: 7.969 kB / 1.109 GB, free: 2.641 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002984/0.9414, allocations: 223.3 kB / 1.109 GB, free: 2.406 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 5.068e-05/0.9414, allocations: 92.91 kB / 1.109 GB, free: 2.297 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.158e-05/0.9415, allocations: 0 / 1.109 GB, free: 2.297 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001187/0.9416, allocations: 11.98 kB / 1.109 GB, free: 2.285 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.901e-05/0.9416, allocations: 7.984 kB / 1.109 GB, free: 2.277 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.612e-06/0.9416, allocations: 4 kB / 1.109 GB, free: 2.273 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 0.0001073/0.9418, allocations: 133.8 kB / 1.109 GB, free: 2.145 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.703e-06/0.9418, allocations: 0 / 1.109 GB, free: 2.145 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002382/0.942, allocations: 27.94 kB / 1.109 GB, free: 2.117 MB / 0.8575 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 (7): * Single equations (assignments): 7 * 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.0005987/0.9426, allocations: 0.7616 MB / 1.11 GB, free: 1.332 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0002674/0.9429, allocations: 87.89 kB / 1.11 GB, free: 1.246 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 1.673e-06/0.9429, allocations: 0 / 1.11 GB, free: 1.246 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.0001115/0.943, allocations: 43.97 kB / 1.11 GB, free: 1.203 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003317/0.9434, allocations: 43.83 kB / 1.11 GB, free: 1.16 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001351/0.9447, allocations: 0.8384 MB / 1.111 GB, free: 276 kB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000291/0.945, allocations: 0.7198 MB / 1.112 GB, free: 15.52 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 7.112e-05/0.9451, allocations: 12.89 kB / 1.112 GB, free: 15.51 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.739e-05/0.9452, allocations: 35.42 kB / 1.112 GB, free: 15.48 MB / 0.8731 GB Notification: Performance of SimCode: time 2.41e-07/0.9452, allocations: 0 / 1.112 GB, free: 15.48 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.9974/1.943, allocations: 2.86 MB / 1.115 GB, free: 12.81 MB / 0.8731 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002208/1.943, allocations: 196.1 kB / 1.115 GB, free: 12.58 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.742/3.685, allocations: 64 / 1.115 GB, free: 12.58 MB / 0.8731 GB (rm -f Buildings_latest_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange.pipe ; mkfifo Buildings_latest_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange.pipe >> ../files/Buildings_latest_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange_res.mat --tempDir=temp_Buildings_latest_Buildings_Fluid_HeatExchangers_BaseClasses_Examples_MassExchange_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Fluid_HeatExchangers_BaseClasses_Examples_MassExchange.fmu > Buildings_latest_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result Buildings_latest_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange_res.mat does not exist to compare? outputFormat=mat