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.001031/0.001038, allocations: 84.38 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.001366/0.001366, 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.506/1.506, allocations: 223.3 MB / 240 MB, free: 5.383 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.541/2.541, allocations: 409.4 MB / 0.684 GB, free: 0.9766 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.0004232/0.0004236, allocations: 15.98 kB / 0.8378 GB, free: 6.48 MB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8181/0.8186, allocations: 146.8 MB / 0.9812 GB, free: 6.246 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange): time 0.155/0.9736, allocations: 135.1 MB / 1.113 GB, free: 14.76 MB / 0.8731 GB Notification: Performance of NFInst.instExpressions: time 0.001247/0.9749, allocations: 1.06 MB / 1.114 GB, free: 13.7 MB / 0.8731 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.316e-05/0.975, allocations: 4 kB / 1.114 GB, free: 13.7 MB / 0.8731 GB Notification: Performance of NFTyping.typeComponents: time 0.0002368/0.9752, allocations: 27.81 kB / 1.114 GB, free: 13.67 MB / 0.8731 GB Notification: Performance of NFTyping.typeBindings: time 0.0005593/0.9758, allocations: 203 kB / 1.114 GB, free: 13.47 MB / 0.8731 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002548/0.9761, allocations: 135.5 kB / 1.114 GB, free: 13.34 MB / 0.8731 GB Notification: Performance of NFFlatten.flatten: time 0.0003755/0.9765, allocations: 215.3 kB / 1.115 GB, free: 13.12 MB / 0.8731 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001094/0.9766, allocations: 51.52 kB / 1.115 GB, free: 13.07 MB / 0.8731 GB Notification: Performance of NFEvalConstants.evaluate: time 6.139e-05/0.9767, allocations: 31.86 kB / 1.115 GB, free: 13.04 MB / 0.8731 GB Notification: Performance of NFSimplifyModel.simplify: time 8.179e-05/0.9767, allocations: 55.64 kB / 1.115 GB, free: 12.99 MB / 0.8731 GB Notification: Performance of NFPackage.collectConstants: time 1.364e-05/0.9768, allocations: 4 kB / 1.115 GB, free: 12.98 MB / 0.8731 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004554/0.9772, allocations: 287.5 kB / 1.115 GB, free: 12.7 MB / 0.8731 GB Notification: Performance of NFScalarize.scalarize: time 3.593e-05/0.9773, allocations: 23.84 kB / 1.115 GB, free: 12.68 MB / 0.8731 GB Notification: Performance of NFVerifyModel.verify: time 3.459e-05/0.9773, allocations: 49.64 kB / 1.115 GB, free: 12.62 MB / 0.8731 GB Notification: Performance of NFConvertDAE.convert: time 0.000259/0.9776, allocations: 195.6 kB / 1.115 GB, free: 12.43 MB / 0.8731 GB Notification: Performance of FrontEnd - DAE generated: time 4.358e-06/0.9776, allocations: 3.938 kB / 1.115 GB, free: 12.43 MB / 0.8731 GB Notification: Performance of FrontEnd: time 1.653e-06/0.9776, allocations: 0 / 1.115 GB, free: 12.43 MB / 0.8731 GB Notification: Performance of Transformations before backend: time 5.15e-06/0.9776, allocations: 0 / 1.115 GB, free: 12.43 MB / 0.8731 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.0005842/0.9782, allocations: 458.7 kB / 1.116 GB, free: 11.93 MB / 0.8731 GB Notification: Performance of prepare preOptimizeDAE: time 3.9e-05/0.9783, allocations: 8.031 kB / 1.116 GB, free: 11.93 MB / 0.8731 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.526e-05/0.9783, allocations: 42.55 kB / 1.116 GB, free: 11.88 MB / 0.8731 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002797/0.9786, allocations: 39.78 kB / 1.116 GB, free: 11.84 MB / 0.8731 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002253/0.9788, allocations: 204.5 kB / 1.116 GB, free: 11.6 MB / 0.8731 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.485e-05/0.9789, allocations: 8 kB / 1.116 GB, free: 11.59 MB / 0.8731 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.027e-05/0.9789, allocations: 15.94 kB / 1.116 GB, free: 11.57 MB / 0.8731 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002577/0.9791, allocations: 123.1 kB / 1.116 GB, free: 11.45 MB / 0.8731 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.025e-06/0.9792, allocations: 0 / 1.116 GB, free: 11.45 MB / 0.8731 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.342e-05/0.9792, allocations: 4 kB / 1.116 GB, free: 11.45 MB / 0.8731 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.931e-06/0.9792, allocations: 0 / 1.116 GB, free: 11.45 MB / 0.8731 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002593/0.9795, allocations: 107.9 kB / 1.116 GB, free: 11.34 MB / 0.8731 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006412/0.9801, allocations: 452.2 kB / 1.117 GB, free: 10.85 MB / 0.8731 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002088/0.9803, allocations: 106.5 kB / 1.117 GB, free: 10.73 MB / 0.8731 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001087/0.9804, allocations: 48.88 kB / 1.117 GB, free: 10.68 MB / 0.8731 GB Notification: Performance of preOpt evalFunc (simulation): time 2.431e-05/0.9805, allocations: 0 / 1.117 GB, free: 10.68 MB / 0.8731 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.217e-05/0.9805, allocations: 34.56 kB / 1.117 GB, free: 10.64 MB / 0.8731 GB Notification: Performance of pre-optimization done (n=7): time 8.91e-07/0.9805, allocations: 0 / 1.117 GB, free: 10.64 MB / 0.8731 GB Notification: Performance of matching and sorting (n=7): time 0.0004187/0.9809, allocations: 157.5 kB / 1.117 GB, free: 10.48 MB / 0.8731 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.947e-05/0.981, allocations: 55.34 kB / 1.117 GB, free: 10.41 MB / 0.8731 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001763/0.9812, allocations: 182.1 kB / 1.117 GB, free: 10.23 MB / 0.8731 GB Notification: Performance of collectPreVariables (initialization): time 2.287e-05/0.9812, allocations: 29.7 kB / 1.117 GB, free: 10.19 MB / 0.8731 GB Notification: Performance of collectInitialEqns (initialization): time 7.455e-05/0.9813, allocations: 116 kB / 1.117 GB, free: 10.07 MB / 0.8731 GB Notification: Performance of collectInitialBindings (initialization): time 2.163e-05/0.9813, allocations: 19.72 kB / 1.117 GB, free: 10.05 MB / 0.8731 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.53e-06/0.9813, allocations: 0 / 1.117 GB, free: 10.05 MB / 0.8731 GB Notification: Performance of setup shared object (initialization): time 0.0001228/0.9815, allocations: 326.8 kB / 1.118 GB, free: 9.727 MB / 0.8731 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001088/0.9816, allocations: 39.97 kB / 1.118 GB, free: 9.688 MB / 0.8731 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.804e-05/0.9817, allocations: 44.27 kB / 1.118 GB, free: 9.645 MB / 0.8731 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000107/0.9818, allocations: 35.98 kB / 1.118 GB, free: 9.609 MB / 0.8731 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.683e-06/0.9818, allocations: 4 kB / 1.118 GB, free: 9.605 MB / 0.8731 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0002583/0.9821, allocations: 125.5 kB / 1.118 GB, free: 9.477 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 1.346e-05/0.9821, allocations: 4 kB / 1.118 GB, free: 9.473 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.147e-06/0.9821, allocations: 0 / 1.118 GB, free: 9.473 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.43e-05/0.9821, allocations: 7.922 kB / 1.118 GB, free: 9.465 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001319/0.9823, allocations: 31.92 kB / 1.118 GB, free: 9.434 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.414e-06/0.9823, allocations: 4 kB / 1.118 GB, free: 9.43 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.335e-05/0.9824, allocations: 19.83 kB / 1.118 GB, free: 9.41 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.413e-06/0.9824, allocations: 0 / 1.118 GB, free: 9.41 MB / 0.8731 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 8.665e-05/0.9825, allocations: 121.8 kB / 1.118 GB, free: 9.281 MB / 0.8731 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.826e-05/0.9825, allocations: 15.81 kB / 1.118 GB, free: 9.266 MB / 0.8731 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003044/0.9828, allocations: 139 kB / 1.118 GB, free: 9.129 MB / 0.8731 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.314e-06/0.9828, allocations: 0 / 1.118 GB, free: 9.129 MB / 0.8731 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.228e-06/0.9828, allocations: 0 / 1.118 GB, free: 9.129 MB / 0.8731 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.358e-06/0.9829, allocations: 4 kB / 1.118 GB, free: 9.125 MB / 0.8731 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002173/0.9831, allocations: 221.5 kB / 1.119 GB, free: 8.859 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.022e-06/0.9831, allocations: 0 / 1.119 GB, free: 8.859 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001074/0.9832, allocations: 23.98 kB / 1.119 GB, free: 8.836 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.104e-06/0.9832, allocations: 0 / 1.119 GB, free: 8.836 MB / 0.8731 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.06e-05/0.9832, allocations: 0 / 1.119 GB, free: 8.836 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.313e-06/0.9832, allocations: 3.938 kB / 1.119 GB, free: 8.832 MB / 0.8731 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.01e-07/0.9832, allocations: 0 / 1.119 GB, free: 8.832 MB / 0.8731 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002934/0.9835, allocations: 223.3 kB / 1.119 GB, free: 8.598 MB / 0.8731 GB Notification: Performance of postOpt removeConstants (simulation): time 5.589e-05/0.9836, allocations: 92.91 kB / 1.119 GB, free: 8.488 MB / 0.8731 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.109e-05/0.9836, allocations: 3.938 kB / 1.119 GB, free: 8.484 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001192/0.9838, allocations: 15.98 kB / 1.119 GB, free: 8.469 MB / 0.8731 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.051e-05/0.9838, allocations: 4 kB / 1.119 GB, free: 8.465 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.12e-06/0.9838, allocations: 0 / 1.119 GB, free: 8.465 MB / 0.8731 GB Notification: Performance of sorting global known variables: time 0.0001136/0.9839, allocations: 137.7 kB / 1.119 GB, free: 8.332 MB / 0.8731 GB Notification: Performance of sort global known variables: time 1.4e-07/0.9839, allocations: 4 kB / 1.119 GB, free: 8.328 MB / 0.8731 GB Notification: Performance of remove unused functions: time 0.0002515/0.9842, allocations: 20 kB / 1.119 GB, free: 8.309 MB / 0.8731 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.0006033/0.9848, allocations: 0.763 MB / 1.12 GB, free: 7.52 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.0002565/0.9851, allocations: 87.89 kB / 1.12 GB, free: 7.434 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 2.124e-06/0.9851, allocations: 0 / 1.12 GB, free: 7.434 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 0.0001191/0.9852, allocations: 43.97 kB / 1.12 GB, free: 7.391 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004009/0.9856, allocations: 24.77 kB / 1.12 GB, free: 7.367 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001429/0.9871, allocations: 0.8541 MB / 1.121 GB, free: 6.461 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002831/0.9874, allocations: 0.7121 MB / 1.121 GB, free: 5.723 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 8.236e-05/0.9874, allocations: 12.89 kB / 1.121 GB, free: 5.711 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.413e-05/0.9875, allocations: 35.42 kB / 1.122 GB, free: 5.68 MB / 0.8731 GB Notification: Performance of SimCode: time 2.5e-07/0.9875, allocations: 0 / 1.122 GB, free: 5.68 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01313/1.001, allocations: 2.885 MB / 1.124 GB, free: 2.996 MB / 0.8731 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001868/1.001, allocations: 203.6 kB / 1.125 GB, free: 2.758 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.762/2.763, allocations: 3.938 kB / 1.125 GB, free: 2.754 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