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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-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: translateModel(Buildings.Fluid.SolarCollectors.BaseClasses.Examples.EN12975HeatLoss,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|heaLos.QLos_flow.1.|heaLos.QLos_flow.2.|heaLos.QLos_flow.3.|TEnv.y|T1.y|T2.y|T3.y",fileNamePrefix="Buildings_latest_Buildings.Fluid.SolarCollectors.BaseClasses.Examples.EN12975HeatLoss") translateModel(Buildings.Fluid.SolarCollectors.BaseClasses.Examples.EN12975HeatLoss,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|heaLos.QLos_flow.1.|heaLos.QLos_flow.2.|heaLos.QLos_flow.3.|TEnv.y|T1.y|T2.y|T3.y",fileNamePrefix="Buildings_latest_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.001478/0.001478, allocations: 108 kB / 15.61 MB, free: 152 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.001779/0.001779, allocations: 196.5 kB / 16.53 MB, free: 6.664 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.373/1.373, allocations: 222.9 MB / 240.2 MB, free: 4.375 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.729/2.729, allocations: 472.6 MB / 0.7451 GB, free: 4.637 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001281/0.001281, allocations: 65.22 kB / 0.9121 GB, free: 33.39 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3708/0.3721, allocations: 159.9 MB / 1.068 GB, free: 10.42 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.SolarCollectors.BaseClasses.Examples.EN12975HeatLoss): time 0.005186/0.3773, allocations: 1.872 MB / 1.07 GB, free: 8.535 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.007602/0.3849, allocations: 3.599 MB / 1.074 GB, free: 4.918 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001345/0.3851, allocations: 4 kB / 1.074 GB, free: 4.914 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.001243/0.3864, allocations: 183.1 kB / 1.074 GB, free: 4.738 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.000366/0.3868, allocations: 83.45 kB / 1.074 GB, free: 4.656 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001308/0.3869, allocations: 23.97 kB / 1.074 GB, free: 4.633 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.000751/0.3877, allocations: 271.1 kB / 1.074 GB, free: 4.367 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001426/0.3879, allocations: 29.48 kB / 1.074 GB, free: 4.34 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002126/0.3881, allocations: 79.7 kB / 1.074 GB, free: 4.262 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002212/0.3883, allocations: 79.61 kB / 1.074 GB, free: 4.184 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 5.765e-05/0.3884, allocations: 8 kB / 1.074 GB, free: 4.176 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001623/0.3886, allocations: 27.98 kB / 1.074 GB, free: 4.148 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 0.0001172/0.3887, allocations: 51.81 kB / 1.074 GB, free: 4.098 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.0001686/0.3889, allocations: 87.42 kB / 1.074 GB, free: 4.012 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.000392/0.3893, allocations: 191.2 kB / 1.075 GB, free: 3.824 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 7.935e-06/0.3893, allocations: 4 kB / 1.075 GB, free: 3.82 MB / 0.8262 GB Notification: Performance of FrontEnd: time 2.235e-06/0.3894, allocations: 0 / 1.075 GB, free: 3.82 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 8.476e-06/0.3894, allocations: 0 / 1.075 GB, free: 3.82 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.001497/0.3909, allocations: 0.531 MB / 1.075 GB, free: 3.242 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 5.395e-05/0.3909, allocations: 12.03 kB / 1.075 GB, free: 3.23 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001013/0.3911, allocations: 28.59 kB / 1.075 GB, free: 3.203 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005494/0.3916, allocations: 247.7 kB / 1.075 GB, free: 2.922 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.193e-05/0.3917, allocations: 384 / 1.075 GB, free: 2.922 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.126e-05/0.3917, allocations: 8.375 kB / 1.075 GB, free: 2.914 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006691/0.3924, allocations: 151.2 kB / 1.076 GB, free: 2.762 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.084e-05/0.3924, allocations: 0 / 1.076 GB, free: 2.762 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.903e-05/0.3925, allocations: 4 kB / 1.076 GB, free: 2.758 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.892e-05/0.3925, allocations: 11.98 kB / 1.076 GB, free: 2.746 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008719/0.3934, allocations: 139.9 kB / 1.076 GB, free: 2.609 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001221/0.3947, allocations: 460.4 kB / 1.076 GB, free: 2.109 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008339/0.3955, allocations: 178.4 kB / 1.076 GB, free: 1.926 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005377/0.3961, allocations: 108.8 kB / 1.076 GB, free: 1.816 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 2.723e-05/0.3961, allocations: 0 / 1.076 GB, free: 1.816 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.817e-05/0.3962, allocations: 34.56 kB / 1.076 GB, free: 1.773 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=13): time 2.124e-06/0.3962, allocations: 0 / 1.076 GB, free: 1.773 MB / 0.8262 GB Notification: Performance of matching and sorting (n=13): time 0.001644/0.3978, allocations: 289.7 kB / 1.077 GB, free: 1.484 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.211e-05/0.3979, allocations: 63.34 kB / 1.077 GB, free: 1.41 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003621/0.3983, allocations: 242.7 kB / 1.077 GB, free: 1.164 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 3.782e-05/0.3983, allocations: 29.7 kB / 1.077 GB, free: 1.129 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001414/0.3985, allocations: 136 kB / 1.077 GB, free: 0.9922 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 8.326e-05/0.3986, allocations: 43.31 kB / 1.077 GB, free: 0.9492 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001377/0.3987, allocations: 33.69 kB / 1.077 GB, free: 0.9102 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0002039/0.399, allocations: 334.8 kB / 1.078 GB, free: 0.5742 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004539/0.3994, allocations: 79.92 kB / 1.078 GB, free: 0.4961 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004726/0.3999, allocations: 71.94 kB / 1.078 GB, free: 436 kB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009187/0.4009, allocations: 168.1 kB / 1.078 GB, free: 268 kB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.316e-06/0.4009, allocations: 0 / 1.078 GB, free: 268 kB / 0.8262 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.001109/0.402, allocations: 217.3 kB / 1.078 GB, free: 44 kB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 2.507e-05/0.4021, allocations: 11.92 kB / 1.078 GB, free: 32 kB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.536e-06/0.4021, allocations: 0 / 1.078 GB, free: 32 kB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.982e-05/0.4021, allocations: 0 / 1.078 GB, free: 32 kB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005187/0.4026, allocations: 36.02 kB / 1.078 GB, free: 15.99 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.096e-05/0.4027, allocations: 4 kB / 1.078 GB, free: 15.99 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003041/0.403, allocations: 19.84 kB / 1.078 GB, free: 15.97 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.69e-05/0.403, allocations: 3.984 kB / 1.078 GB, free: 15.97 MB / 0.8419 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.0001907/0.4032, allocations: 139.3 kB / 1.078 GB, free: 15.82 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.216e-05/0.4033, allocations: 19.72 kB / 1.078 GB, free: 15.8 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001048/0.4035, allocations: 37.81 kB / 1.078 GB, free: 15.77 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.104e-06/0.4035, allocations: 8 kB / 1.078 GB, free: 15.76 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.006e-06/0.4035, allocations: 0 / 1.078 GB, free: 15.76 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.789e-06/0.4035, allocations: 7.875 kB / 1.078 GB, free: 15.75 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005357/0.4041, allocations: 273.4 kB / 1.079 GB, free: 15.44 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.455e-06/0.4041, allocations: 0 / 1.079 GB, free: 15.44 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004308/0.4045, allocations: 35.95 kB / 1.079 GB, free: 15.4 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.398e-06/0.4046, allocations: 0 / 1.079 GB, free: 15.4 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.122e-05/0.4046, allocations: 12 kB / 1.079 GB, free: 15.39 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.846e-06/0.4046, allocations: 0 / 1.079 GB, free: 15.39 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.615e-06/0.4046, allocations: 4 kB / 1.079 GB, free: 15.39 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001193/0.4058, allocations: 315.1 kB / 1.079 GB, free: 15.06 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001924/0.406, allocations: 112.8 kB / 1.079 GB, free: 14.93 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.769e-05/0.4061, allocations: 4 kB / 1.079 GB, free: 14.93 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003733/0.4065, allocations: 19.97 kB / 1.079 GB, free: 14.91 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.234e-05/0.4066, allocations: 11.98 kB / 1.079 GB, free: 14.9 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.294e-05/0.4067, allocations: 4 kB / 1.079 GB, free: 14.89 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.0002905/0.407, allocations: 178 kB / 1.079 GB, free: 14.72 MB / 0.8419 GB Notification: Performance of sort global known variables: time 3.9e-07/0.407, allocations: 0 / 1.079 GB, free: 14.72 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0005648/0.4076, allocations: 47.94 kB / 1.079 GB, free: 14.67 MB / 0.8419 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.0002532/0.4078, allocations: 103.8 kB / 1.079 GB, free: 14.56 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.001063/0.4089, allocations: 195.8 kB / 1.08 GB, free: 14.37 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 3.346e-06/0.4089, allocations: 0 / 1.08 GB, free: 14.37 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0005058/0.4095, allocations: 91.88 kB / 1.08 GB, free: 14.28 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008376/0.4103, allocations: 55.88 kB / 1.08 GB, free: 14.23 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001563/0.4119, allocations: 473.7 kB / 1.08 GB, free: 13.75 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005794/0.4125, allocations: 0.7589 MB / 1.081 GB, free: 12.96 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 0.0003824/0.4129, allocations: 49.38 kB / 1.081 GB, free: 12.91 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001019/0.413, allocations: 23.42 kB / 1.081 GB, free: 12.89 MB / 0.8419 GB Notification: Performance of SimCode: time 5.72e-07/0.413, allocations: 0 / 1.081 GB, free: 12.89 MB / 0.8419 GB Notification: Performance of Templates: time 0.005995/0.419, allocations: 2.47 MB / 1.083 GB, free: 10.47 MB / 0.8419 GB make -j1 -f Buildings_latest_Buildings.Fluid.SolarCollectors.BaseClasses.Examples.EN12975HeatLoss.makefile (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 & ./Buildings_latest_Buildings.Fluid.SolarCollectors.BaseClasses.Examples.EN12975HeatLoss -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > 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/jenkins/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