Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.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_10_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_10_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.001791/0.001791, allocations: 102.9 kB / 16.35 MB, free: 5.828 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.0023/0.0023, allocations: 194.2 kB / 17.3 MB, free: 5.484 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.418/1.418, allocations: 222.9 MB / 241 MB, free: 15.13 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.683/2.683, allocations: 437.1 MB / 0.7112 GB, free: 4.383 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001299/0.001299, allocations: 68.38 kB / 0.8707 GB, free: 1.395 MB / 0.6387 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3131/0.3144, allocations: 151.6 MB / 1.019 GB, free: 9.801 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc): time 0.002781/0.3172, allocations: 1.514 MB / 1.02 GB, free: 8.27 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.0006429/0.3179, allocations: 420.5 kB / 1.021 GB, free: 7.855 MB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.103e-05/0.3179, allocations: 4 kB / 1.021 GB, free: 7.852 MB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 3.324e-05/0.318, allocations: 3.938 kB / 1.021 GB, free: 7.848 MB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 5.79e-05/0.3181, allocations: 11.86 kB / 1.021 GB, free: 7.836 MB / 0.795 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001623/0.3182, allocations: 15.98 kB / 1.021 GB, free: 7.82 MB / 0.795 GB Notification: Performance of NFFlatten.flatten: time 0.0001013/0.3183, allocations: 55.72 kB / 1.021 GB, free: 7.766 MB / 0.795 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001032/0.3184, allocations: 8 kB / 1.021 GB, free: 7.758 MB / 0.795 GB Notification: Performance of NFEvalConstants.evaluate: time 8.547e-05/0.3185, allocations: 23.92 kB / 1.021 GB, free: 7.734 MB / 0.795 GB Notification: Performance of NFSimplifyModel.simplify: time 8.241e-05/0.3186, allocations: 27.89 kB / 1.021 GB, free: 7.707 MB / 0.795 GB Notification: Performance of NFPackage.collectConstants: time 1.768e-05/0.3187, allocations: 4 kB / 1.021 GB, free: 7.703 MB / 0.795 GB Notification: Performance of NFFlatten.collectFunctions: time 1.38e-05/0.3187, allocations: 4 kB / 1.021 GB, free: 7.699 MB / 0.795 GB Notification: Performance of NFScalarize.scalarize: time 2.12e-05/0.3187, allocations: 7.938 kB / 1.021 GB, free: 7.691 MB / 0.795 GB Notification: Performance of NFVerifyModel.verify: time 4.242e-05/0.3187, allocations: 27.86 kB / 1.021 GB, free: 7.664 MB / 0.795 GB Notification: Performance of NFConvertDAE.convert: time 9.315e-05/0.3188, allocations: 43.88 kB / 1.021 GB, free: 7.621 MB / 0.795 GB Notification: Performance of FrontEnd - DAE generated: time 5.841e-06/0.3189, allocations: 0 / 1.021 GB, free: 7.621 MB / 0.795 GB Notification: Performance of FrontEnd: time 1.944e-06/0.3189, allocations: 3.938 kB / 1.021 GB, free: 7.617 MB / 0.795 GB Notification: Performance of Transformations before backend: time 5.44e-06/0.3189, allocations: 0 / 1.021 GB, free: 7.617 MB / 0.795 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.0005037/0.3194, allocations: 363.2 kB / 1.021 GB, free: 7.215 MB / 0.795 GB Notification: Performance of prepare preOptimizeDAE: time 3.659e-05/0.3194, allocations: 8.922 kB / 1.021 GB, free: 7.207 MB / 0.795 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.277e-05/0.3195, allocations: 4.938 kB / 1.021 GB, free: 7.203 MB / 0.795 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001246/0.3196, allocations: 172.2 kB / 1.021 GB, free: 6.996 MB / 0.795 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.363e-05/0.3196, allocations: 4.375 kB / 1.021 GB, free: 6.992 MB / 0.795 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.382e-05/0.3196, allocations: 8.375 kB / 1.021 GB, free: 6.984 MB / 0.795 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001564/0.3198, allocations: 53.98 kB / 1.021 GB, free: 6.926 MB / 0.795 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.634e-06/0.3198, allocations: 4 kB / 1.021 GB, free: 6.922 MB / 0.795 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.428e-06/0.3198, allocations: 0 / 1.021 GB, free: 6.922 MB / 0.795 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.172e-06/0.3198, allocations: 4 kB / 1.021 GB, free: 6.918 MB / 0.795 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001224/0.32, allocations: 35.91 kB / 1.022 GB, free: 6.883 MB / 0.795 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003885/0.3204, allocations: 280.8 kB / 1.022 GB, free: 6.559 MB / 0.795 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001109/0.3205, allocations: 42.5 kB / 1.022 GB, free: 6.508 MB / 0.795 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.991e-05/0.3206, allocations: 24.94 kB / 1.022 GB, free: 6.48 MB / 0.795 GB Notification: Performance of preOpt evalFunc (simulation): time 1.902e-05/0.3206, allocations: 0 / 1.022 GB, free: 6.48 MB / 0.795 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.328e-05/0.3206, allocations: 38.55 kB / 1.022 GB, free: 6.434 MB / 0.795 GB Notification: Performance of pre-optimization done (n=3): time 9.52e-07/0.3206, allocations: 4 kB / 1.022 GB, free: 6.43 MB / 0.795 GB Notification: Performance of matching and sorting (n=3): time 0.0002922/0.3209, allocations: 85.58 kB / 1.022 GB, free: 6.34 MB / 0.795 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.195e-05/0.321, allocations: 55.41 kB / 1.022 GB, free: 6.273 MB / 0.795 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.575e-05/0.3211, allocations: 121.8 kB / 1.022 GB, free: 6.145 MB / 0.795 GB Notification: Performance of collectPreVariables (initialization): time 1.74e-05/0.3211, allocations: 25.7 kB / 1.022 GB, free: 6.113 MB / 0.795 GB Notification: Performance of collectInitialEqns (initialization): time 4.231e-05/0.3211, allocations: 96.03 kB / 1.022 GB, free: 6.016 MB / 0.795 GB Notification: Performance of collectInitialBindings (initialization): time 1.866e-05/0.3212, allocations: 7.906 kB / 1.022 GB, free: 6.008 MB / 0.795 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.318e-05/0.3212, allocations: 13.72 kB / 1.022 GB, free: 5.988 MB / 0.795 GB Notification: Performance of setup shared object (initialization): time 0.0001059/0.3213, allocations: 322.8 kB / 1.023 GB, free: 5.664 MB / 0.795 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.187e-05/0.3214, allocations: 23.98 kB / 1.023 GB, free: 5.641 MB / 0.795 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.108e-05/0.3214, allocations: 11.98 kB / 1.023 GB, free: 5.629 MB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001151/0.3216, allocations: 44.77 kB / 1.023 GB, free: 5.582 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.154e-06/0.3216, allocations: 0 / 1.023 GB, free: 5.582 MB / 0.795 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001571/0.3217, allocations: 73.58 kB / 1.023 GB, free: 5.504 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 1.44e-05/0.3218, allocations: 4 kB / 1.023 GB, free: 5.5 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.719e-06/0.3218, allocations: 0 / 1.023 GB, free: 5.5 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.263e-05/0.3218, allocations: 4 kB / 1.023 GB, free: 5.496 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001039/0.3219, allocations: 11.98 kB / 1.023 GB, free: 5.484 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.7e-06/0.3219, allocations: 3.938 kB / 1.023 GB, free: 5.48 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.191e-05/0.322, allocations: 7.984 kB / 1.023 GB, free: 5.473 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.726e-06/0.322, allocations: 0 / 1.023 GB, free: 5.473 MB / 0.795 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 7.959e-05/0.3221, allocations: 117.8 kB / 1.023 GB, free: 5.348 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.455e-05/0.3221, allocations: 0 / 1.023 GB, free: 5.348 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.961e-05/0.3221, allocations: 11.91 kB / 1.023 GB, free: 5.332 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.593e-06/0.3221, allocations: 0 / 1.023 GB, free: 5.332 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.252e-06/0.3221, allocations: 4 kB / 1.023 GB, free: 5.328 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.314e-06/0.3221, allocations: 0 / 1.023 GB, free: 5.328 MB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001711/0.3223, allocations: 173.6 kB / 1.023 GB, free: 5.109 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.196e-06/0.3223, allocations: 0 / 1.023 GB, free: 5.109 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.116e-05/0.3224, allocations: 15.92 kB / 1.023 GB, free: 5.094 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.723e-06/0.3224, allocations: 0 / 1.023 GB, free: 5.094 MB / 0.795 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.766e-06/0.3224, allocations: 0 / 1.023 GB, free: 5.094 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.485e-06/0.3224, allocations: 8 kB / 1.023 GB, free: 5.086 MB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.22e-07/0.3224, allocations: 0 / 1.023 GB, free: 5.086 MB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002062/0.3227, allocations: 171.4 kB / 1.023 GB, free: 4.902 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 3.758e-05/0.3227, allocations: 88.95 kB / 1.023 GB, free: 4.797 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.363e-05/0.3227, allocations: 0 / 1.023 GB, free: 4.797 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.361e-05/0.3228, allocations: 8 kB / 1.023 GB, free: 4.789 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.842e-05/0.3229, allocations: 7.922 kB / 1.023 GB, free: 4.781 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.298e-06/0.3229, allocations: 0 / 1.023 GB, free: 4.781 MB / 0.795 GB Notification: Performance of sorting global known variables: time 6.025e-05/0.3229, allocations: 95.27 kB / 1.023 GB, free: 4.688 MB / 0.795 GB Notification: Performance of sort global known variables: time 1.41e-07/0.3229, allocations: 4 kB / 1.023 GB, free: 4.684 MB / 0.795 GB Notification: Performance of remove unused functions: time 0.0002244/0.3232, allocations: 8 kB / 1.023 GB, free: 4.676 MB / 0.795 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.406e-05/0.3233, allocations: 99.19 kB / 1.024 GB, free: 4.566 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.0001799/0.3235, allocations: 43.97 kB / 1.024 GB, free: 4.523 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 1.934e-06/0.3235, allocations: 0 / 1.024 GB, free: 4.523 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 6.644e-05/0.3235, allocations: 20.45 kB / 1.024 GB, free: 4.504 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002185/0.3238, allocations: 7.938 kB / 1.024 GB, free: 4.496 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003642/0.3241, allocations: 156.3 kB / 1.024 GB, free: 4.32 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002455/0.3244, allocations: 0.6885 MB / 1.024 GB, free: 3.605 MB / 0.795 GB Notification: Performance of simCode: alias equations: time 3.505e-05/0.3244, allocations: 8.016 kB / 1.024 GB, free: 3.598 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.012e-05/0.3245, allocations: 11.44 kB / 1.024 GB, free: 3.586 MB / 0.795 GB Notification: Performance of SimCode: time 2.7e-07/0.3245, allocations: 4 kB / 1.024 GB, free: 3.582 MB / 0.795 GB Notification: Performance of Templates: time 0.002362/0.3268, allocations: 459.8 kB / 1.025 GB, free: 3.137 MB / 0.795 GB make -j1 -f Buildings_10_Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc.makefile (rm -f Buildings_10_Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc.pipe ; mkfifo Buildings_10_Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc.pipe ; head -c 1048576 < Buildings_10_Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc.pipe >> ../files/Buildings_10_Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc.sim & ./Buildings_10_Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Fluid_SolarCollectors_Controls_BaseClasses_Examples_GCritCalc.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches