Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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.MassExchange,fileNamePrefix="Buildings_10_Buildings_Fluid_HeatExchangers_BaseClasses_Examples_MassExchange",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange,fileNamePrefix="Buildings_10_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.009305/0.009305, allocations: 100.8 kB / 15.73 MB, free: 6.016 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.001681/0.001681, allocations: 193 kB / 16.67 MB, free: 5.934 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.328/1.328, allocations: 222.9 MB / 240.4 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.239/2.239, allocations: 437.1 MB / 0.7105 GB, free: 4.332 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001673/0.001673, allocations: 63.91 kB / 1.018 GB, free: 9.832 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5924/0.594, allocations: 151.6 MB / 1.166 GB, free: 3.75 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange): time 0.146/0.7401, allocations: 149 MB / 1.312 GB, free: 14.19 MB / 1.045 GB Notification: Performance of NFInst.instExpressions: time 0.001348/0.7415, allocations: 1.137 MB / 1.313 GB, free: 13.05 MB / 1.045 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.643e-05/0.7416, allocations: 4 kB / 1.313 GB, free: 13.05 MB / 1.045 GB Notification: Performance of NFTyping.typeComponents: time 0.0002763/0.7419, allocations: 55.67 kB / 1.313 GB, free: 12.99 MB / 1.045 GB Notification: Performance of NFTyping.typeBindings: time 0.0006291/0.7425, allocations: 306.6 kB / 1.313 GB, free: 12.69 MB / 1.045 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002802/0.7428, allocations: 167.4 kB / 1.313 GB, free: 12.53 MB / 1.045 GB Notification: Performance of NFFlatten.flatten: time 0.0003705/0.7432, allocations: 215.3 kB / 1.314 GB, free: 12.32 MB / 1.045 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000119/0.7433, allocations: 61.08 kB / 1.314 GB, free: 12.26 MB / 1.045 GB Notification: Performance of NFEvalConstants.evaluate: time 6.639e-05/0.7434, allocations: 51.73 kB / 1.314 GB, free: 12.21 MB / 1.045 GB Notification: Performance of NFSimplifyModel.simplify: time 8.572e-05/0.7435, allocations: 63.69 kB / 1.314 GB, free: 12.14 MB / 1.045 GB Notification: Performance of NFPackage.collectConstants: time 2.393e-05/0.7435, allocations: 12 kB / 1.314 GB, free: 12.13 MB / 1.045 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005317/0.744, allocations: 371.2 kB / 1.314 GB, free: 11.77 MB / 1.045 GB Notification: Performance of NFScalarize.scalarize: time 4.572e-05/0.7441, allocations: 27.92 kB / 1.314 GB, free: 11.74 MB / 1.045 GB Notification: Performance of NFVerifyModel.verify: time 6.051e-05/0.7441, allocations: 63.66 kB / 1.314 GB, free: 11.68 MB / 1.045 GB Notification: Performance of NFConvertDAE.convert: time 0.0004141/0.7446, allocations: 294.7 kB / 1.314 GB, free: 11.39 MB / 1.045 GB Notification: Performance of FrontEnd - DAE generated: time 2.956e-06/0.7446, allocations: 0 / 1.314 GB, free: 11.39 MB / 1.045 GB Notification: Performance of FrontEnd: time 1.072e-06/0.7446, allocations: 4 kB / 1.314 GB, free: 11.39 MB / 1.045 GB Notification: Performance of Transformations before backend: time 4.869e-06/0.7446, allocations: 0 / 1.314 GB, free: 11.39 MB / 1.045 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.0006186/0.7452, allocations: 474.4 kB / 1.315 GB, free: 10.88 MB / 1.045 GB Notification: Performance of prepare preOptimizeDAE: time 3.118e-05/0.7453, allocations: 8.922 kB / 1.315 GB, free: 10.87 MB / 1.045 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.691e-05/0.7453, allocations: 50.73 kB / 1.315 GB, free: 10.81 MB / 1.045 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002388/0.7456, allocations: 40.81 kB / 1.315 GB, free: 10.77 MB / 1.045 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002609/0.7458, allocations: 214.1 kB / 1.315 GB, free: 10.53 MB / 1.045 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.221e-05/0.7458, allocations: 8 kB / 1.315 GB, free: 10.52 MB / 1.045 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.506e-05/0.7459, allocations: 8 kB / 1.315 GB, free: 10.51 MB / 1.045 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002519/0.7461, allocations: 113.6 kB / 1.315 GB, free: 10.39 MB / 1.045 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.675e-06/0.7461, allocations: 0 / 1.315 GB, free: 10.39 MB / 1.045 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.518e-05/0.7462, allocations: 8 kB / 1.315 GB, free: 10.39 MB / 1.045 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.048e-06/0.7462, allocations: 0 / 1.315 GB, free: 10.39 MB / 1.045 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002505/0.7464, allocations: 95.88 kB / 1.315 GB, free: 10.29 MB / 1.045 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006198/0.747, allocations: 464.2 kB / 1.316 GB, free: 9.789 MB / 1.045 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002011/0.7473, allocations: 90.53 kB / 1.316 GB, free: 9.691 MB / 1.045 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001117/0.7474, allocations: 44.95 kB / 1.316 GB, free: 9.645 MB / 1.045 GB Notification: Performance of preOpt evalFunc (simulation): time 1.708e-05/0.7474, allocations: 3.938 kB / 1.316 GB, free: 9.641 MB / 1.045 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.434e-05/0.7474, allocations: 30.56 kB / 1.316 GB, free: 9.602 MB / 1.045 GB Notification: Performance of pre-optimization done (n=7): time 1.102e-06/0.7474, allocations: 3.938 kB / 1.316 GB, free: 9.598 MB / 1.045 GB Notification: Performance of matching and sorting (n=7): time 0.0004051/0.7478, allocations: 137.5 kB / 1.316 GB, free: 9.457 MB / 1.045 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.279e-05/0.7479, allocations: 63.41 kB / 1.316 GB, free: 9.383 MB / 1.045 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001639/0.7481, allocations: 182.3 kB / 1.316 GB, free: 9.195 MB / 1.045 GB Notification: Performance of collectPreVariables (initialization): time 1.618e-05/0.7481, allocations: 25.7 kB / 1.316 GB, free: 9.164 MB / 1.045 GB Notification: Performance of collectInitialEqns (initialization): time 7.241e-05/0.7482, allocations: 116 kB / 1.317 GB, free: 9.047 MB / 1.045 GB Notification: Performance of collectInitialBindings (initialization): time 1.925e-05/0.7482, allocations: 23.84 kB / 1.317 GB, free: 9.023 MB / 1.045 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.392e-05/0.7482, allocations: 21.7 kB / 1.317 GB, free: 8.996 MB / 1.045 GB Notification: Performance of setup shared object (initialization): time 0.000121/0.7484, allocations: 330.8 kB / 1.317 GB, free: 8.664 MB / 1.045 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000104/0.7485, allocations: 31.98 kB / 1.317 GB, free: 8.633 MB / 1.045 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.897e-05/0.7486, allocations: 36.27 kB / 1.317 GB, free: 8.598 MB / 1.045 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001995/0.7488, allocations: 72.77 kB / 1.317 GB, free: 8.523 MB / 1.045 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.433e-06/0.7488, allocations: 0 / 1.317 GB, free: 8.523 MB / 1.045 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0002533/0.7491, allocations: 121.5 kB / 1.317 GB, free: 8.398 MB / 1.045 GB Notification: Performance of prepare postOptimizeDAE: time 1.052e-05/0.7491, allocations: 4 kB / 1.317 GB, free: 8.395 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.276e-06/0.7491, allocations: 4 kB / 1.317 GB, free: 8.391 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.155e-06/0.7491, allocations: 0 / 1.317 GB, free: 8.391 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001174/0.7492, allocations: 23.98 kB / 1.317 GB, free: 8.367 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.198e-06/0.7492, allocations: 0 / 1.317 GB, free: 8.367 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.555e-05/0.7493, allocations: 15.88 kB / 1.317 GB, free: 8.352 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.426e-06/0.7493, allocations: 4 kB / 1.317 GB, free: 8.348 MB / 1.045 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.108e-05/0.7494, allocations: 125.7 kB / 1.317 GB, free: 8.215 MB / 1.045 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.974e-05/0.7495, allocations: 7.953 kB / 1.317 GB, free: 8.207 MB / 1.045 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003028/0.7498, allocations: 135 kB / 1.317 GB, free: 8.07 MB / 1.045 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.744e-06/0.7498, allocations: 0 / 1.317 GB, free: 8.07 MB / 1.045 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.715e-06/0.7498, allocations: 4 kB / 1.317 GB, free: 8.066 MB / 1.045 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.195e-06/0.7498, allocations: 0 / 1.317 GB, free: 8.066 MB / 1.045 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002227/0.75, allocations: 217.5 kB / 1.318 GB, free: 7.805 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.52e-07/0.75, allocations: 0 / 1.318 GB, free: 7.805 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.799e-05/0.7501, allocations: 15.98 kB / 1.318 GB, free: 7.789 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.607e-06/0.7501, allocations: 0 / 1.318 GB, free: 7.789 MB / 1.045 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.976e-06/0.7502, allocations: 11.94 kB / 1.318 GB, free: 7.777 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.865e-06/0.7502, allocations: 4 kB / 1.318 GB, free: 7.773 MB / 1.045 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.41e-07/0.7502, allocations: 3.938 kB / 1.318 GB, free: 7.77 MB / 1.045 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002933/0.7505, allocations: 215.4 kB / 1.318 GB, free: 7.543 MB / 1.045 GB Notification: Performance of postOpt removeConstants (simulation): time 5.51e-05/0.7505, allocations: 88.95 kB / 1.318 GB, free: 7.438 MB / 1.045 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.961e-05/0.7506, allocations: 4 kB / 1.318 GB, free: 7.434 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000109/0.7507, allocations: 11.98 kB / 1.318 GB, free: 7.422 MB / 1.045 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.738e-05/0.7507, allocations: 4 kB / 1.318 GB, free: 7.418 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.243e-06/0.7507, allocations: 4 kB / 1.318 GB, free: 7.414 MB / 1.045 GB Notification: Performance of sorting global known variables: time 0.0001031/0.7508, allocations: 132.2 kB / 1.318 GB, free: 7.285 MB / 1.045 GB Notification: Performance of sort global known variables: time 1e-07/0.7508, allocations: 0 / 1.318 GB, free: 7.285 MB / 1.045 GB Notification: Performance of remove unused functions: time 0.0002202/0.7511, allocations: 27.94 kB / 1.318 GB, free: 7.258 MB / 1.045 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005907/0.7517, allocations: 0.7552 MB / 1.319 GB, free: 6.473 MB / 1.045 GB Notification: Performance of simCode: created initialization part: time 0.0002372/0.7519, allocations: 68.42 kB / 1.319 GB, free: 6.406 MB / 1.045 GB Notification: Performance of simCode: created event and clocks part: time 3.326e-06/0.7519, allocations: 0 / 1.319 GB, free: 6.406 MB / 1.045 GB Notification: Performance of simCode: created simulation system equations: time 0.0001099/0.752, allocations: 47.91 kB / 1.319 GB, free: 6.359 MB / 1.045 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003152/0.7523, allocations: 28.3 kB / 1.319 GB, free: 6.332 MB / 1.045 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001935/0.7543, allocations: 1.76 MB / 1.321 GB, free: 4.488 MB / 1.045 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002899/0.7546, allocations: 0.7118 MB / 1.321 GB, free: 3.75 MB / 1.045 GB Notification: Performance of simCode: alias equations: time 5.844e-05/0.7547, allocations: 16.86 kB / 1.321 GB, free: 3.734 MB / 1.045 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.888e-05/0.7547, allocations: 39.42 kB / 1.321 GB, free: 3.695 MB / 1.045 GB Notification: Performance of SimCode: time 2.2e-07/0.7547, allocations: 0 / 1.321 GB, free: 3.695 MB / 1.045 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 6.397/7.152, allocations: 3.202 MB / 1.325 GB, free: 0.6328 MB / 1.045 GB Notification: Performance of buildModelFMU: Generate platform static: time 15.61/22.76, allocations: 10 kB / 1.325 GB, free: 0.625 MB / 1.045 GB (rm -f Buildings_10_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange.pipe ; mkfifo Buildings_10_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange.pipe ; head -c 1048576 < Buildings_10_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange.pipe >> ../files/Buildings_10_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_10_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange_res.mat --tempDir=temp_Buildings_10_Buildings_Fluid_HeatExchangers_BaseClasses_Examples_MassExchange_fmu --startTime=0 --stopTime=1 --timeout=400 --tolerance=1e-06 Buildings_10_Buildings_Fluid_HeatExchangers_BaseClasses_Examples_MassExchange.fmu > Buildings_10_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Fluid_HeatExchangers_BaseClasses_Examples_MassExchange.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches