Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Examples.Tutorial.SpaceCooling.System1.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.Examples.Tutorial.SpaceCooling.System1,fileNamePrefix="Buildings_10_Buildings_Examples_Tutorial_SpaceCooling_System1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Examples.Tutorial.SpaceCooling.System1,fileNamePrefix="Buildings_10_Buildings_Examples_Tutorial_SpaceCooling_System1",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.001296/0.001296, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001413/0.001413, allocations: 198.6 kB / 16.53 MB, free: 6.391 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.315/1.315, allocations: 222.9 MB / 240.2 MB, free: 4.41 MB / 190.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.518/2.518, allocations: 437 MB / 0.7104 GB, free: 4.988 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0013/0.0013, allocations: 67.91 kB / 0.8693 GB, free: 4.523 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5671/0.5684, allocations: 151.6 MB / 1.017 GB, free: 2.449 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.Tutorial.SpaceCooling.System1): time 0.1502/0.7186, allocations: 162.4 MB / 1.176 GB, free: 15.42 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.004166/0.7228, allocations: 2.916 MB / 1.179 GB, free: 12.49 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006505/0.7235, allocations: 15.88 kB / 1.179 GB, free: 12.48 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 0.000811/0.7244, allocations: 206.8 kB / 1.179 GB, free: 12.27 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 0.002111/0.7265, allocations: 0.7661 MB / 1.18 GB, free: 11.5 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007651/0.7273, allocations: 349.6 kB / 1.18 GB, free: 11.16 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 0.001166/0.7285, allocations: 0.9351 MB / 1.181 GB, free: 10.22 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004626/0.7289, allocations: 254.3 kB / 1.181 GB, free: 9.973 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0007323/0.7297, allocations: 334.6 kB / 1.182 GB, free: 9.645 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0008319/0.7305, allocations: 288.8 kB / 1.182 GB, free: 9.363 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 7.49e-05/0.7306, allocations: 36 kB / 1.182 GB, free: 9.328 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001226/0.7318, allocations: 0.643 MB / 1.183 GB, free: 8.684 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 0.0001755/0.732, allocations: 131.6 kB / 1.183 GB, free: 8.555 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 0.000277/0.7323, allocations: 215 kB / 1.183 GB, free: 8.344 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.001158/0.7335, allocations: 0.7401 MB / 1.184 GB, free: 7.602 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 4.929e-06/0.7335, allocations: 3.938 kB / 1.184 GB, free: 7.598 MB / 0.9356 GB Notification: Performance of FrontEnd: time 1.462e-06/0.7335, allocations: 0 / 1.184 GB, free: 7.598 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 1.395e-05/0.7335, allocations: 0 / 1.184 GB, free: 7.598 MB / 0.9356 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 59 * Number of variables: 59 Notification: Performance of Generate backend data structure: time 0.001182/0.7347, allocations: 0.7088 MB / 1.184 GB, free: 6.84 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 3.909e-05/0.7348, allocations: 8.031 kB / 1.184 GB, free: 6.832 MB / 0.9356 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.735e-05/0.7348, allocations: 62.53 kB / 1.184 GB, free: 6.762 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001057/0.7359, allocations: 139.4 kB / 1.185 GB, free: 6.625 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005651/0.7365, allocations: 406.3 kB / 1.185 GB, free: 6.188 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.744e-05/0.7365, allocations: 16.56 kB / 1.185 GB, free: 6.172 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.024e-05/0.7366, allocations: 27.94 kB / 1.185 GB, free: 6.145 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004229/0.737, allocations: 275.7 kB / 1.185 GB, free: 5.863 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.463e-05/0.737, allocations: 4 kB / 1.185 GB, free: 5.859 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.092e-05/0.737, allocations: 12 kB / 1.185 GB, free: 5.848 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.084e-05/0.7371, allocations: 12.5 kB / 1.185 GB, free: 5.836 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003202/0.7374, allocations: 202.1 kB / 1.185 GB, free: 5.637 MB / 0.9356 GB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001596/0.739, allocations: 1.33 MB / 1.187 GB, free: 4.164 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003533/0.7394, allocations: 186.9 kB / 1.187 GB, free: 3.973 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000127/0.7395, allocations: 88.83 kB / 1.187 GB, free: 3.883 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 1.173e-05/0.7395, allocations: 4 kB / 1.187 GB, free: 3.879 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.125e-05/0.7395, allocations: 34.56 kB / 1.187 GB, free: 3.836 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=19): time 1.312e-06/0.7396, allocations: 0 / 1.187 GB, free: 3.836 MB / 0.9356 GB Notification: Performance of matching and sorting (n=19): time 0.000906/0.7405, allocations: 409 kB / 1.187 GB, free: 3.41 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.196e-05/0.7405, allocations: 55.41 kB / 1.187 GB, free: 3.344 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002862/0.7408, allocations: 296.6 kB / 1.188 GB, free: 3.043 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 2.583e-05/0.7408, allocations: 29.7 kB / 1.188 GB, free: 3.008 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001147/0.741, allocations: 196 kB / 1.188 GB, free: 2.812 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 6.282e-05/0.741, allocations: 74.94 kB / 1.188 GB, free: 2.738 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.724e-05/0.7411, allocations: 41.7 kB / 1.188 GB, free: 2.691 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0001083/0.7412, allocations: 342.8 kB / 1.188 GB, free: 2.348 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001076/0.7413, allocations: 63.97 kB / 1.188 GB, free: 2.285 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001257/0.7415, allocations: 120.1 kB / 1.189 GB, free: 2.148 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002421/0.7417, allocations: 195.2 kB / 1.189 GB, free: 1.938 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.415e-06/0.7417, allocations: 0 / 1.189 GB, free: 1.938 MB / 0.9356 GB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0003559/0.7421, allocations: 250.8 kB / 1.189 GB, free: 1.688 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 1.728e-05/0.7421, allocations: 13.91 kB / 1.189 GB, free: 1.676 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.871e-06/0.7421, allocations: 0 / 1.189 GB, free: 1.676 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.676e-05/0.7421, allocations: 4 kB / 1.189 GB, free: 1.672 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001931/0.7423, allocations: 47.86 kB / 1.189 GB, free: 1.625 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.562e-06/0.7424, allocations: 0 / 1.189 GB, free: 1.625 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002809/0.7426, allocations: 23.78 kB / 1.189 GB, free: 1.602 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.538e-05/0.7427, allocations: 8 kB / 1.189 GB, free: 1.594 MB / 0.9356 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * 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 (26): * Single equations (assignments): 26 * 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.0001428/0.7428, allocations: 157.8 kB / 1.189 GB, free: 1.43 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.669e-05/0.7429, allocations: 35.56 kB / 1.189 GB, free: 1.395 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.49e-05/0.743, allocations: 43.08 kB / 1.189 GB, free: 1.355 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.549e-06/0.743, allocations: 4 kB / 1.189 GB, free: 1.352 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.492e-06/0.743, allocations: 0 / 1.189 GB, free: 1.352 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.508e-06/0.743, allocations: 3.984 kB / 1.189 GB, free: 1.348 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004532/0.7435, allocations: 401.2 kB / 1.19 GB, free: 0.9062 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.134e-06/0.7435, allocations: 0 / 1.19 GB, free: 0.9062 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001862/0.7437, allocations: 43.86 kB / 1.19 GB, free: 0.8633 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002047/0.7439, allocations: 40.83 kB / 1.19 GB, free: 0.8203 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.9e-05/0.7439, allocations: 12 kB / 1.19 GB, free: 0.8086 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001097/0.745, allocations: 1.515 MB / 1.191 GB, free: 15.15 MB / 0.9512 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.282e-06/0.745, allocations: 0 / 1.191 GB, free: 15.15 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005376/0.7456, allocations: 405 kB / 1.192 GB, free: 14.74 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001252/0.7457, allocations: 128.8 kB / 1.192 GB, free: 14.6 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.182e-05/0.7458, allocations: 7.938 kB / 1.192 GB, free: 14.59 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002606/0.746, allocations: 16.05 kB / 1.192 GB, free: 14.57 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.328e-05/0.7461, allocations: 7.984 kB / 1.192 GB, free: 14.57 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.581e-05/0.7461, allocations: 8 kB / 1.192 GB, free: 14.56 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 0.000199/0.7463, allocations: 215.1 kB / 1.192 GB, free: 14.35 MB / 0.9512 GB Notification: Performance of sort global known variables: time 1.3e-07/0.7463, allocations: 0 / 1.192 GB, free: 14.35 MB / 0.9512 GB Notification: Performance of remove unused functions: time 0.0003926/0.7467, allocations: 107.8 kB / 1.192 GB, free: 14.25 MB / 0.9512 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (vol.dynBal.medium.Xi[1],vol.dynBal.U,vol.dynBal.m) * 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 (17): * Single equations (assignments): 16 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0008047/0.7475, allocations: 0.9454 MB / 1.193 GB, free: 13.27 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.0003119/0.7478, allocations: 183.8 kB / 1.193 GB, free: 13.09 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 2.735e-06/0.7478, allocations: 0 / 1.193 GB, free: 13.09 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 0.0002787/0.7481, allocations: 194.6 kB / 1.193 GB, free: 12.89 MB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009471/0.7491, allocations: 203 kB / 1.194 GB, free: 12.7 MB / 0.9512 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003194/0.7523, allocations: 2.939 MB / 1.196 GB, free: 9.645 MB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003111/0.7526, allocations: 0.7996 MB / 1.197 GB, free: 8.82 MB / 0.9512 GB Notification: Performance of simCode: alias equations: time 0.0002669/0.7529, allocations: 55.25 kB / 1.197 GB, free: 8.77 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001433/0.753, allocations: 103.4 kB / 1.197 GB, free: 8.668 MB / 0.9512 GB Notification: Performance of SimCode: time 4.31e-07/0.753, allocations: 0 / 1.197 GB, free: 8.668 MB / 0.9512 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02762/0.7807, allocations: 8.909 MB / 1.206 GB, free: 15.96 MB / 0.9669 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.737/9.518, allocations: 6.125 kB / 1.206 GB, free: 15.96 MB / 0.9669 GB (rm -f Buildings_10_Buildings.Examples.Tutorial.SpaceCooling.System1.pipe ; mkfifo Buildings_10_Buildings.Examples.Tutorial.SpaceCooling.System1.pipe ; head -c 1048576 < Buildings_10_Buildings.Examples.Tutorial.SpaceCooling.System1.pipe >> ../files/Buildings_10_Buildings.Examples.Tutorial.SpaceCooling.System1.sim & python3 -m fmpy simulate --output-file Buildings_10_Buildings.Examples.Tutorial.SpaceCooling.System1_res.csv --start-time 0 --stop-time 10800 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 4.32 Buildings_10_Buildings_Examples_Tutorial_SpaceCooling_System1.fmu > Buildings_10_Buildings.Examples.Tutorial.SpaceCooling.System1.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Examples.Tutorial.SpaceCooling.System1_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Examples_Tutorial_SpaceCooling_System1.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Examples.Tutorial.SpaceCooling.System1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches