Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0009311/0.0009311, allocations: 80.44 kB / 19.17 MB, free: 0.7461 MB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001004/0.001004, allocations: 165.9 kB / 22.45 MB, free: 2.113 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.8746/0.8746, allocations: 177.1 MB / 202.8 MB, free: 5.738 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo): time 1.687/1.687, allocations: 377.8 MB / 0.6221 GB, free: 8.656 MB / 0.5886 GB " [Timeout remaining time 178] Using package Buildings with version 12.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange,fileNamePrefix="Buildings_12_Buildings_Fluid_HeatExchangers_BaseClasses_Examples_MassExchange",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange,fileNamePrefix="Buildings_12_Buildings_Fluid_HeatExchangers_BaseClasses_Examples_MassExchange",fmuType="me",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.483e-06/1.483e-06, allocations: 0 / 0.981 GB, free: 2.543 MB / 0.9323 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.541e-05/1.689e-05, allocations: 2.281 kB / 0.981 GB, free: 2.539 MB / 0.9323 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange): time 0.5779/0.5779, allocations: 131 MB / 1.109 GB, free: 24.2 MB / 0.9948 GB Notification: Performance of NFInst.instExpressions: time 0.0009771/0.5789, allocations: 1.048 MB / 1.11 GB, free: 23.5 MB / 0.9948 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.495e-05/0.579, allocations: 1.312 kB / 1.11 GB, free: 23.5 MB / 0.9948 GB Notification: Performance of NFTyping.typeComponents: time 0.000307/0.5793, allocations: 49.45 kB / 1.11 GB, free: 23.48 MB / 0.9948 GB Notification: Performance of NFTyping.typeBindings: time 0.000559/0.5798, allocations: 325.6 kB / 1.11 GB, free: 23.32 MB / 0.9948 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002115/0.5801, allocations: 166.6 kB / 1.111 GB, free: 23.23 MB / 0.9948 GB Notification: Performance of NFFlatten.flatten: time 0.0003529/0.5804, allocations: 231.9 kB / 1.111 GB, free: 23.12 MB / 0.9948 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001156/0.5805, allocations: 46.77 kB / 1.111 GB, free: 23.1 MB / 0.9948 GB Notification: Performance of NFEvalConstants.evaluate: time 8.958e-05/0.5806, allocations: 74.05 kB / 1.111 GB, free: 23.07 MB / 0.9948 GB Notification: Performance of NFSimplifyModel.simplify: time 7.337e-05/0.5807, allocations: 48.33 kB / 1.111 GB, free: 23.05 MB / 0.9948 GB Notification: Performance of NFPackage.collectConstants: time 2.034e-05/0.5807, allocations: 12.44 kB / 1.111 GB, free: 23.05 MB / 0.9948 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002911/0.581, allocations: 239.2 kB / 1.111 GB, free: 22.98 MB / 0.9948 GB Notification: Performance of NFScalarize.scalarize: time 5.386e-05/0.5811, allocations: 30.22 kB / 1.111 GB, free: 22.96 MB / 0.9948 GB Notification: Performance of NFVerifyModel.verify: time 4.137e-05/0.5811, allocations: 37.83 kB / 1.111 GB, free: 22.94 MB / 0.9948 GB Notification: Performance of NFConvertDAE.convert: time 0.0003609/0.5815, allocations: 288.7 kB / 1.111 GB, free: 22.84 MB / 0.9948 GB Notification: Performance of FrontEnd - DAE generated: time 4.218e-06/0.5815, allocations: 0 / 1.111 GB, free: 22.84 MB / 0.9948 GB Notification: Performance of FrontEnd: time 1.844e-06/0.5815, allocations: 1 kB / 1.111 GB, free: 22.84 MB / 0.9948 GB Notification: Performance of Transformations before backend: time 5.42e-06/0.5815, allocations: 0 / 1.111 GB, free: 22.84 MB / 0.9948 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.0004844/0.5819, allocations: 402.6 kB / 1.112 GB, free: 22.49 MB / 0.9948 GB Notification: Performance of prepare preOptimizeDAE: time 4.291e-05/0.582, allocations: 9.312 kB / 1.112 GB, free: 22.49 MB / 0.9948 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.263e-05/0.582, allocations: 45.88 kB / 1.112 GB, free: 22.45 MB / 0.9948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002895/0.5823, allocations: 46 kB / 1.112 GB, free: 22.44 MB / 0.9948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002048/0.5825, allocations: 151.3 kB / 1.112 GB, free: 22.29 MB / 0.9948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.188e-05/0.5825, allocations: 13.16 kB / 1.112 GB, free: 22.28 MB / 0.9948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.578e-05/0.5825, allocations: 14 kB / 1.112 GB, free: 22.27 MB / 0.9948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001764/0.5827, allocations: 123.9 kB / 1.112 GB, free: 22.21 MB / 0.9948 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.059e-05/0.5827, allocations: 0.7969 kB / 1.112 GB, free: 22.21 MB / 0.9948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.021e-05/0.5827, allocations: 1.219 kB / 1.112 GB, free: 22.21 MB / 0.9948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.19e-06/0.5827, allocations: 2.719 kB / 1.112 GB, free: 22.21 MB / 0.9948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001546/0.5829, allocations: 95.92 kB / 1.112 GB, free: 22.18 MB / 0.9948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004576/0.5834, allocations: 401.6 kB / 1.113 GB, free: 21.85 MB / 0.9948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001378/0.5835, allocations: 90.22 kB / 1.113 GB, free: 21.8 MB / 0.9948 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.619e-05/0.5836, allocations: 40 kB / 1.113 GB, free: 21.78 MB / 0.9948 GB Notification: Performance of preOpt evalFunc (simulation): time 1.894e-05/0.5836, allocations: 1.156 kB / 1.113 GB, free: 21.78 MB / 0.9948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.448e-05/0.5836, allocations: 32.42 kB / 1.113 GB, free: 21.74 MB / 0.9948 GB Notification: Performance of pre-optimization done (n=7): time 1.092e-06/0.5836, allocations: 0 / 1.113 GB, free: 21.74 MB / 0.9948 GB Notification: Performance of matching and sorting (n=7): time 0.0002822/0.5839, allocations: 149.8 kB / 1.113 GB, free: 21.67 MB / 0.9948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.352e-05/0.5839, allocations: 52.66 kB / 1.113 GB, free: 21.61 MB / 0.9948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000125/0.584, allocations: 182.8 kB / 1.113 GB, free: 21.48 MB / 0.9948 GB Notification: Performance of collectPreVariables (initialization): time 7.695e-06/0.584, allocations: 25.7 kB / 1.113 GB, free: 21.45 MB / 0.9948 GB Notification: Performance of collectInitialEqns (initialization): time 4.98e-05/0.5841, allocations: 115.6 kB / 1.113 GB, free: 21.35 MB / 0.9948 GB Notification: Performance of collectInitialBindings (initialization): time 1.465e-05/0.5841, allocations: 24.59 kB / 1.113 GB, free: 21.33 MB / 0.9948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.699e-05/0.5841, allocations: 20.38 kB / 1.113 GB, free: 21.31 MB / 0.9948 GB Notification: Performance of setup shared object (initialization): time 4.233e-05/0.5842, allocations: 325.7 kB / 1.114 GB, free: 20.99 MB / 0.9948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.828e-05/0.5843, allocations: 36.55 kB / 1.114 GB, free: 20.98 MB / 0.9948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.853e-05/0.5843, allocations: 30.34 kB / 1.114 GB, free: 20.97 MB / 0.9948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001265/0.5844, allocations: 75.05 kB / 1.114 GB, free: 20.94 MB / 0.9948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.925e-06/0.5844, allocations: 0 / 1.114 GB, free: 20.94 MB / 0.9948 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0001683/0.5846, allocations: 135 kB / 1.114 GB, free: 20.86 MB / 0.9948 GB Notification: Performance of prepare postOptimizeDAE: time 1.511e-05/0.5846, allocations: 5.406 kB / 1.114 GB, free: 20.86 MB / 0.9948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.489e-06/0.5846, allocations: 1.156 kB / 1.114 GB, free: 20.86 MB / 0.9948 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.217e-05/0.5846, allocations: 4 kB / 1.114 GB, free: 20.86 MB / 0.9948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.727e-05/0.5847, allocations: 17.8 kB / 1.114 GB, free: 20.86 MB / 0.9948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.681e-06/0.5847, allocations: 1.156 kB / 1.114 GB, free: 20.86 MB / 0.9948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.538e-05/0.5848, allocations: 15.36 kB / 1.114 GB, free: 20.85 MB / 0.9948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.585e-06/0.5848, allocations: 2.594 kB / 1.114 GB, free: 20.85 MB / 0.9948 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 5.41e-05/0.5848, allocations: 120.9 kB / 1.114 GB, free: 20.73 MB / 0.9948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.964e-05/0.5849, allocations: 14.17 kB / 1.114 GB, free: 20.72 MB / 0.9948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002154/0.5851, allocations: 128.3 kB / 1.114 GB, free: 20.65 MB / 0.9948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.855e-06/0.5851, allocations: 1.891 kB / 1.114 GB, free: 20.65 MB / 0.9948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.098e-06/0.5851, allocations: 0 / 1.114 GB, free: 20.65 MB / 0.9948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.697e-06/0.5851, allocations: 1.984 kB / 1.114 GB, free: 20.65 MB / 0.9948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001355/0.5852, allocations: 188.6 kB / 1.114 GB, free: 20.46 MB / 0.9948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.021e-06/0.5852, allocations: 0 / 1.114 GB, free: 20.46 MB / 0.9948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.159e-05/0.5853, allocations: 16.36 kB / 1.114 GB, free: 20.46 MB / 0.9948 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.705e-06/0.5853, allocations: 1.125 kB / 1.114 GB, free: 20.46 MB / 0.9948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.648e-06/0.5853, allocations: 3.109 kB / 1.114 GB, free: 20.46 MB / 0.9948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.763e-06/0.5853, allocations: 0 / 1.114 GB, free: 20.46 MB / 0.9948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.382e-06/0.5853, allocations: 0.6094 kB / 1.114 GB, free: 20.46 MB / 0.9948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001561/0.5854, allocations: 212.2 kB / 1.115 GB, free: 20.3 MB / 0.9948 GB Notification: Performance of postOpt removeConstants (simulation): time 1.777e-05/0.5855, allocations: 17.86 kB / 1.115 GB, free: 20.29 MB / 0.9948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.415e-05/0.5855, allocations: 1.891 kB / 1.115 GB, free: 20.29 MB / 0.9948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.449e-05/0.5855, allocations: 5.953 kB / 1.115 GB, free: 20.29 MB / 0.9948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.517e-05/0.5856, allocations: 8.547 kB / 1.115 GB, free: 20.29 MB / 0.9948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.321e-06/0.5856, allocations: 6.125 kB / 1.115 GB, free: 20.29 MB / 0.9948 GB Notification: Performance of sorting global known variables: time 7.3e-05/0.5856, allocations: 136.9 kB / 1.115 GB, free: 20.19 MB / 0.9948 GB Notification: Performance of sort global known variables: time 6e-08/0.5856, allocations: 1.688 kB / 1.115 GB, free: 20.19 MB / 0.9948 GB Notification: Performance of remove unused functions: time 0.0001673/0.5858, allocations: 31.16 kB / 1.115 GB, free: 20.18 MB / 0.9948 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.0003017/0.5861, allocations: 0.7443 MB / 1.116 GB, free: 19.49 MB / 0.9948 GB Notification: Performance of simCode: created initialization part: time 0.0001661/0.5863, allocations: 78.33 kB / 1.116 GB, free: 19.46 MB / 0.9948 GB Notification: Performance of simCode: created event and clocks part: time 1.272e-06/0.5863, allocations: 0 / 1.116 GB, free: 19.46 MB / 0.9948 GB Notification: Performance of simCode: created simulation system equations: time 6.208e-05/0.5863, allocations: 45.72 kB / 1.116 GB, free: 19.45 MB / 0.9948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002586/0.5866, allocations: 29.52 kB / 1.116 GB, free: 19.44 MB / 0.9948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001292/0.5879, allocations: 1.759 MB / 1.117 GB, free: 18.06 MB / 0.9948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.644e-05/0.588, allocations: 92.03 kB / 1.118 GB, free: 17.99 MB / 0.9948 GB Notification: Performance of simCode: alias equations: time 5.41e-05/0.588, allocations: 18.42 kB / 1.118 GB, free: 17.98 MB / 0.9948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.003e-05/0.5881, allocations: 38.11 kB / 1.118 GB, free: 17.96 MB / 0.9948 GB Notification: Performance of SimCode: time 5.51e-07/0.5881, allocations: 0 / 1.118 GB, free: 17.96 MB / 0.9948 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01687/0.605, allocations: 4.002 MB / 1.122 GB, free: 16.91 MB / 0.9948 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.967/7.572, allocations: 9.688 kB / 1.122 GB, free: 16.91 MB / 0.9948 GB " [Timeout remaining time 292] (rm -f Buildings_12_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange.pipe ; mkfifo Buildings_12_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange.pipe ; head -c 1048576 < Buildings_12_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange.pipe >> ../files/Buildings_12_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_12_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange_res.mat --tempDir=temp_Buildings_12_Buildings_Fluid_HeatExchangers_BaseClasses_Examples_MassExchange_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=400 --tolerance=1e-06 Buildings_12_Buildings_Fluid_HeatExchangers_BaseClasses_Examples_MassExchange.fmu > Buildings_12_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_12_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Fluid_HeatExchangers_BaseClasses_Examples_MassExchange.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 11.660737561993301]