Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc.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: translateModel(Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|criSol.G_TC|criSol.TEnv|criSol.TIn",fileNamePrefix="Buildings_9_Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc") translateModel(Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|criSol.G_TC|criSol.TEnv|criSol.TIn",fileNamePrefix="Buildings_9_Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00106/0.00106, allocations: 91.53 kB / 16.02 MB, free: 80 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.001315/0.001315, allocations: 179 kB / 16.92 MB, free: 6.652 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.393/1.393, allocations: 223.3 MB / 241 MB, free: 5.273 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.476/2.476, allocations: 390.9 MB / 0.667 GB, free: 2.309 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003595/0.0003595, allocations: 8 kB / 0.8166 GB, free: 13.18 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6894/0.6898, allocations: 142.4 MB / 0.9557 GB, free: 7.598 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc): time 0.001514/0.6914, allocations: 1.223 MB / 0.9569 GB, free: 6.629 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0005536/0.6919, allocations: 405.3 kB / 0.9573 GB, free: 6.316 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.755e-05/0.692, allocations: 5.531 kB / 0.9573 GB, free: 6.312 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 1.807e-05/0.692, allocations: 0 / 0.9573 GB, free: 6.312 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 6.991e-05/0.6921, allocations: 17.25 kB / 0.9573 GB, free: 6.297 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001617/0.6923, allocations: 10.8 kB / 0.9573 GB, free: 6.289 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 8.636e-05/0.6923, allocations: 44.2 kB / 0.9574 GB, free: 6.266 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001064/0.6925, allocations: 8.641 kB / 0.9574 GB, free: 6.262 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001004/0.6926, allocations: 24.86 kB / 0.9574 GB, free: 6.246 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 8.172e-05/0.6927, allocations: 30.62 kB / 0.9574 GB, free: 6.223 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.597e-05/0.6927, allocations: 2.156 kB / 0.9574 GB, free: 6.223 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 1.188e-05/0.6927, allocations: 1.188 kB / 0.9574 GB, free: 6.223 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 1.624e-05/0.6927, allocations: 5.109 kB / 0.9574 GB, free: 6.219 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 4.056e-05/0.6928, allocations: 43.11 kB / 0.9575 GB, free: 6.176 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 7.109e-05/0.6928, allocations: 34.81 kB / 0.9575 GB, free: 6.152 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.509e-06/0.6929, allocations: 0 / 0.9575 GB, free: 6.152 MB / 0.7169 GB Notification: Performance of FrontEnd: time 2.114e-06/0.6929, allocations: 0 / 0.9575 GB, free: 6.152 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 9.087e-06/0.6929, allocations: 1.031 kB / 0.9575 GB, free: 6.152 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: 5 * Number of variables: 5 Notification: Performance of Generate backend data structure: time 0.0004332/0.6933, allocations: 356.8 kB / 0.9579 GB, free: 5.777 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.546e-05/0.6934, allocations: 9.094 kB / 0.9579 GB, free: 5.777 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.567e-05/0.6934, allocations: 11.59 kB / 0.9579 GB, free: 5.77 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.995e-05/0.6935, allocations: 172.5 kB / 0.958 GB, free: 5.566 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.428e-05/0.6935, allocations: 9.672 kB / 0.9581 GB, free: 5.559 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.309e-05/0.6935, allocations: 1.75 kB / 0.9581 GB, free: 5.559 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001987/0.6937, allocations: 71.23 kB / 0.9581 GB, free: 5.5 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.236e-06/0.6938, allocations: 0 / 0.9581 GB, free: 5.5 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.071e-05/0.6938, allocations: 0 / 0.9581 GB, free: 5.5 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.749e-06/0.6938, allocations: 1.188 kB / 0.9581 GB, free: 5.5 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001497/0.6939, allocations: 43.09 kB / 0.9582 GB, free: 5.484 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003518/0.6943, allocations: 282.7 kB / 0.9584 GB, free: 5.176 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001245/0.6944, allocations: 42.03 kB / 0.9585 GB, free: 5.145 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.794e-05/0.6945, allocations: 30.88 kB / 0.9585 GB, free: 5.125 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.865e-05/0.6946, allocations: 4 kB / 0.9585 GB, free: 5.121 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.762e-05/0.6946, allocations: 31.53 kB / 0.9585 GB, free: 5.082 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=3): time 1.663e-06/0.6946, allocations: 3.984 kB / 0.9585 GB, free: 5.078 MB / 0.7169 GB Notification: Performance of matching and sorting (n=3): time 0.0003418/0.6949, allocations: 103.9 kB / 0.9586 GB, free: 5.016 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.842e-05/0.695, allocations: 52.69 kB / 0.9587 GB, free: 4.953 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.015e-05/0.6951, allocations: 120.5 kB / 0.9588 GB, free: 4.84 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 9.538e-06/0.6951, allocations: 25.7 kB / 0.9588 GB, free: 4.809 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 3.469e-05/0.6951, allocations: 87.17 kB / 0.9589 GB, free: 4.723 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.979e-05/0.6951, allocations: 11.84 kB / 0.9589 GB, free: 4.711 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.113e-05/0.6952, allocations: 15.02 kB / 0.9589 GB, free: 4.691 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 5.149e-05/0.6952, allocations: 316.2 kB / 0.9592 GB, free: 4.375 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.478e-05/0.6953, allocations: 29.7 kB / 0.9593 GB, free: 4.359 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.24e-05/0.6954, allocations: 22.09 kB / 0.9593 GB, free: 4.352 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001368/0.6955, allocations: 52.08 kB / 0.9593 GB, free: 4.324 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.703e-06/0.6955, allocations: 0 / 0.9593 GB, free: 4.324 MB / 0.7169 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001694/0.6957, allocations: 79.86 kB / 0.9594 GB, free: 4.273 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.487e-05/0.6957, allocations: 5.375 kB / 0.9594 GB, free: 4.273 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.382e-06/0.6957, allocations: 0 / 0.9594 GB, free: 4.273 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.163e-05/0.6957, allocations: 3.938 kB / 0.9594 GB, free: 4.27 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001004/0.6959, allocations: 16.98 kB / 0.9594 GB, free: 4.262 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.132e-06/0.6959, allocations: 0 / 0.9594 GB, free: 4.262 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.254e-05/0.6959, allocations: 13.27 kB / 0.9595 GB, free: 4.254 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.965e-06/0.6959, allocations: 1.781 kB / 0.9595 GB, free: 4.254 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 (3): * Single equations (assignments): 3 * 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.172e-05/0.696, allocations: 115.6 kB / 0.9596 GB, free: 4.133 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.596e-05/0.696, allocations: 3.562 kB / 0.9596 GB, free: 4.133 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.502e-05/0.6961, allocations: 3.906 kB / 0.9596 GB, free: 4.121 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.853e-06/0.6961, allocations: 1.812 kB / 0.9596 GB, free: 4.121 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.268e-06/0.6961, allocations: 4 kB / 0.9596 GB, free: 4.117 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.136e-06/0.6961, allocations: 3.984 kB / 0.9596 GB, free: 4.113 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001274/0.6962, allocations: 175.5 kB / 0.9597 GB, free: 3.902 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.092e-06/0.6962, allocations: 0 / 0.9597 GB, free: 3.902 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.687e-05/0.6963, allocations: 12.3 kB / 0.9598 GB, free: 3.898 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.603e-06/0.6963, allocations: 0 / 0.9598 GB, free: 3.898 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.815e-06/0.6963, allocations: 1.312 kB / 0.9598 GB, free: 3.898 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.352e-06/0.6963, allocations: 0 / 0.9598 GB, free: 3.898 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.92e-07/0.6963, allocations: 0 / 0.9598 GB, free: 3.898 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002015/0.6965, allocations: 189.7 kB / 0.9599 GB, free: 3.73 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.1e-05/0.6966, allocations: 84.11 kB / 0.96 GB, free: 3.633 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.575e-05/0.6966, allocations: 0 / 0.96 GB, free: 3.633 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.222e-05/0.6967, allocations: 12.34 kB / 0.96 GB, free: 3.625 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.053e-05/0.6967, allocations: 10.08 kB / 0.96 GB, free: 3.617 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.629e-06/0.6967, allocations: 1.125 kB / 0.96 GB, free: 3.617 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 4.142e-05/0.6968, allocations: 92.77 kB / 0.9601 GB, free: 3.535 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.1e-07/0.6968, allocations: 0 / 0.9601 GB, free: 3.535 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002173/0.697, allocations: 11.94 kB / 0.9601 GB, free: 3.531 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 (3): * Single equations (assignments): 3 * 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 9.653e-05/0.6971, allocations: 96.69 kB / 0.9602 GB, free: 3.445 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0001916/0.6973, allocations: 51.16 kB / 0.9603 GB, free: 3.426 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.954e-06/0.6973, allocations: 1.781 kB / 0.9603 GB, free: 3.426 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 7.409e-05/0.6974, allocations: 23.83 kB / 0.9603 GB, free: 3.418 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002263/0.6976, allocations: 15.64 kB / 0.9603 GB, free: 3.406 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003418/0.698, allocations: 213.6 kB / 0.9605 GB, free: 3.203 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001051/0.6981, allocations: 0.6824 MB / 0.9612 GB, free: 2.504 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.083e-05/0.6981, allocations: 8.594 kB / 0.9612 GB, free: 2.496 MB / 0.7169 GB Notification: Performance of SimCode: time 2.81e-07/0.6981, allocations: 0 / 0.9612 GB, free: 2.496 MB / 0.7169 GB Notification: Performance of Templates: time 0.002027/0.7002, allocations: 0.6952 MB / 0.9619 GB, free: 2.145 MB / 0.7169 GB make -j1 -f Buildings_9_Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc.makefile (rm -f Buildings_9_Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc.pipe ; mkfifo Buildings_9_Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc.pipe >> ../files/Buildings_9_Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc.sim & ./Buildings_9_Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_SolarCollectors_Controls_BaseClasses_Examples_GCritCalc.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches