Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/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_latest_Buildings_Fluid_SolarCollectors_BaseClasses_Examples_EN12975HeatLoss",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.SolarCollectors.BaseClasses.Examples.EN12975HeatLoss,fileNamePrefix="Buildings_latest_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.006023/0.006023, allocations: 100.1 kB / 15.73 MB, free: 6.031 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.001226/0.001226, allocations: 187.7 kB / 16.67 MB, free: 5.965 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.443/1.443, allocations: 222.9 MB / 240.4 MB, free: 4.18 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.919/2.919, allocations: 461.9 MB / 0.7348 GB, free: 14.61 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001462/0.001462, allocations: 71.88 kB / 1.054 GB, free: 7.617 MB / 0.8106 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3232/0.3247, allocations: 157.4 MB / 1.207 GB, free: 10.12 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.SolarCollectors.BaseClasses.Examples.EN12975HeatLoss): time 0.003756/0.3285, allocations: 1.92 MB / 1.209 GB, free: 8.188 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.004535/0.3331, allocations: 3.451 MB / 1.213 GB, free: 4.719 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001496/0.3333, allocations: 0 / 1.213 GB, free: 4.719 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 0.0003343/0.3337, allocations: 59.62 kB / 1.213 GB, free: 4.66 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 0.0005597/0.3342, allocations: 131.2 kB / 1.213 GB, free: 4.531 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 9.646e-05/0.3344, allocations: 31.89 kB / 1.213 GB, free: 4.5 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.0003129/0.3347, allocations: 179.2 kB / 1.213 GB, free: 4.324 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001295/0.3348, allocations: 29.66 kB / 1.213 GB, free: 4.293 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002539/0.3351, allocations: 87.62 kB / 1.213 GB, free: 4.207 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001909/0.3353, allocations: 79.67 kB / 1.213 GB, free: 4.129 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 3.717e-05/0.3353, allocations: 15.94 kB / 1.213 GB, free: 4.113 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001007/0.3354, allocations: 31.91 kB / 1.213 GB, free: 4.082 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 6.766e-05/0.3355, allocations: 31.91 kB / 1.213 GB, free: 4.051 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 9.605e-05/0.3356, allocations: 83.41 kB / 1.213 GB, free: 3.969 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0002521/0.3359, allocations: 175.3 kB / 1.213 GB, free: 3.797 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 4.378e-06/0.3359, allocations: 4 kB / 1.213 GB, free: 3.793 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.303e-06/0.3359, allocations: 0 / 1.213 GB, free: 3.793 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 8.386e-06/0.3359, allocations: 0 / 1.213 GB, free: 3.793 MB / 0.9669 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.001257/0.3372, allocations: 0.4944 MB / 1.214 GB, free: 3.25 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 5.892e-05/0.3372, allocations: 12.62 kB / 1.214 GB, free: 3.238 MB / 0.9669 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.758e-05/0.3373, allocations: 42.73 kB / 1.214 GB, free: 3.188 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.882e-05/0.3374, allocations: 16.75 kB / 1.214 GB, free: 3.172 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005539/0.338, allocations: 250.8 kB / 1.214 GB, free: 2.891 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.059e-05/0.338, allocations: 12.36 kB / 1.214 GB, free: 2.879 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.412e-05/0.3381, allocations: 384 / 1.214 GB, free: 2.879 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005349/0.3386, allocations: 141.5 kB / 1.214 GB, free: 2.734 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.16e-05/0.3386, allocations: 7.938 kB / 1.214 GB, free: 2.727 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.953e-05/0.3387, allocations: 0 / 1.214 GB, free: 2.727 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.314e-05/0.3387, allocations: 12 kB / 1.214 GB, free: 2.715 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007293/0.3395, allocations: 147.7 kB / 1.215 GB, free: 2.57 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00114/0.3406, allocations: 452.5 kB / 1.215 GB, free: 2.078 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006799/0.3413, allocations: 170.5 kB / 1.215 GB, free: 1.902 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004051/0.3417, allocations: 108.8 kB / 1.215 GB, free: 1.793 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 3.082e-05/0.3418, allocations: 0 / 1.215 GB, free: 1.793 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.786e-05/0.3418, allocations: 38.5 kB / 1.215 GB, free: 1.746 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=13): time 1.643e-06/0.3419, allocations: 0 / 1.215 GB, free: 1.746 MB / 0.9669 GB Notification: Performance of matching and sorting (n=13): time 0.001364/0.3432, allocations: 289.7 kB / 1.216 GB, free: 1.457 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.159e-05/0.3433, allocations: 63.33 kB / 1.216 GB, free: 1.383 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003298/0.3436, allocations: 209 kB / 1.216 GB, free: 1.168 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 3.199e-05/0.3437, allocations: 33.7 kB / 1.216 GB, free: 1.129 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001103/0.3438, allocations: 124 kB / 1.216 GB, free: 1.004 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 7.538e-05/0.3439, allocations: 39.45 kB / 1.216 GB, free: 0.9648 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001025/0.344, allocations: 25.7 kB / 1.216 GB, free: 0.9336 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001644/0.3442, allocations: 342.8 kB / 1.216 GB, free: 0.5898 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003751/0.3446, allocations: 71.94 kB / 1.216 GB, free: 0.5195 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003636/0.345, allocations: 79.88 kB / 1.216 GB, free: 452 kB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007236/0.3457, allocations: 170.7 kB / 1.217 GB, free: 280 kB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.206e-06/0.3457, allocations: 0 / 1.217 GB, free: 280 kB / 0.9669 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0008955/0.3466, allocations: 213.3 kB / 1.217 GB, free: 60 kB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 2.214e-05/0.3467, allocations: 12 kB / 1.217 GB, free: 48 kB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.553e-06/0.3467, allocations: 0 / 1.217 GB, free: 48 kB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.776e-05/0.3467, allocations: 0 / 1.217 GB, free: 48 kB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003905/0.3471, allocations: 35.91 kB / 1.217 GB, free: 12 kB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.181e-05/0.3471, allocations: 3.984 kB / 1.217 GB, free: 8 kB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002882/0.3474, allocations: 23.91 kB / 1.217 GB, free: 15.98 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.867e-05/0.3475, allocations: 7.938 kB / 1.217 GB, free: 15.98 MB / 0.9825 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 0.0001679/0.3476, allocations: 129.8 kB / 1.217 GB, free: 15.84 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.118e-05/0.3477, allocations: 23.72 kB / 1.217 GB, free: 15.82 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.936e-05/0.3478, allocations: 21.84 kB / 1.217 GB, free: 15.8 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.659e-06/0.3479, allocations: 0 / 1.217 GB, free: 15.8 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.991e-06/0.3479, allocations: 0 / 1.217 GB, free: 15.8 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.356e-06/0.3479, allocations: 3.984 kB / 1.217 GB, free: 15.79 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004579/0.3484, allocations: 265.5 kB / 1.217 GB, free: 15.48 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.347e-06/0.3484, allocations: 0 / 1.217 GB, free: 15.48 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003544/0.3487, allocations: 35.91 kB / 1.217 GB, free: 15.45 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.873e-06/0.3488, allocations: 8 kB / 1.217 GB, free: 15.44 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.446e-05/0.3488, allocations: 7.984 kB / 1.217 GB, free: 15.43 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.256e-06/0.3488, allocations: 0 / 1.217 GB, free: 15.43 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.573e-06/0.3488, allocations: 3.938 kB / 1.217 GB, free: 15.43 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009508/0.3498, allocations: 320.6 kB / 1.218 GB, free: 15.1 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001751/0.35, allocations: 120.8 kB / 1.218 GB, free: 14.96 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.247e-05/0.35, allocations: 0 / 1.218 GB, free: 14.96 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003111/0.3504, allocations: 11.98 kB / 1.218 GB, free: 14.95 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.67e-05/0.3504, allocations: 15.92 kB / 1.218 GB, free: 14.94 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.36e-05/0.3505, allocations: 7.984 kB / 1.218 GB, free: 14.93 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 0.0002351/0.3507, allocations: 160.4 kB / 1.218 GB, free: 14.77 MB / 0.9825 GB Notification: Performance of sort global known variables: time 3.31e-07/0.3507, allocations: 0 / 1.218 GB, free: 14.77 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.00051/0.3513, allocations: 36 kB / 1.218 GB, free: 14.74 MB / 0.9825 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.001394/0.3527, allocations: 0.858 MB / 1.219 GB, free: 13.86 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0008713/0.3536, allocations: 171.8 kB / 1.219 GB, free: 13.69 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 3.296e-06/0.3536, allocations: 0 / 1.219 GB, free: 13.69 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.0004515/0.354, allocations: 103.9 kB / 1.219 GB, free: 13.59 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006399/0.3547, allocations: 26.48 kB / 1.219 GB, free: 13.56 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003283/0.358, allocations: 2.308 MB / 1.221 GB, free: 11.18 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002901/0.3583, allocations: 0.7275 MB / 1.222 GB, free: 10.42 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 0.0001617/0.3585, allocations: 48.59 kB / 1.222 GB, free: 10.38 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001023/0.3586, allocations: 47.42 kB / 1.222 GB, free: 10.33 MB / 0.9825 GB Notification: Performance of SimCode: time 3.81e-07/0.3586, allocations: 0 / 1.222 GB, free: 10.33 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02236/0.381, allocations: 3.985 MB / 1.226 GB, free: 6.504 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.71/8.091, allocations: 20.83 kB / 1.226 GB, free: 6.484 MB / 0.9825 GB (rm -f Buildings_latest_Buildings.Fluid.SolarCollectors.BaseClasses.Examples.EN12975HeatLoss.pipe ; mkfifo Buildings_latest_Buildings.Fluid.SolarCollectors.BaseClasses.Examples.EN12975HeatLoss.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.SolarCollectors.BaseClasses.Examples.EN12975HeatLoss.pipe >> ../files/Buildings_latest_Buildings.Fluid.SolarCollectors.BaseClasses.Examples.EN12975HeatLoss.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Fluid.SolarCollectors.BaseClasses.Examples.EN12975HeatLoss_res.mat --tempDir=temp_Buildings_latest_Buildings_Fluid_SolarCollectors_BaseClasses_Examples_EN12975HeatLoss_fmu --startTime=0 --stopTime=100 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Fluid_SolarCollectors_BaseClasses_Examples_EN12975HeatLoss.fmu > Buildings_latest_Buildings.Fluid.SolarCollectors.BaseClasses.Examples.EN12975HeatLoss.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.SolarCollectors.BaseClasses.Examples.EN12975HeatLoss_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_SolarCollectors_BaseClasses_Examples_EN12975HeatLoss.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Fluid.SolarCollectors.BaseClasses.Examples.EN12975HeatLoss.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches