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.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.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.001605/0.001604, allocations: 108 kB / 15.6 MB, free: 132 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.002188/0.002188, allocations: 193.8 kB / 16.53 MB, free: 6.391 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.471/1.471, allocations: 222.9 MB / 240.2 MB, free: 4.395 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.39/2.39, allocations: 390.2 MB / 0.6647 GB, free: 440 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001495/0.001495, allocations: 71.89 kB / 0.8125 GB, free: 14.47 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8318/0.8334, allocations: 140.4 MB / 0.9496 GB, free: 9.234 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc): time 0.002815/0.8362, allocations: 1.5 MB / 0.9511 GB, free: 8.051 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.000597/0.8368, allocations: 416.6 kB / 0.9515 GB, free: 7.727 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.22e-05/0.8369, allocations: 0 / 0.9515 GB, free: 7.727 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 3.435e-05/0.8369, allocations: 5.312 kB / 0.9515 GB, free: 7.723 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 4.968e-05/0.837, allocations: 9.297 kB / 0.9515 GB, free: 7.715 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001684/0.8372, allocations: 22.66 kB / 0.9515 GB, free: 7.695 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 8.676e-05/0.8373, allocations: 48.55 kB / 0.9515 GB, free: 7.668 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001182/0.8374, allocations: 21.66 kB / 0.9516 GB, free: 7.652 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 9.597e-05/0.8375, allocations: 28.34 kB / 0.9516 GB, free: 7.633 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 7.706e-05/0.8376, allocations: 24.59 kB / 0.9516 GB, free: 7.617 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.756e-05/0.8376, allocations: 2.75 kB / 0.9516 GB, free: 7.617 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 1.391e-05/0.8376, allocations: 3.688 kB / 0.9516 GB, free: 7.617 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 1.96e-05/0.8376, allocations: 9.188 kB / 0.9516 GB, free: 7.609 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 4.48e-05/0.8377, allocations: 16.95 kB / 0.9516 GB, free: 7.598 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 8.749e-05/0.8378, allocations: 49.22 kB / 0.9517 GB, free: 7.562 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.439e-06/0.8378, allocations: 0 / 0.9517 GB, free: 7.562 MB / 0.7169 GB Notification: Performance of FrontEnd: time 2.325e-06/0.8378, allocations: 1.562 kB / 0.9517 GB, free: 7.562 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 1.034e-05/0.8378, allocations: 4 kB / 0.9517 GB, free: 7.559 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.0004395/0.8383, allocations: 359 kB / 0.952 GB, free: 7.18 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.862e-05/0.8383, allocations: 13.77 kB / 0.952 GB, free: 7.176 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.079e-05/0.8384, allocations: 7.219 kB / 0.9521 GB, free: 7.172 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.551e-05/0.8385, allocations: 172.4 kB / 0.9522 GB, free: 6.969 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.479e-05/0.8385, allocations: 1.594 kB / 0.9522 GB, free: 6.969 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.074e-05/0.8385, allocations: 1.531 kB / 0.9522 GB, free: 6.969 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001539/0.8386, allocations: 67.92 kB / 0.9523 GB, free: 6.91 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.857e-06/0.8387, allocations: 0 / 0.9523 GB, free: 6.91 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.096e-05/0.8387, allocations: 0 / 0.9523 GB, free: 6.91 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.33e-06/0.8387, allocations: 1.688 kB / 0.9523 GB, free: 6.91 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001275/0.8388, allocations: 35.81 kB / 0.9523 GB, free: 6.895 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003292/0.8392, allocations: 270.1 kB / 0.9526 GB, free: 6.598 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001099/0.8393, allocations: 44.47 kB / 0.9526 GB, free: 6.559 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.827e-05/0.8394, allocations: 24.44 kB / 0.9526 GB, free: 6.543 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.805e-05/0.8394, allocations: 0 / 0.9526 GB, free: 6.543 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.019e-05/0.8394, allocations: 32.16 kB / 0.9527 GB, free: 6.504 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=3): time 8.11e-07/0.8394, allocations: 3.938 kB / 0.9527 GB, free: 6.5 MB / 0.7169 GB Notification: Performance of matching and sorting (n=3): time 0.0003073/0.8397, allocations: 96.45 kB / 0.9528 GB, free: 6.434 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.303e-05/0.8398, allocations: 51.41 kB / 0.9528 GB, free: 6.371 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.77e-05/0.8398, allocations: 121.1 kB / 0.9529 GB, free: 6.258 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 9.187e-06/0.8399, allocations: 25.7 kB / 0.953 GB, free: 6.227 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 3.333e-05/0.8399, allocations: 98.28 kB / 0.9531 GB, free: 6.129 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.046e-05/0.8399, allocations: 17.19 kB / 0.9531 GB, free: 6.113 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.973e-05/0.84, allocations: 13.19 kB / 0.9531 GB, free: 6.098 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 5.36e-05/0.84, allocations: 328.2 kB / 0.9534 GB, free: 5.77 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.684e-05/0.8401, allocations: 13.61 kB / 0.9534 GB, free: 5.766 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.49e-05/0.8401, allocations: 17.33 kB / 0.9534 GB, free: 5.758 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001178/0.8403, allocations: 42.48 kB / 0.9535 GB, free: 5.734 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.373e-06/0.8403, allocations: 0 / 0.9535 GB, free: 5.734 MB / 0.7169 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001567/0.8404, allocations: 67.61 kB / 0.9535 GB, free: 5.688 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.244e-05/0.8405, allocations: 8.875 kB / 0.9535 GB, free: 5.684 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.909e-06/0.8405, allocations: 4 kB / 0.9535 GB, free: 5.68 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.613e-05/0.8405, allocations: 0 / 0.9535 GB, free: 5.68 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001017/0.8406, allocations: 15.27 kB / 0.9536 GB, free: 5.672 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.999e-06/0.8406, allocations: 0 / 0.9536 GB, free: 5.672 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.942e-05/0.8407, allocations: 3.906 kB / 0.9536 GB, free: 5.672 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.032e-05/0.8407, allocations: 5.516 kB / 0.9536 GB, free: 5.668 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 5.115e-05/0.8407, allocations: 115.2 kB / 0.9537 GB, free: 5.547 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.8e-05/0.8408, allocations: 6.406 kB / 0.9537 GB, free: 5.543 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.459e-05/0.8408, allocations: 13.52 kB / 0.9537 GB, free: 5.523 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.563e-06/0.8408, allocations: 0.8438 kB / 0.9537 GB, free: 5.523 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.008e-06/0.8408, allocations: 1.406 kB / 0.9537 GB, free: 5.523 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.908e-06/0.8408, allocations: 3.984 kB / 0.9537 GB, free: 5.52 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001265/0.841, allocations: 178 kB / 0.9539 GB, free: 5.305 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.52e-07/0.841, allocations: 1.406 kB / 0.9539 GB, free: 5.305 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.584e-05/0.841, allocations: 5.594 kB / 0.9539 GB, free: 5.305 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.473e-06/0.841, allocations: 1.406 kB / 0.9539 GB, free: 5.305 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.596e-06/0.8411, allocations: 3.984 kB / 0.9539 GB, free: 5.301 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.434e-06/0.8411, allocations: 1.375 kB / 0.9539 GB, free: 5.301 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.082e-06/0.8411, allocations: 7.938 kB / 0.9539 GB, free: 5.293 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001841/0.8413, allocations: 170.4 kB / 0.9541 GB, free: 5.137 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.215e-05/0.8413, allocations: 82.47 kB / 0.9541 GB, free: 5.039 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.526e-05/0.8413, allocations: 0 / 0.9541 GB, free: 5.039 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.886e-05/0.8414, allocations: 3.75 kB / 0.9541 GB, free: 5.039 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.542e-05/0.8414, allocations: 9.047 kB / 0.9541 GB, free: 5.031 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.398e-06/0.8415, allocations: 5.188 kB / 0.9541 GB, free: 5.027 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 3.35e-05/0.8415, allocations: 92.73 kB / 0.9542 GB, free: 4.945 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.1e-07/0.8415, allocations: 0 / 0.9542 GB, free: 4.945 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002351/0.8417, allocations: 7.594 kB / 0.9542 GB, free: 4.945 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.325e-05/0.8418, allocations: 96.69 kB / 0.9543 GB, free: 4.859 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0001911/0.842, allocations: 38.97 kB / 0.9544 GB, free: 4.844 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.404e-06/0.842, allocations: 9.344 kB / 0.9544 GB, free: 4.836 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 6.881e-05/0.8421, allocations: 23.55 kB / 0.9544 GB, free: 4.824 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002622/0.8424, allocations: 5.156 kB / 0.9544 GB, free: 4.82 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000364/0.8428, allocations: 156.9 kB / 0.9546 GB, free: 4.688 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001225/0.8429, allocations: 0.6926 MB / 0.9552 GB, free: 3.977 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 3.239e-05/0.8429, allocations: 1.5 kB / 0.9552 GB, free: 3.977 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.81e-05/0.843, allocations: 8.781 kB / 0.9552 GB, free: 3.969 MB / 0.7169 GB Notification: Performance of SimCode: time 2.3e-07/0.843, allocations: 0 / 0.9552 GB, free: 3.969 MB / 0.7169 GB Notification: Performance of Templates: time 0.002438/0.8454, allocations: 468.3 kB / 0.9557 GB, free: 3.727 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/jenkins/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