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.001883/0.001884, allocations: 101.8 kB / 16.35 MB, free: 5.879 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.001712/0.001712, allocations: 199.1 kB / 17.3 MB, free: 5.52 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.404/1.404, allocations: 222.9 MB / 241 MB, free: 15.17 MB / 206.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.271/2.271, allocations: 390.3 MB / 0.6655 GB, free: 0.6328 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001324/0.001324, allocations: 64.41 kB / 0.814 GB, free: 32.79 MB / 0.6231 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3322/0.3336, allocations: 140.4 MB / 0.9511 GB, free: 8.055 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc): time 0.003238/0.3369, allocations: 1.514 MB / 0.9526 GB, free: 6.539 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.0007828/0.3377, allocations: 423 kB / 0.953 GB, free: 6.121 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.265e-05/0.3378, allocations: 4 kB / 0.953 GB, free: 6.117 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 4.442e-05/0.3378, allocations: 3.938 kB / 0.953 GB, free: 6.113 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 6.655e-05/0.3379, allocations: 7.875 kB / 0.953 GB, free: 6.105 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002234/0.3381, allocations: 19.97 kB / 0.953 GB, free: 6.086 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.0001111/0.3383, allocations: 55.72 kB / 0.9531 GB, free: 6.031 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000129/0.3384, allocations: 15.89 kB / 0.9531 GB, free: 6.016 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001032/0.3385, allocations: 27.92 kB / 0.9531 GB, free: 5.988 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 8.39e-05/0.3386, allocations: 15.92 kB / 0.9531 GB, free: 5.973 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 2.14e-05/0.3386, allocations: 4 kB / 0.9531 GB, free: 5.969 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 1.415e-05/0.3386, allocations: 4 kB / 0.9532 GB, free: 5.965 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 2.563e-05/0.3387, allocations: 11.92 kB / 0.9532 GB, free: 5.953 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 4.121e-05/0.3387, allocations: 19.92 kB / 0.9532 GB, free: 5.934 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.000112/0.3388, allocations: 43.83 kB / 0.9532 GB, free: 5.891 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 5.591e-06/0.3388, allocations: 4 kB / 0.9532 GB, free: 5.887 MB / 0.7325 GB Notification: Performance of FrontEnd: time 2.064e-06/0.3389, allocations: 0 / 0.9532 GB, free: 5.887 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 6.271e-06/0.3389, allocations: 0 / 0.9532 GB, free: 5.887 MB / 0.7325 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.0005482/0.3394, allocations: 363.2 kB / 0.9536 GB, free: 5.484 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 4.1e-05/0.3395, allocations: 12.03 kB / 0.9536 GB, free: 5.473 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.213e-05/0.3395, allocations: 0.9375 kB / 0.9536 GB, free: 5.473 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001241/0.3396, allocations: 172.2 kB / 0.9537 GB, free: 5.266 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.305e-05/0.3396, allocations: 384 / 0.9538 GB, free: 5.266 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.419e-05/0.3397, allocations: 4.375 kB / 0.9538 GB, free: 5.262 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001842/0.3399, allocations: 61.98 kB / 0.9538 GB, free: 5.195 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.324e-05/0.3399, allocations: 3.984 kB / 0.9538 GB, free: 5.191 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.112e-05/0.3399, allocations: 0 / 0.9538 GB, free: 5.191 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.265e-05/0.3399, allocations: 4 kB / 0.9538 GB, free: 5.188 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001234/0.34, allocations: 35.92 kB / 0.9539 GB, free: 5.152 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004178/0.3405, allocations: 284.7 kB / 0.9541 GB, free: 4.824 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001333/0.3406, allocations: 46.44 kB / 0.9542 GB, free: 4.77 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.186e-05/0.3407, allocations: 24.94 kB / 0.9542 GB, free: 4.742 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 1.748e-05/0.3407, allocations: 0 / 0.9542 GB, free: 4.742 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.618e-05/0.3407, allocations: 34.56 kB / 0.9542 GB, free: 4.699 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=3): time 8.32e-07/0.3408, allocations: 0 / 0.9542 GB, free: 4.699 MB / 0.7325 GB Notification: Performance of matching and sorting (n=3): time 0.0003144/0.3411, allocations: 93.58 kB / 0.9543 GB, free: 4.602 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.614e-05/0.3411, allocations: 51.41 kB / 0.9544 GB, free: 4.539 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001059/0.3412, allocations: 125.8 kB / 0.9545 GB, free: 4.406 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 1.441e-05/0.3413, allocations: 25.7 kB / 0.9545 GB, free: 4.375 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 5.04e-05/0.3413, allocations: 88.14 kB / 0.9546 GB, free: 4.285 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 2.13e-05/0.3413, allocations: 7.812 kB / 0.9546 GB, free: 4.277 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.625e-05/0.3414, allocations: 21.7 kB / 0.9546 GB, free: 4.25 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001176/0.3415, allocations: 322.8 kB / 0.9549 GB, free: 3.926 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.906e-05/0.3416, allocations: 15.98 kB / 0.9549 GB, free: 3.91 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.258e-05/0.3416, allocations: 15.98 kB / 0.955 GB, free: 3.895 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001149/0.3418, allocations: 40.83 kB / 0.955 GB, free: 3.852 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.224e-06/0.3418, allocations: 0 / 0.955 GB, free: 3.852 MB / 0.7325 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001551/0.3419, allocations: 77.61 kB / 0.9551 GB, free: 3.77 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 1.712e-05/0.3419, allocations: 10.02 kB / 0.9551 GB, free: 3.762 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.929e-06/0.342, allocations: 0 / 0.9551 GB, free: 3.762 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.451e-05/0.342, allocations: 0 / 0.9551 GB, free: 3.762 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.984e-05/0.3421, allocations: 8 kB / 0.9551 GB, free: 3.754 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.462e-06/0.3421, allocations: 0 / 0.9551 GB, free: 3.754 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.282e-05/0.3422, allocations: 11.89 kB / 0.9551 GB, free: 3.742 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.435e-06/0.3422, allocations: 0 / 0.9551 GB, free: 3.742 MB / 0.7325 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 8.75e-05/0.3423, allocations: 117.8 kB / 0.9552 GB, free: 3.617 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.365e-05/0.3423, allocations: 4 kB / 0.9552 GB, free: 3.613 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.911e-05/0.3423, allocations: 11.89 kB / 0.9552 GB, free: 3.594 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.104e-06/0.3423, allocations: 0 / 0.9552 GB, free: 3.594 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.972e-06/0.3423, allocations: 4 kB / 0.9552 GB, free: 3.59 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.068e-06/0.3424, allocations: 0 / 0.9552 GB, free: 3.59 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001725/0.3425, allocations: 173.5 kB / 0.9554 GB, free: 3.371 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.21e-07/0.3425, allocations: 4 kB / 0.9554 GB, free: 3.367 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.681e-05/0.3426, allocations: 11.98 kB / 0.9554 GB, free: 3.355 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.563e-06/0.3426, allocations: 0 / 0.9554 GB, free: 3.355 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.037e-05/0.3426, allocations: 4 kB / 0.9554 GB, free: 3.352 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.213e-06/0.3426, allocations: 4 kB / 0.9554 GB, free: 3.348 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.91e-07/0.3426, allocations: 0 / 0.9554 GB, free: 3.348 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002052/0.3429, allocations: 171.3 kB / 0.9556 GB, free: 3.164 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 3.945e-05/0.3429, allocations: 85.05 kB / 0.9557 GB, free: 3.062 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.534e-05/0.3429, allocations: 0 / 0.9557 GB, free: 3.062 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.079e-05/0.343, allocations: 7.984 kB / 0.9557 GB, free: 3.055 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.47e-05/0.3431, allocations: 7.938 kB / 0.9557 GB, free: 3.047 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.691e-06/0.3431, allocations: 4 kB / 0.9557 GB, free: 3.043 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 5.918e-05/0.3431, allocations: 95.27 kB / 0.9558 GB, free: 2.949 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.1e-07/0.3432, allocations: 0 / 0.9558 GB, free: 2.949 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.000213/0.3434, allocations: 11.91 kB / 0.9558 GB, free: 2.938 MB / 0.7325 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.0001206/0.3435, allocations: 95.25 kB / 0.9559 GB, free: 2.836 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0001857/0.3437, allocations: 43.91 kB / 0.9559 GB, free: 2.793 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 2.234e-06/0.3437, allocations: 4 kB / 0.9559 GB, free: 2.789 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 7.004e-05/0.3438, allocations: 24.44 kB / 0.9559 GB, free: 2.766 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002251/0.344, allocations: 10 kB / 0.956 GB, free: 2.758 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003858/0.3444, allocations: 156.3 kB / 0.9561 GB, free: 2.582 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002696/0.3447, allocations: 0.6883 MB / 0.9568 GB, free: 1.867 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 3.507e-05/0.3447, allocations: 8.078 kB / 0.9568 GB, free: 1.859 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.251e-05/0.3448, allocations: 7.438 kB / 0.9568 GB, free: 1.852 MB / 0.7325 GB Notification: Performance of SimCode: time 3.4e-07/0.3448, allocations: 0 / 0.9568 GB, free: 1.852 MB / 0.7325 GB Notification: Performance of Templates: time 0.00308/0.3479, allocations: 463.9 kB / 0.9572 GB, free: 1.402 MB / 0.7325 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 -s cvode -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