Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Media.Examples.SteamProperties.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.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-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.Media.Examples.SteamProperties,fileNamePrefix="Buildings_9_Buildings_Media_Examples_SteamProperties",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Media.Examples.SteamProperties,fileNamePrefix="Buildings_9_Buildings_Media_Examples_SteamProperties",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.001288/0.001288, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001307/0.001307, allocations: 191.7 kB / 16.13 MB, free: 6.691 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.243/1.243, allocations: 222.9 MB / 239.8 MB, free: 4.633 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.174/2.174, allocations: 390.2 MB / 0.6643 GB, free: 0.668 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001261/0.001261, allocations: 59.91 kB / 0.812 GB, free: 14.84 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5622/0.5635, allocations: 140.4 MB / 0.949 GB, free: 9.086 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Examples.SteamProperties): time 0.1617/0.7252, allocations: 134 MB / 1.08 GB, free: 11.59 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.03064/0.7559, allocations: 24.64 MB / 1.104 GB, free: 2.879 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001654/0.7561, allocations: 7.875 kB / 1.104 GB, free: 2.871 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.0003052/0.7564, allocations: 39.8 kB / 1.104 GB, free: 2.832 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.0003425/0.7568, allocations: 83.48 kB / 1.104 GB, free: 2.75 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.01472/0.7716, allocations: 5.283 MB / 1.109 GB, free: 13.48 MB / 0.8731 GB Notification: Performance of NFFlatten.flatten: time 0.0004252/0.772, allocations: 311.8 kB / 1.11 GB, free: 13.18 MB / 0.8731 GB Notification: Performance of NFFlatten.resolveConnections: time 5.701e-05/0.7721, allocations: 13.56 kB / 1.11 GB, free: 13.16 MB / 0.8731 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003525/0.7724, allocations: 123.5 kB / 1.11 GB, free: 13.04 MB / 0.8731 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001684/0.7726, allocations: 95.59 kB / 1.11 GB, free: 12.95 MB / 0.8731 GB Notification: Performance of NFPackage.collectConstants: time 2.848e-05/0.7727, allocations: 8 kB / 1.11 GB, free: 12.94 MB / 0.8731 GB Notification: Performance of NFFlatten.collectFunctions: time 0.01921/0.7919, allocations: 10.85 MB / 1.12 GB, free: 2.074 MB / 0.8731 GB Notification: Performance of NFScalarize.scalarize: time 9.578e-05/0.792, allocations: 35.89 kB / 1.12 GB, free: 2.039 MB / 0.8731 GB Notification: Performance of NFVerifyModel.verify: time 0.0001408/0.7922, allocations: 83.64 kB / 1.121 GB, free: 1.957 MB / 0.8731 GB Notification: Performance of NFConvertDAE.convert: time 0.01296/0.8051, allocations: 6.183 MB / 1.127 GB, free: 11.76 MB / 0.8887 GB Notification: Performance of FrontEnd - DAE generated: time 4.569e-06/0.8051, allocations: 0 / 1.127 GB, free: 11.76 MB / 0.8887 GB Notification: Performance of FrontEnd: time 1.163e-06/0.8052, allocations: 0 / 1.127 GB, free: 11.76 MB / 0.8887 GB Notification: Performance of Transformations before backend: time 6.622e-06/0.8052, allocations: 0 / 1.127 GB, free: 11.76 MB / 0.8887 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 38 * Number of variables: 38 Notification: Performance of Generate backend data structure: time 0.003176/0.8083, allocations: 1.189 MB / 1.128 GB, free: 10.52 MB / 0.8887 GB Notification: Performance of prepare preOptimizeDAE: time 3.975e-05/0.8084, allocations: 8.031 kB / 1.128 GB, free: 10.52 MB / 0.8887 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.593e-05/0.8085, allocations: 58.67 kB / 1.128 GB, free: 10.45 MB / 0.8887 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00111/0.8096, allocations: 84.75 kB / 1.128 GB, free: 10.37 MB / 0.8887 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002601/0.8099, allocations: 232 kB / 1.128 GB, free: 10.1 MB / 0.8887 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.719e-05/0.8099, allocations: 15.94 kB / 1.128 GB, free: 10.09 MB / 0.8887 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.611e-05/0.8099, allocations: 16 kB / 1.128 GB, free: 10.07 MB / 0.8887 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001163/0.8111, allocations: 448.5 kB / 1.129 GB, free: 9.613 MB / 0.8887 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.496e-06/0.8111, allocations: 0 / 1.129 GB, free: 9.613 MB / 0.8887 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.631e-05/0.8112, allocations: 16 kB / 1.129 GB, free: 9.598 MB / 0.8887 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.134e-06/0.8112, allocations: 4 kB / 1.129 GB, free: 9.594 MB / 0.8887 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001237/0.8124, allocations: 0.5931 MB / 1.129 GB, free: 9 MB / 0.8887 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00106/0.8135, allocations: 0.8822 MB / 1.13 GB, free: 8.031 MB / 0.8887 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008732/0.8144, allocations: 251.9 kB / 1.13 GB, free: 7.777 MB / 0.8887 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001395/0.8145, allocations: 72.83 kB / 1.13 GB, free: 7.703 MB / 0.8887 GB Notification: Performance of preOpt evalFunc (simulation): time 0.08346/0.898, allocations: 35.05 MB / 1.165 GB, free: 1.566 MB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.132e-05/0.898, allocations: 42.55 kB / 1.165 GB, free: 1.516 MB / 0.92 GB Notification: Performance of pre-optimization done (n=25): time 1.953e-06/0.8981, allocations: 0 / 1.165 GB, free: 1.516 MB / 0.92 GB Notification: Performance of matching and sorting (n=25): time 0.001812/0.8999, allocations: 419.7 kB / 1.165 GB, free: 1.102 MB / 0.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.149e-05/0.8999, allocations: 59.41 kB / 1.165 GB, free: 1.031 MB / 0.92 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000122/0.9, allocations: 147.4 kB / 1.165 GB, free: 0.8789 MB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 3.743e-05/0.9001, allocations: 29.7 kB / 1.165 GB, free: 0.8438 MB / 0.92 GB Notification: Performance of collectInitialEqns (initialization): time 5.878e-05/0.9002, allocations: 108.4 kB / 1.165 GB, free: 0.7344 MB / 0.92 GB Notification: Performance of collectInitialBindings (initialization): time 7.391e-05/0.9002, allocations: 86.75 kB / 1.165 GB, free: 0.6484 MB / 0.92 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001234/0.9004, allocations: 73.67 kB / 1.165 GB, free: 0.5703 MB / 0.92 GB Notification: Performance of setup shared object (initialization): time 9.303e-05/0.9005, allocations: 322.8 kB / 1.166 GB, free: 252 kB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000189/0.9007, allocations: 87.94 kB / 1.166 GB, free: 164 kB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002269/0.9009, allocations: 129.1 kB / 1.166 GB, free: 16 kB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004471/0.9014, allocations: 215 kB / 1.166 GB, free: 15.79 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.395e-06/0.9014, allocations: 0 / 1.166 GB, free: 15.79 MB / 0.9356 GB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0007308/0.9021, allocations: 298.9 kB / 1.166 GB, free: 15.49 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 1.623e-05/0.9021, allocations: 8 kB / 1.166 GB, free: 15.48 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.572e-06/0.9021, allocations: 0 / 1.166 GB, free: 15.48 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.501e-05/0.9022, allocations: 7.938 kB / 1.166 GB, free: 15.48 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003151/0.9025, allocations: 79.94 kB / 1.167 GB, free: 15.4 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.728e-06/0.9025, allocations: 8.094 kB / 1.167 GB, free: 15.39 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001752/0.9027, allocations: 27.69 kB / 1.167 GB, free: 15.36 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.603e-05/0.9027, allocations: 27.97 kB / 1.167 GB, free: 15.34 MB / 0.9356 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * 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 (30): * Single equations (assignments): 30 * 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 0.0001369/0.9029, allocations: 125.8 kB / 1.167 GB, free: 15.2 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001757/0.9031, allocations: 15.84 kB / 1.167 GB, free: 15.19 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002314/0.9054, allocations: 2.35 MB / 1.169 GB, free: 12.82 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.422e-05/0.9054, allocations: 7.984 kB / 1.169 GB, free: 12.82 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.588e-06/0.9054, allocations: 0 / 1.169 GB, free: 12.82 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.214e-06/0.9054, allocations: 7.922 kB / 1.169 GB, free: 12.81 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003147/0.9086, allocations: 3.427 MB / 1.172 GB, free: 9.277 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.22e-06/0.9086, allocations: 0 / 1.172 GB, free: 9.277 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002892/0.9089, allocations: 55.89 kB / 1.172 GB, free: 9.223 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.739e-06/0.9089, allocations: 7.875 kB / 1.172 GB, free: 9.215 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.142e-05/0.9089, allocations: 8 kB / 1.172 GB, free: 9.207 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.617e-06/0.9089, allocations: 4 kB / 1.172 GB, free: 9.203 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.193e-06/0.9089, allocations: 0 / 1.172 GB, free: 9.203 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008083/0.9098, allocations: 0.5549 MB / 1.173 GB, free: 8.633 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000124/0.9099, allocations: 140.5 kB / 1.173 GB, free: 8.477 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.007e-05/0.9099, allocations: 11.94 kB / 1.173 GB, free: 8.465 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002449/0.9102, allocations: 12 kB / 1.173 GB, free: 8.453 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.066e-05/0.9102, allocations: 15.97 kB / 1.173 GB, free: 8.438 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.977e-05/0.9103, allocations: 15.98 kB / 1.173 GB, free: 8.422 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 7.296e-05/0.9103, allocations: 105 kB / 1.173 GB, free: 8.32 MB / 0.9356 GB Notification: Performance of sort global known variables: time 2.81e-07/0.9104, allocations: 0 / 1.173 GB, free: 8.32 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.003841/0.9142, allocations: 1.628 MB / 1.175 GB, free: 6.691 MB / 0.9356 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 6 ($cse1.phase,$cse1.region,$cse2.phase,$cse2.region,$cse3.phase,$cse3.region) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (28): * Single equations (assignments): 25 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 3 * 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.008868/0.9231, allocations: 2.889 MB / 1.178 GB, free: 3.773 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.0006096/0.9237, allocations: 323.6 kB / 1.178 GB, free: 3.461 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 3.456e-06/0.9237, allocations: 0 / 1.178 GB, free: 3.461 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 0.0003125/0.924, allocations: 241.5 kB / 1.178 GB, free: 3.227 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005687/0.9246, allocations: 70.17 kB / 1.178 GB, free: 3.16 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0055/0.9301, allocations: 3.157 MB / 1.181 GB, free: 15.88 MB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003045/0.9305, allocations: 0.7661 MB / 1.182 GB, free: 15.09 MB / 0.9512 GB Notification: Performance of simCode: alias equations: time 0.0005722/0.931, allocations: 409.2 kB / 1.183 GB, free: 14.69 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002069/0.9313, allocations: 99.38 kB / 1.183 GB, free: 14.59 MB / 0.9512 GB Notification: Performance of SimCode: time 4.9e-07/0.9313, allocations: 0 / 1.183 GB, free: 14.59 MB / 0.9512 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3604/1.292, allocations: 60.63 MB / 1.242 GB, free: 1.988 MB / 0.9981 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002705/1.292, allocations: 184.5 kB / 1.242 GB, free: 1.734 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 5.989/7.281, allocations: 0 / 1.242 GB, free: 1.734 MB / 0.9981 GB (rm -f Buildings_9_Buildings.Media.Examples.SteamProperties.pipe ; mkfifo Buildings_9_Buildings.Media.Examples.SteamProperties.pipe ; head -c 1048576 < Buildings_9_Buildings.Media.Examples.SteamProperties.pipe >> ../files/Buildings_9_Buildings.Media.Examples.SteamProperties.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Media.Examples.SteamProperties_res.mat --tempDir=temp_Buildings_9_Buildings_Media_Examples_SteamProperties_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Media_Examples_SteamProperties.fmu > Buildings_9_Buildings.Media.Examples.SteamProperties.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Media.Examples.SteamProperties_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Media_Examples_SteamProperties.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Media.Examples.SteamProperties.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches