Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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.1.0-maint.11.x/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.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: translateModel(Buildings.Fluid.SolarCollectors.BaseClasses.Examples.EN12975HeatLoss,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|heaLos.QLos.1.|heaLos.QLos.2.|heaLos.QLos.3.|TEnv.y|T1.y|T2.y|T3.y",fileNamePrefix="Buildings_11_Buildings.Fluid.SolarCollectors.BaseClasses.Examples.EN12975HeatLoss") translateModel(Buildings.Fluid.SolarCollectors.BaseClasses.Examples.EN12975HeatLoss,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|heaLos.QLos.1.|heaLos.QLos.2.|heaLos.QLos.3.|TEnv.y|T1.y|T2.y|T3.y",fileNamePrefix="Buildings_11_Buildings.Fluid.SolarCollectors.BaseClasses.Examples.EN12975HeatLoss") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001559/0.001559, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001602/0.001602, allocations: 189.5 kB / 16.25 MB, free: 6.633 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.432/1.432, allocations: 222.9 MB / 239.9 MB, free: 4.543 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.809/2.809, allocations: 469.8 MB / 0.742 GB, free: 7.629 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001924/0.001924, allocations: 67.77 kB / 0.908 GB, free: 34.54 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3052/0.3071, allocations: 159.2 MB / 1.063 GB, free: 14.63 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.SolarCollectors.BaseClasses.Examples.EN12975HeatLoss): time 0.003689/0.3109, allocations: 1.979 MB / 1.065 GB, free: 12.63 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.004957/0.3159, allocations: 3.412 MB / 1.069 GB, free: 9.207 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001193/0.316, allocations: 0 / 1.069 GB, free: 9.207 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.000296/0.3163, allocations: 43.75 kB / 1.069 GB, free: 9.164 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.0005241/0.3169, allocations: 115.4 kB / 1.069 GB, free: 9.051 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 9.449e-05/0.317, allocations: 31.95 kB / 1.069 GB, free: 9.02 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0002437/0.3172, allocations: 171.2 kB / 1.069 GB, free: 8.852 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001189/0.3174, allocations: 29.67 kB / 1.069 GB, free: 8.824 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002041/0.3176, allocations: 91.56 kB / 1.069 GB, free: 8.734 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001713/0.3178, allocations: 79.67 kB / 1.069 GB, free: 8.656 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 3.05e-05/0.3178, allocations: 12 kB / 1.069 GB, free: 8.645 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 8.565e-05/0.3179, allocations: 27.92 kB / 1.069 GB, free: 8.617 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 6.829e-05/0.318, allocations: 35.84 kB / 1.069 GB, free: 8.582 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 8.982e-05/0.3181, allocations: 79.47 kB / 1.069 GB, free: 8.504 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.000244/0.3183, allocations: 167.4 kB / 1.07 GB, free: 8.34 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 5.29e-06/0.3183, allocations: 0 / 1.07 GB, free: 8.34 MB / 0.8262 GB Notification: Performance of FrontEnd: time 2.365e-06/0.3183, allocations: 0 / 1.07 GB, free: 8.34 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 1.011e-05/0.3183, allocations: 0 / 1.07 GB, free: 8.34 MB / 0.8262 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.001108/0.3195, allocations: 0.5062 MB / 1.07 GB, free: 7.785 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 4.793e-05/0.3195, allocations: 8.031 kB / 1.07 GB, free: 7.777 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.647e-05/0.3196, allocations: 20.66 kB / 1.07 GB, free: 7.758 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004181/0.32, allocations: 258.7 kB / 1.07 GB, free: 7.465 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.049e-05/0.32, allocations: 4.375 kB / 1.07 GB, free: 7.461 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.617e-05/0.3201, allocations: 4.375 kB / 1.07 GB, free: 7.457 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003984/0.3205, allocations: 149.6 kB / 1.07 GB, free: 7.305 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.957e-06/0.3205, allocations: 0 / 1.07 GB, free: 7.305 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.913e-05/0.3205, allocations: 3.984 kB / 1.07 GB, free: 7.301 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.312e-05/0.3205, allocations: 8 kB / 1.071 GB, free: 7.293 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004316/0.321, allocations: 147.8 kB / 1.071 GB, free: 7.148 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007567/0.3218, allocations: 448.5 kB / 1.071 GB, free: 6.66 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004259/0.3222, allocations: 170.5 kB / 1.071 GB, free: 6.484 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002703/0.3225, allocations: 112.7 kB / 1.071 GB, free: 6.371 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 1.801e-05/0.3225, allocations: 0 / 1.071 GB, free: 6.371 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.68e-05/0.3225, allocations: 34.56 kB / 1.071 GB, free: 6.328 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=13): time 8.72e-07/0.3225, allocations: 0 / 1.071 GB, free: 6.328 MB / 0.8262 GB Notification: Performance of matching and sorting (n=13): time 0.000849/0.3234, allocations: 295 kB / 1.072 GB, free: 6.035 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.336e-05/0.3235, allocations: 59.41 kB / 1.072 GB, free: 5.965 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002212/0.3237, allocations: 213 kB / 1.072 GB, free: 5.746 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 2.498e-05/0.3237, allocations: 25.7 kB / 1.072 GB, free: 5.715 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 9.701e-05/0.3238, allocations: 128 kB / 1.072 GB, free: 5.586 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 5.315e-05/0.3239, allocations: 43.36 kB / 1.072 GB, free: 5.543 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.881e-05/0.324, allocations: 33.7 kB / 1.072 GB, free: 5.504 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001627/0.3241, allocations: 334.8 kB / 1.072 GB, free: 5.168 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002253/0.3244, allocations: 79.88 kB / 1.073 GB, free: 5.09 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002151/0.3246, allocations: 73.44 kB / 1.073 GB, free: 5.02 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004492/0.325, allocations: 168.7 kB / 1.073 GB, free: 4.852 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.733e-06/0.325, allocations: 0 / 1.073 GB, free: 4.852 MB / 0.8262 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0005336/0.3256, allocations: 215 kB / 1.073 GB, free: 4.637 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 2.039e-05/0.3256, allocations: 8 kB / 1.073 GB, free: 4.629 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.98e-06/0.3256, allocations: 0 / 1.073 GB, free: 4.629 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.867e-05/0.3256, allocations: 4 kB / 1.073 GB, free: 4.625 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002671/0.3259, allocations: 35.91 kB / 1.073 GB, free: 4.59 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.871e-06/0.3259, allocations: 0 / 1.073 GB, free: 4.59 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001661/0.3261, allocations: 15.89 kB / 1.073 GB, free: 4.574 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.15e-05/0.3261, allocations: 7.984 kB / 1.073 GB, free: 4.566 MB / 0.8262 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.0001352/0.3263, allocations: 137.7 kB / 1.073 GB, free: 4.422 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.58e-05/0.3263, allocations: 19.8 kB / 1.073 GB, free: 4.402 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.851e-05/0.3264, allocations: 25.84 kB / 1.073 GB, free: 4.371 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.645e-06/0.3264, allocations: 4 kB / 1.073 GB, free: 4.367 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.458e-06/0.3264, allocations: 0 / 1.073 GB, free: 4.367 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.849e-06/0.3264, allocations: 3.984 kB / 1.073 GB, free: 4.363 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003317/0.3268, allocations: 269.4 kB / 1.073 GB, free: 4.051 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.273e-06/0.3268, allocations: 0 / 1.073 GB, free: 4.051 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002254/0.327, allocations: 39.84 kB / 1.074 GB, free: 4.012 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.769e-06/0.327, allocations: 4 kB / 1.074 GB, free: 4.008 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.843e-05/0.327, allocations: 7.984 kB / 1.074 GB, free: 4 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.413e-06/0.327, allocations: 4 kB / 1.074 GB, free: 3.996 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.162e-06/0.327, allocations: 0 / 1.074 GB, free: 3.996 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006047/0.3277, allocations: 316.2 kB / 1.074 GB, free: 3.672 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001696/0.3278, allocations: 112.8 kB / 1.074 GB, free: 3.543 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.191e-05/0.3279, allocations: 4 kB / 1.074 GB, free: 3.539 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001913/0.3281, allocations: 15.98 kB / 1.074 GB, free: 3.523 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.208e-05/0.3281, allocations: 7.984 kB / 1.074 GB, free: 3.516 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.695e-05/0.3282, allocations: 11.98 kB / 1.074 GB, free: 3.504 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.0001406/0.3283, allocations: 152.5 kB / 1.074 GB, free: 3.355 MB / 0.8262 GB Notification: Performance of sort global known variables: time 2.034e-06/0.3283, allocations: 0 / 1.074 GB, free: 3.355 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002797/0.3286, allocations: 47.81 kB / 1.074 GB, free: 3.309 MB / 0.8262 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.0001736/0.3288, allocations: 107.2 kB / 1.074 GB, free: 3.195 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0005522/0.3293, allocations: 191.8 kB / 1.074 GB, free: 3.008 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 1.854e-06/0.3293, allocations: 0 / 1.074 GB, free: 3.008 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0002503/0.3296, allocations: 93.25 kB / 1.075 GB, free: 2.918 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004335/0.33, allocations: 40.67 kB / 1.075 GB, free: 2.883 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008356/0.3309, allocations: 466.8 kB / 1.075 GB, free: 2.402 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003632/0.3313, allocations: 0.7275 MB / 1.076 GB, free: 1.648 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 0.0001882/0.3315, allocations: 56.56 kB / 1.076 GB, free: 1.594 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.343e-05/0.3315, allocations: 15.44 kB / 1.076 GB, free: 1.578 MB / 0.8262 GB Notification: Performance of SimCode: time 3e-07/0.3315, allocations: 4 kB / 1.076 GB, free: 1.574 MB / 0.8262 GB Notification: Performance of Templates: time 0.005005/0.3365, allocations: 1.721 MB / 1.077 GB, free: 15.87 MB / 0.8419 GB make -j1 -f Buildings_11_Buildings.Fluid.SolarCollectors.BaseClasses.Examples.EN12975HeatLoss.makefile (rm -f Buildings_11_Buildings.Fluid.SolarCollectors.BaseClasses.Examples.EN12975HeatLoss.pipe ; mkfifo Buildings_11_Buildings.Fluid.SolarCollectors.BaseClasses.Examples.EN12975HeatLoss.pipe ; head -c 1048576 < Buildings_11_Buildings.Fluid.SolarCollectors.BaseClasses.Examples.EN12975HeatLoss.pipe >> ../files/Buildings_11_Buildings.Fluid.SolarCollectors.BaseClasses.Examples.EN12975HeatLoss.sim & ./Buildings_11_Buildings.Fluid.SolarCollectors.BaseClasses.Examples.EN12975HeatLoss -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_11_Buildings.Fluid.SolarCollectors.BaseClasses.Examples.EN12975HeatLoss.pipe 2>&1) diffSimulationResults("Buildings_11_Buildings.Fluid.SolarCollectors.BaseClasses.Examples.EN12975HeatLoss_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Fluid_SolarCollectors_BaseClasses_Examples_EN12975HeatLoss.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Fluid.SolarCollectors.BaseClasses.Examples.EN12975HeatLoss.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches