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.001174/0.001174, allocations: 109.3 kB / 16.41 MB, free: 6.492 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.001186/0.001186, allocations: 183 kB / 17.34 MB, free: 5.762 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.411/1.411, allocations: 222.9 MB / 241 MB, free: 15.14 MB / 206.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.278/2.278, allocations: 390.2 MB / 0.6655 GB, free: 0.6445 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001255/0.001255, allocations: 63.88 kB / 0.9515 GB, free: 7.637 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9179/0.9192, allocations: 140.4 MB / 1.089 GB, free: 5.52 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc): time 0.00276/0.922, allocations: 1.505 MB / 1.09 GB, free: 4.477 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.0007186/0.9228, allocations: 423 kB / 1.09 GB, free: 4.184 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.916e-05/0.9228, allocations: 0 / 1.09 GB, free: 4.184 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 3.988e-05/0.9229, allocations: 4.453 kB / 1.09 GB, free: 4.18 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 5.799e-05/0.923, allocations: 11.33 kB / 1.091 GB, free: 4.172 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002125/0.9232, allocations: 12.05 kB / 1.091 GB, free: 4.168 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0001129/0.9233, allocations: 54.42 kB / 1.091 GB, free: 4.141 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001287/0.9234, allocations: 15.44 kB / 1.091 GB, free: 4.133 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001021/0.9235, allocations: 20.05 kB / 1.091 GB, free: 4.125 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 8.923e-05/0.9236, allocations: 28.8 kB / 1.091 GB, free: 4.109 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 1.849e-05/0.9237, allocations: 3.344 kB / 1.091 GB, free: 4.109 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 1.446e-05/0.9237, allocations: 3.438 kB / 1.091 GB, free: 4.109 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 1.742e-05/0.9237, allocations: 3.453 kB / 1.091 GB, free: 4.109 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 3.765e-05/0.9238, allocations: 28.98 kB / 1.091 GB, free: 4.09 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0001167/0.9239, allocations: 44.17 kB / 1.091 GB, free: 4.07 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 4.528e-06/0.9239, allocations: 0 / 1.091 GB, free: 4.07 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.663e-06/0.9239, allocations: 4 kB / 1.091 GB, free: 4.066 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 6.623e-06/0.9239, allocations: 1.156 kB / 1.091 GB, free: 4.066 MB / 0.8575 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.0005039/0.9244, allocations: 363.9 kB / 1.091 GB, free: 3.699 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.305e-05/0.9245, allocations: 9.719 kB / 1.091 GB, free: 3.699 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.619e-05/0.9245, allocations: 7.5 kB / 1.091 GB, free: 3.695 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001071/0.9246, allocations: 181.4 kB / 1.091 GB, free: 3.484 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.979e-06/0.9246, allocations: 1.469 kB / 1.091 GB, free: 3.484 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.625e-05/0.9247, allocations: 2.078 kB / 1.091 GB, free: 3.484 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001751/0.9248, allocations: 63.92 kB / 1.091 GB, free: 3.438 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.182e-05/0.9249, allocations: 0 / 1.091 GB, free: 3.438 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.451e-05/0.9249, allocations: 4 kB / 1.091 GB, free: 3.434 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.69e-06/0.9249, allocations: 1.578 kB / 1.091 GB, free: 3.434 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001481/0.925, allocations: 31.55 kB / 1.091 GB, free: 3.43 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003968/0.9254, allocations: 277.4 kB / 1.092 GB, free: 3.141 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001268/0.9256, allocations: 47.34 kB / 1.092 GB, free: 3.105 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.859e-05/0.9257, allocations: 22.94 kB / 1.092 GB, free: 3.094 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 1.586e-05/0.9257, allocations: 0.7812 kB / 1.092 GB, free: 3.094 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.896e-05/0.9257, allocations: 31.72 kB / 1.092 GB, free: 3.055 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=3): time 1.252e-06/0.9257, allocations: 0 / 1.092 GB, free: 3.055 MB / 0.8575 GB Notification: Performance of matching and sorting (n=3): time 0.0003413/0.9261, allocations: 89.94 kB / 1.092 GB, free: 3.008 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.327e-05/0.9261, allocations: 57.05 kB / 1.092 GB, free: 2.941 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.903e-05/0.9262, allocations: 114.5 kB / 1.092 GB, free: 2.84 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 1.145e-05/0.9262, allocations: 25.7 kB / 1.092 GB, free: 2.809 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 4.229e-05/0.9263, allocations: 99.34 kB / 1.092 GB, free: 2.711 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 1.878e-05/0.9263, allocations: 10.55 kB / 1.092 GB, free: 2.703 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.446e-05/0.9263, allocations: 17.34 kB / 1.092 GB, free: 2.684 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 5.994e-05/0.9264, allocations: 323.4 kB / 1.092 GB, free: 2.363 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.917e-05/0.9265, allocations: 17.08 kB / 1.092 GB, free: 2.359 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.639e-05/0.9265, allocations: 22.45 kB / 1.092 GB, free: 2.352 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001261/0.9267, allocations: 39.69 kB / 1.092 GB, free: 2.336 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.729e-06/0.9267, allocations: 0.6094 kB / 1.092 GB, free: 2.336 MB / 0.8575 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.000176/0.9269, allocations: 73.62 kB / 1.093 GB, free: 2.293 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.918e-05/0.9269, allocations: 9.5 kB / 1.093 GB, free: 2.289 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.452e-06/0.9269, allocations: 0 / 1.093 GB, free: 2.289 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.022e-05/0.9269, allocations: 0.6562 kB / 1.093 GB, free: 2.289 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001084/0.927, allocations: 9.766 kB / 1.093 GB, free: 2.289 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.021e-06/0.927, allocations: 1.344 kB / 1.093 GB, free: 2.289 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.163e-05/0.9271, allocations: 8.766 kB / 1.093 GB, free: 2.285 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.027e-05/0.9271, allocations: 1.734 kB / 1.093 GB, free: 2.285 MB / 0.8575 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.648e-05/0.9272, allocations: 112.2 kB / 1.093 GB, free: 2.168 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.637e-05/0.9272, allocations: 2.594 kB / 1.093 GB, free: 2.168 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.985e-05/0.9273, allocations: 15.92 kB / 1.093 GB, free: 2.148 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.164e-06/0.9273, allocations: 0 / 1.093 GB, free: 2.148 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.18e-06/0.9273, allocations: 0 / 1.093 GB, free: 2.148 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.31e-06/0.9273, allocations: 1.922 kB / 1.093 GB, free: 2.148 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001597/0.9275, allocations: 175.6 kB / 1.093 GB, free: 1.945 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.413e-06/0.9275, allocations: 0 / 1.093 GB, free: 1.945 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.477e-05/0.9275, allocations: 17.61 kB / 1.093 GB, free: 1.938 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.696e-06/0.9276, allocations: 1.781 kB / 1.093 GB, free: 1.938 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.955e-06/0.9276, allocations: 0 / 1.093 GB, free: 1.938 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.162e-06/0.9276, allocations: 0.75 kB / 1.093 GB, free: 1.938 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.555e-06/0.9276, allocations: 5.297 kB / 1.093 GB, free: 1.934 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001995/0.9278, allocations: 172 kB / 1.093 GB, free: 1.785 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 2.403e-05/0.9278, allocations: 84.06 kB / 1.093 GB, free: 1.688 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.541e-05/0.9278, allocations: 0.8125 kB / 1.093 GB, free: 1.688 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.145e-05/0.9279, allocations: 5.406 kB / 1.093 GB, free: 1.688 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.319e-05/0.928, allocations: 3.078 kB / 1.093 GB, free: 1.688 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.54e-06/0.928, allocations: 5.703 kB / 1.093 GB, free: 1.684 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 4.427e-05/0.928, allocations: 95.78 kB / 1.093 GB, free: 1.602 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.4e-07/0.928, allocations: 0 / 1.093 GB, free: 1.602 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002135/0.9283, allocations: 7.219 kB / 1.093 GB, free: 1.602 MB / 0.8575 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 0.0001144/0.9284, allocations: 102.7 kB / 1.093 GB, free: 1.512 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0002054/0.9286, allocations: 39.2 kB / 1.093 GB, free: 1.504 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 2.625e-06/0.9286, allocations: 4.812 kB / 1.093 GB, free: 1.5 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 8.188e-05/0.9287, allocations: 21.08 kB / 1.093 GB, free: 1.496 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002257/0.9289, allocations: 11.48 kB / 1.093 GB, free: 1.488 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003701/0.9293, allocations: 188.3 kB / 1.094 GB, free: 1.324 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001143/0.9294, allocations: 0.6825 MB / 1.094 GB, free: 0.6289 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.307e-05/0.9295, allocations: 11.06 kB / 1.094 GB, free: 0.6211 MB / 0.8575 GB Notification: Performance of SimCode: time 3.11e-07/0.9295, allocations: 4 kB / 1.094 GB, free: 0.6172 MB / 0.8575 GB Notification: Performance of Templates: time 0.002595/0.9321, allocations: 0.7051 MB / 1.095 GB, free: 0.5703 MB / 0.8575 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