Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Fluid.SolarCollectors.BaseClasses.Examples.EN12975HeatLoss.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.Fluid.SolarCollectors.BaseClasses.Examples.EN12975HeatLoss,fileNamePrefix="Buildings_9_Buildings_Fluid_SolarCollectors_BaseClasses_Examples_EN12975HeatLoss",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.SolarCollectors.BaseClasses.Examples.EN12975HeatLoss,fileNamePrefix="Buildings_9_Buildings_Fluid_SolarCollectors_BaseClasses_Examples_EN12975HeatLoss",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.001182/0.001182, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001487/0.001487, allocations: 198.1 kB / 16.14 MB, free: 6.711 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.169/1.169, allocations: 222.9 MB / 239.8 MB, free: 4.629 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.027/2.027, allocations: 390.2 MB / 0.6643 GB, free: 0.6016 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001134/0.001134, allocations: 63.91 kB / 0.812 GB, free: 14.77 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4699/0.4711, allocations: 140.4 MB / 0.949 GB, free: 9.207 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.SolarCollectors.BaseClasses.Examples.EN12975HeatLoss): time 0.002112/0.4732, allocations: 1.972 MB / 0.951 GB, free: 7.656 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.002371/0.4756, allocations: 3.427 MB / 0.9543 GB, free: 4.855 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.337e-05/0.4757, allocations: 1.125 kB / 0.9543 GB, free: 4.855 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0001847/0.4759, allocations: 41.09 kB / 0.9544 GB, free: 4.828 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0002892/0.4762, allocations: 125 kB / 0.9545 GB, free: 4.746 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 4.412e-05/0.4762, allocations: 27.8 kB / 0.9545 GB, free: 4.723 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0001454/0.4764, allocations: 180.5 kB / 0.9547 GB, free: 4.625 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 7.493e-05/0.4764, allocations: 32.03 kB / 0.9547 GB, free: 4.605 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001229/0.4766, allocations: 86.17 kB / 0.9548 GB, free: 4.555 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001126/0.4767, allocations: 78.17 kB / 0.9549 GB, free: 4.508 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 2.331e-05/0.4767, allocations: 5.75 kB / 0.9549 GB, free: 4.508 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 6.964e-05/0.4768, allocations: 25.11 kB / 0.9549 GB, free: 4.496 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 4.792e-05/0.4768, allocations: 37.95 kB / 0.9549 GB, free: 4.469 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 6.041e-05/0.4769, allocations: 79.66 kB / 0.955 GB, free: 4.414 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001378/0.4771, allocations: 155.5 kB / 0.9552 GB, free: 4.309 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 2.966e-06/0.4771, allocations: 0 / 0.9552 GB, free: 4.309 MB / 0.7169 GB Notification: Performance of FrontEnd: time 6.51e-07/0.4771, allocations: 4 kB / 0.9552 GB, free: 4.305 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 3.316e-06/0.4771, allocations: 1.312 kB / 0.9552 GB, free: 4.305 MB / 0.7169 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 17 * Number of variables: 17 Notification: Performance of Generate backend data structure: time 0.0006538/0.4777, allocations: 0.4994 MB / 0.9556 GB, free: 3.828 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 2.914e-05/0.4778, allocations: 10.25 kB / 0.9557 GB, free: 3.828 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.791e-05/0.4778, allocations: 37.78 kB / 0.9557 GB, free: 3.785 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.71e-05/0.4778, allocations: 21.06 kB / 0.9557 GB, free: 3.773 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002379/0.4781, allocations: 249.4 kB / 0.956 GB, free: 3.516 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.007e-06/0.4781, allocations: 5.906 kB / 0.956 GB, free: 3.512 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.687e-05/0.4781, allocations: 7.812 kB / 0.956 GB, free: 3.508 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002789/0.4784, allocations: 143.6 kB / 0.9561 GB, free: 3.414 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.231e-06/0.4784, allocations: 0 / 0.9561 GB, free: 3.414 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.315e-05/0.4784, allocations: 1.469 kB / 0.9561 GB, free: 3.414 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.334e-05/0.4785, allocations: 19.17 kB / 0.9561 GB, free: 3.402 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003673/0.4788, allocations: 141.3 kB / 0.9563 GB, free: 3.34 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004941/0.4793, allocations: 456.7 kB / 0.9567 GB, free: 2.934 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003379/0.4797, allocations: 171.7 kB / 0.9569 GB, free: 2.836 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002031/0.4799, allocations: 105.3 kB / 0.957 GB, free: 2.781 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.718e-05/0.4799, allocations: 1.344 kB / 0.957 GB, free: 2.781 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.289e-05/0.4799, allocations: 39.83 kB / 0.957 GB, free: 2.734 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=13): time 1.142e-06/0.4799, allocations: 0 / 0.957 GB, free: 2.734 MB / 0.7169 GB Notification: Performance of matching and sorting (n=13): time 0.0006816/0.4806, allocations: 289.3 kB / 0.9573 GB, free: 2.586 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.884e-05/0.4807, allocations: 56.44 kB / 0.9573 GB, free: 2.52 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001348/0.4808, allocations: 212 kB / 0.9575 GB, free: 2.367 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.244e-05/0.4808, allocations: 30.73 kB / 0.9576 GB, free: 2.332 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 3.897e-05/0.4809, allocations: 120.1 kB / 0.9577 GB, free: 2.219 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 3.04e-05/0.4809, allocations: 47.98 kB / 0.9577 GB, free: 2.176 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.895e-05/0.4809, allocations: 27.39 kB / 0.9577 GB, free: 2.152 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 3.898e-05/0.481, allocations: 339.7 kB / 0.9581 GB, free: 1.816 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001907/0.4812, allocations: 81.12 kB / 0.9581 GB, free: 1.777 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001859/0.4814, allocations: 71.59 kB / 0.9582 GB, free: 1.746 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003699/0.4817, allocations: 168.6 kB / 0.9584 GB, free: 1.664 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.483e-06/0.4818, allocations: 1.094 kB / 0.9584 GB, free: 1.664 MB / 0.7169 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0004386/0.4822, allocations: 215.1 kB / 0.9586 GB, free: 1.547 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 9.678e-06/0.4822, allocations: 4.125 kB / 0.9586 GB, free: 1.547 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.637e-06/0.4822, allocations: 1.375 kB / 0.9586 GB, free: 1.547 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.466e-06/0.4822, allocations: 0 / 0.9586 GB, free: 1.547 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002181/0.4825, allocations: 40.64 kB / 0.9586 GB, free: 1.531 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.99e-06/0.4825, allocations: 0 / 0.9586 GB, free: 1.531 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001436/0.4826, allocations: 24.12 kB / 0.9586 GB, free: 1.516 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.34e-05/0.4826, allocations: 10.62 kB / 0.9587 GB, free: 1.508 MB / 0.7169 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 (13): * Single equations (assignments): 13 * 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 6.821e-05/0.4827, allocations: 131.5 kB / 0.9588 GB, free: 1.379 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.766e-05/0.4828, allocations: 16.06 kB / 0.9588 GB, free: 1.371 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.086e-05/0.4828, allocations: 31.33 kB / 0.9588 GB, free: 1.348 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.884e-06/0.4828, allocations: 1.375 kB / 0.9588 GB, free: 1.348 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.286e-06/0.4828, allocations: 4 kB / 0.9588 GB, free: 1.344 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.485e-06/0.4828, allocations: 1.375 kB / 0.9588 GB, free: 1.344 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001861/0.483, allocations: 267.9 kB / 0.9591 GB, free: 1.074 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.32e-07/0.483, allocations: 1.375 kB / 0.9591 GB, free: 1.074 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001961/0.4832, allocations: 43.27 kB / 0.9591 GB, free: 1.055 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.964e-06/0.4832, allocations: 1.375 kB / 0.9591 GB, free: 1.055 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.303e-05/0.4832, allocations: 5.375 kB / 0.9591 GB, free: 1.051 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.262e-06/0.4832, allocations: 0 / 0.9591 GB, free: 1.051 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.122e-06/0.4833, allocations: 1.375 kB / 0.9591 GB, free: 1.051 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004477/0.4837, allocations: 310.6 kB / 0.9594 GB, free: 0.832 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 5.923e-05/0.4838, allocations: 111.8 kB / 0.9595 GB, free: 0.7148 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.774e-05/0.4838, allocations: 1 kB / 0.9595 GB, free: 0.7148 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001744/0.484, allocations: 10.73 kB / 0.9596 GB, free: 0.7109 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.546e-05/0.484, allocations: 16.78 kB / 0.9596 GB, free: 0.6992 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.162e-05/0.484, allocations: 2.75 kB / 0.9596 GB, free: 0.6992 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 9.16e-05/0.4841, allocations: 161.7 kB / 0.9597 GB, free: 0.582 MB / 0.7169 GB Notification: Performance of sort global known variables: time 6.71e-07/0.4842, allocations: 4 kB / 0.9597 GB, free: 0.5781 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002433/0.4844, allocations: 47.31 kB / 0.9598 GB, free: 0.5625 MB / 0.7169 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 (13): * Single equations (assignments): 13 * 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.0006585/0.4851, allocations: 0.8529 MB / 0.9606 GB, free: 15.81 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0004517/0.4855, allocations: 178.8 kB / 0.9608 GB, free: 15.73 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 1.583e-06/0.4855, allocations: 0 / 0.9608 GB, free: 15.73 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.0002208/0.4858, allocations: 96.91 kB / 0.9609 GB, free: 15.69 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000325/0.4861, allocations: 28.45 kB / 0.9609 GB, free: 15.67 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002739/0.4888, allocations: 2.351 MB / 0.9632 GB, free: 13.87 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000243/0.4891, allocations: 0.731 MB / 0.9639 GB, free: 13.14 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 0.000155/0.4893, allocations: 43.45 kB / 0.964 GB, free: 13.13 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.943e-05/0.4894, allocations: 55.09 kB / 0.964 GB, free: 13.08 MB / 0.7325 GB Notification: Performance of SimCode: time 3.51e-07/0.4894, allocations: 4 kB / 0.964 GB, free: 13.08 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5099/0.9993, allocations: 3.587 MB / 0.9675 GB, free: 11.38 MB / 0.7325 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003079/0.9996, allocations: 226.8 kB / 0.9677 GB, free: 11.12 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.098/3.097, allocations: 0 / 0.9677 GB, free: 11.12 MB / 0.7325 GB (rm -f Buildings_9_Buildings.Fluid.SolarCollectors.BaseClasses.Examples.EN12975HeatLoss.pipe ; mkfifo Buildings_9_Buildings.Fluid.SolarCollectors.BaseClasses.Examples.EN12975HeatLoss.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.SolarCollectors.BaseClasses.Examples.EN12975HeatLoss.pipe >> ../files/Buildings_9_Buildings.Fluid.SolarCollectors.BaseClasses.Examples.EN12975HeatLoss.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Fluid.SolarCollectors.BaseClasses.Examples.EN12975HeatLoss_res.mat --tempDir=temp_Buildings_9_Buildings_Fluid_SolarCollectors_BaseClasses_Examples_EN12975HeatLoss_fmu --startTime=0 --stopTime=100 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Fluid_SolarCollectors_BaseClasses_Examples_EN12975HeatLoss.fmu > Buildings_9_Buildings.Fluid.SolarCollectors.BaseClasses.Examples.EN12975HeatLoss.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.SolarCollectors.BaseClasses.Examples.EN12975HeatLoss_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_SolarCollectors_BaseClasses_Examples_EN12975HeatLoss.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Fluid.SolarCollectors.BaseClasses.Examples.EN12975HeatLoss.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches