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.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-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: 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_9_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_9_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.001602/0.001602, 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.001944/0.001944, allocations: 190.9 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.435/1.435, allocations: 222.9 MB / 239.9 MB, free: 4.559 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.406/2.406, allocations: 390.2 MB / 0.6644 GB, free: 0.582 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.002524/0.002524, allocations: 59.91 kB / 0.812 GB, free: 14.8 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7637/0.7663, allocations: 140.4 MB / 0.9491 GB, free: 9.125 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.SolarCollectors.BaseClasses.Examples.EN12975HeatLoss): time 0.003205/0.7695, allocations: 1.971 MB / 0.951 GB, free: 7.574 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.003321/0.7729, allocations: 3.416 MB / 0.9544 GB, free: 4.781 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001051/0.773, allocations: 1.719 kB / 0.9544 GB, free: 4.781 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0002885/0.7733, allocations: 42.17 kB / 0.9544 GB, free: 4.754 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0005534/0.7739, allocations: 127.9 kB / 0.9545 GB, free: 4.668 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 9.664e-05/0.774, allocations: 27.22 kB / 0.9546 GB, free: 4.645 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0002512/0.7743, allocations: 175.8 kB / 0.9547 GB, free: 4.547 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000126/0.7744, allocations: 28.92 kB / 0.9547 GB, free: 4.531 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002008/0.7746, allocations: 79.92 kB / 0.9548 GB, free: 4.488 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001721/0.7748, allocations: 86.39 kB / 0.9549 GB, free: 4.434 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 2.845e-05/0.7748, allocations: 8.219 kB / 0.9549 GB, free: 4.434 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 8.991e-05/0.7749, allocations: 32.67 kB / 0.9549 GB, free: 4.418 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 6.422e-05/0.775, allocations: 41.8 kB / 0.955 GB, free: 4.387 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 7.045e-05/0.7751, allocations: 80.03 kB / 0.9551 GB, free: 4.332 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001913/0.7753, allocations: 168.6 kB / 0.9552 GB, free: 4.215 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.587e-06/0.7753, allocations: 1.406 kB / 0.9552 GB, free: 4.215 MB / 0.7169 GB Notification: Performance of FrontEnd: time 2.084e-06/0.7753, allocations: 0 / 0.9552 GB, free: 4.215 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 6.783e-06/0.7753, allocations: 0 / 0.9552 GB, free: 4.215 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.000806/0.7761, allocations: 0.4962 MB / 0.9557 GB, free: 3.742 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.298e-05/0.7762, allocations: 14.42 kB / 0.9557 GB, free: 3.738 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.834e-05/0.7762, allocations: 20.25 kB / 0.9557 GB, free: 3.727 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000282/0.7765, allocations: 242.5 kB / 0.956 GB, free: 3.477 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.053e-05/0.7765, allocations: 1.531 kB / 0.956 GB, free: 3.477 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.41e-05/0.7766, allocations: 8.188 kB / 0.956 GB, free: 3.473 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003364/0.7769, allocations: 148.1 kB / 0.9561 GB, free: 3.375 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.486e-06/0.7769, allocations: 0 / 0.9561 GB, free: 3.375 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.651e-05/0.7769, allocations: 3.984 kB / 0.9561 GB, free: 3.371 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.132e-05/0.777, allocations: 12.62 kB / 0.9561 GB, free: 3.367 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004085/0.7774, allocations: 145.2 kB / 0.9563 GB, free: 3.301 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006119/0.778, allocations: 459.9 kB / 0.9567 GB, free: 2.891 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003894/0.7784, allocations: 171 kB / 0.9569 GB, free: 2.793 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000234/0.7787, allocations: 113.9 kB / 0.957 GB, free: 2.734 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.354e-05/0.7787, allocations: 6.344 kB / 0.957 GB, free: 2.73 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.621e-05/0.7787, allocations: 34.5 kB / 0.957 GB, free: 2.688 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=13): time 1.152e-06/0.7787, allocations: 3.344 kB / 0.957 GB, free: 2.688 MB / 0.7169 GB Notification: Performance of matching and sorting (n=13): time 0.0007565/0.7795, allocations: 285.7 kB / 0.9573 GB, free: 2.539 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.34e-05/0.7795, allocations: 52.94 kB / 0.9574 GB, free: 2.477 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001809/0.7797, allocations: 212.6 kB / 0.9576 GB, free: 2.324 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.585e-05/0.7797, allocations: 25.7 kB / 0.9576 GB, free: 2.293 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 5.955e-05/0.7798, allocations: 127.4 kB / 0.9577 GB, free: 2.172 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 4.705e-05/0.7798, allocations: 45.48 kB / 0.9577 GB, free: 2.133 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.327e-05/0.7799, allocations: 34.8 kB / 0.9578 GB, free: 2.102 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 8.364e-05/0.78, allocations: 332.7 kB / 0.9581 GB, free: 1.773 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002128/0.7802, allocations: 74.98 kB / 0.9582 GB, free: 1.738 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002036/0.7804, allocations: 81.53 kB / 0.9582 GB, free: 1.699 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000434/0.7809, allocations: 165.7 kB / 0.9584 GB, free: 1.617 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.013e-06/0.7809, allocations: 0 / 0.9584 GB, free: 1.617 MB / 0.7169 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0005141/0.7814, allocations: 212.9 kB / 0.9586 GB, free: 1.504 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 2.133e-05/0.7814, allocations: 9.328 kB / 0.9586 GB, free: 1.5 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.25e-06/0.7814, allocations: 0 / 0.9586 GB, free: 1.5 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.637e-05/0.7815, allocations: 1.312 kB / 0.9586 GB, free: 1.5 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002632/0.7817, allocations: 35.12 kB / 0.9586 GB, free: 1.488 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.074e-05/0.7818, allocations: 5.125 kB / 0.9587 GB, free: 1.484 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001684/0.7819, allocations: 23.95 kB / 0.9587 GB, free: 1.469 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.94e-05/0.782, allocations: 6.641 kB / 0.9587 GB, free: 1.465 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 0.0001045/0.7821, allocations: 130.2 kB / 0.9588 GB, free: 1.336 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.748e-05/0.7821, allocations: 16.91 kB / 0.9588 GB, free: 1.328 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.103e-05/0.7822, allocations: 26.86 kB / 0.9588 GB, free: 1.309 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.68e-06/0.7822, allocations: 1.75 kB / 0.9588 GB, free: 1.309 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.623e-06/0.7822, allocations: 0 / 0.9588 GB, free: 1.309 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.597e-06/0.7822, allocations: 1.312 kB / 0.9589 GB, free: 1.309 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002678/0.7825, allocations: 273.2 kB / 0.9591 GB, free: 1.035 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.854e-06/0.7825, allocations: 0 / 0.9591 GB, free: 1.035 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002223/0.7827, allocations: 39.22 kB / 0.9591 GB, free: 1.02 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.545e-06/0.7827, allocations: 1.219 kB / 0.9591 GB, free: 1.02 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.668e-05/0.7828, allocations: 1.312 kB / 0.9592 GB, free: 1.02 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.305e-06/0.7828, allocations: 1.281 kB / 0.9592 GB, free: 1.02 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.527e-06/0.7828, allocations: 3.984 kB / 0.9592 GB, free: 1.016 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005592/0.7833, allocations: 327.2 kB / 0.9595 GB, free: 0.7812 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001103/0.7835, allocations: 107.3 kB / 0.9596 GB, free: 0.668 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.748e-05/0.7835, allocations: 5.062 kB / 0.9596 GB, free: 0.6641 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001944/0.7837, allocations: 11.14 kB / 0.9596 GB, free: 0.6602 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.656e-05/0.7838, allocations: 12.83 kB / 0.9596 GB, free: 0.6523 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.329e-05/0.7838, allocations: 2.688 kB / 0.9596 GB, free: 0.6523 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 0.0001311/0.7839, allocations: 158.2 kB / 0.9598 GB, free: 0.5391 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.2e-07/0.7839, allocations: 4 kB / 0.9598 GB, free: 0.5352 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0003029/0.7842, allocations: 43 kB / 0.9598 GB, free: 0.5234 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.0002014/0.7845, allocations: 113.8 kB / 0.9599 GB, free: 436 kB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0005643/0.785, allocations: 188.4 kB / 0.9601 GB, free: 356 kB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.044e-06/0.785, allocations: 5.125 kB / 0.9601 GB, free: 352 kB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0002376/0.7853, allocations: 93.75 kB / 0.9602 GB, free: 312 kB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004391/0.7857, allocations: 24.34 kB / 0.9602 GB, free: 300 kB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008036/0.7865, allocations: 482.9 kB / 0.9607 GB, free: 15.95 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000337/0.7869, allocations: 0.7307 MB / 0.9614 GB, free: 15.23 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 0.0001876/0.7871, allocations: 56.05 kB / 0.9614 GB, free: 15.2 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.166e-05/0.7872, allocations: 19.55 kB / 0.9614 GB, free: 15.19 MB / 0.7325 GB Notification: Performance of SimCode: time 3.51e-07/0.7872, allocations: 0 / 0.9614 GB, free: 15.19 MB / 0.7325 GB Notification: Performance of Templates: time 0.005366/0.7925, allocations: 1.735 MB / 0.9631 GB, free: 14.32 MB / 0.7325 GB make -j1 -f Buildings_9_Buildings.Fluid.SolarCollectors.BaseClasses.Examples.EN12975HeatLoss.makefile (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 & ./Buildings_9_Buildings.Fluid.SolarCollectors.BaseClasses.Examples.EN12975HeatLoss -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > 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/jenkins/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