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.001359/0.001359, allocations: 104.5 kB / 15.99 MB, free: 6.355 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.001407/0.001407, allocations: 195.9 kB / 16.91 MB, free: 6.188 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.394/1.394, allocations: 222.9 MB / 240.6 MB, free: 13.73 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.294/2.294, allocations: 390.2 MB / 0.665 GB, free: 0.9297 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001357/0.001357, allocations: 64.41 kB / 0.8127 GB, free: 32.51 MB / 0.6231 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2744/0.2758, allocations: 140.4 MB / 0.9498 GB, free: 9.242 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc): time 0.002954/0.2788, allocations: 1.57 MB / 0.9513 GB, free: 7.66 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.0007184/0.2795, allocations: 411 kB / 0.9517 GB, free: 7.254 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.013e-05/0.2796, allocations: 0 / 0.9517 GB, free: 7.254 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 3.9e-05/0.2797, allocations: 0 / 0.9517 GB, free: 7.254 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 7.001e-05/0.2797, allocations: 11.88 kB / 0.9517 GB, free: 7.242 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001724/0.2799, allocations: 15.98 kB / 0.9517 GB, free: 7.227 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 9.711e-05/0.28, allocations: 59.72 kB / 0.9518 GB, free: 7.168 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001136/0.2801, allocations: 19.88 kB / 0.9518 GB, free: 7.148 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001109/0.2803, allocations: 19.92 kB / 0.9518 GB, free: 7.129 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 7.698e-05/0.2803, allocations: 19.92 kB / 0.9518 GB, free: 7.109 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 1.765e-05/0.2804, allocations: 4 kB / 0.9519 GB, free: 7.105 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 1.597e-05/0.2804, allocations: 4 kB / 0.9519 GB, free: 7.102 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 2.484e-05/0.2804, allocations: 11.92 kB / 0.9519 GB, free: 7.09 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 3.937e-05/0.2805, allocations: 19.94 kB / 0.9519 GB, free: 7.07 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 8.183e-05/0.2805, allocations: 40.16 kB / 0.9519 GB, free: 7.031 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 4.388e-06/0.2806, allocations: 0 / 0.9519 GB, free: 7.031 MB / 0.7325 GB Notification: Performance of FrontEnd: time 1.583e-06/0.2806, allocations: 0 / 0.9519 GB, free: 7.031 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 5.269e-06/0.2806, allocations: 0 / 0.9519 GB, free: 7.031 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.0005361/0.2811, allocations: 359.2 kB / 0.9523 GB, free: 6.633 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 4.563e-05/0.2812, allocations: 12.03 kB / 0.9523 GB, free: 6.621 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.053e-05/0.2812, allocations: 0.9375 kB / 0.9523 GB, free: 6.621 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000116/0.2813, allocations: 172.3 kB / 0.9524 GB, free: 6.414 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.412e-05/0.2814, allocations: 4.375 kB / 0.9524 GB, free: 6.41 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.441e-05/0.2814, allocations: 8.312 kB / 0.9525 GB, free: 6.402 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001807/0.2816, allocations: 53.98 kB / 0.9525 GB, free: 6.344 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.217e-06/0.2816, allocations: 0 / 0.9525 GB, free: 6.344 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.17e-05/0.2816, allocations: 0 / 0.9525 GB, free: 6.344 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.261e-06/0.2816, allocations: 4 kB / 0.9525 GB, free: 6.34 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001309/0.2817, allocations: 35.97 kB / 0.9525 GB, free: 6.305 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003979/0.2822, allocations: 280.8 kB / 0.9528 GB, free: 5.98 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001212/0.2823, allocations: 42.5 kB / 0.9529 GB, free: 5.93 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.967e-05/0.2824, allocations: 20.94 kB / 0.9529 GB, free: 5.906 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 2.002e-05/0.2824, allocations: 3.984 kB / 0.9529 GB, free: 5.902 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.067e-05/0.2824, allocations: 42.56 kB / 0.9529 GB, free: 5.852 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=3): time 1.093e-06/0.2824, allocations: 0 / 0.9529 GB, free: 5.852 MB / 0.7325 GB Notification: Performance of matching and sorting (n=3): time 0.0003024/0.2827, allocations: 77.66 kB / 0.953 GB, free: 5.77 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.662e-05/0.2828, allocations: 55.34 kB / 0.953 GB, free: 5.703 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.043e-05/0.2829, allocations: 117.8 kB / 0.9532 GB, free: 5.578 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 1.377e-05/0.2829, allocations: 25.7 kB / 0.9532 GB, free: 5.547 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 4.962e-05/0.283, allocations: 104.1 kB / 0.9533 GB, free: 5.441 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 2.24e-05/0.283, allocations: 11.8 kB / 0.9533 GB, free: 5.43 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.823e-05/0.283, allocations: 13.72 kB / 0.9533 GB, free: 5.41 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001045/0.2831, allocations: 322.8 kB / 0.9536 GB, free: 5.086 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.236e-05/0.2832, allocations: 23.98 kB / 0.9536 GB, free: 5.062 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.914e-05/0.2833, allocations: 15.92 kB / 0.9537 GB, free: 5.047 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000127/0.2834, allocations: 45.11 kB / 0.9537 GB, free: 5 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.034e-06/0.2834, allocations: 0 / 0.9537 GB, free: 5 MB / 0.7325 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001885/0.2836, allocations: 73.66 kB / 0.9538 GB, free: 4.922 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 1.561e-05/0.2837, allocations: 7.938 kB / 0.9538 GB, free: 4.914 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.749e-06/0.2837, allocations: 0 / 0.9538 GB, free: 4.914 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.308e-05/0.2837, allocations: 0 / 0.9538 GB, free: 4.914 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001046/0.2838, allocations: 11.98 kB / 0.9538 GB, free: 4.902 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.182e-06/0.2838, allocations: 0 / 0.9538 GB, free: 4.902 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.791e-05/0.2839, allocations: 11.89 kB / 0.9538 GB, free: 4.891 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.305e-06/0.2839, allocations: 4 kB / 0.9538 GB, free: 4.887 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 7.551e-05/0.284, allocations: 117.8 kB / 0.9539 GB, free: 4.762 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.421e-05/0.284, allocations: 0 / 0.9539 GB, free: 4.762 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.793e-05/0.284, allocations: 11.91 kB / 0.9539 GB, free: 4.742 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.553e-06/0.284, allocations: 0 / 0.9539 GB, free: 4.742 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.759e-06/0.284, allocations: 0 / 0.9539 GB, free: 4.742 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.886e-06/0.2841, allocations: 0 / 0.9539 GB, free: 4.742 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001675/0.2842, allocations: 173.6 kB / 0.9541 GB, free: 4.523 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.593e-06/0.2842, allocations: 4 kB / 0.9541 GB, free: 4.52 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.321e-05/0.2843, allocations: 11.98 kB / 0.9541 GB, free: 4.508 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.805e-06/0.2843, allocations: 0 / 0.9541 GB, free: 4.508 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.067e-05/0.2843, allocations: 4 kB / 0.9541 GB, free: 4.504 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.763e-06/0.2843, allocations: 0 / 0.9541 GB, free: 4.504 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.823e-06/0.2844, allocations: 0 / 0.9541 GB, free: 4.504 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002217/0.2846, allocations: 171.3 kB / 0.9543 GB, free: 4.32 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 4.05e-05/0.2846, allocations: 89.05 kB / 0.9544 GB, free: 4.215 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.529e-05/0.2847, allocations: 4 kB / 0.9544 GB, free: 4.211 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.239e-05/0.2847, allocations: 4 kB / 0.9544 GB, free: 4.207 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.018e-05/0.2848, allocations: 3.984 kB / 0.9544 GB, free: 4.203 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.06e-06/0.2848, allocations: 0 / 0.9544 GB, free: 4.203 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 5.143e-05/0.2849, allocations: 95.27 kB / 0.9545 GB, free: 4.109 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.4e-07/0.2849, allocations: 0 / 0.9545 GB, free: 4.109 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0002207/0.2851, allocations: 11.91 kB / 0.9545 GB, free: 4.098 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.0001078/0.2852, allocations: 99.19 kB / 0.9546 GB, free: 3.992 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0001883/0.2854, allocations: 51.91 kB / 0.9546 GB, free: 3.941 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 1.924e-06/0.2854, allocations: 0 / 0.9546 GB, free: 3.941 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 6.972e-05/0.2855, allocations: 19.98 kB / 0.9546 GB, free: 3.922 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002284/0.2857, allocations: 17.19 kB / 0.9546 GB, free: 3.906 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003957/0.2861, allocations: 190.1 kB / 0.9548 GB, free: 3.691 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002276/0.2864, allocations: 0.6883 MB / 0.9555 GB, free: 2.977 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.427e-05/0.2864, allocations: 15.38 kB / 0.9555 GB, free: 2.961 MB / 0.7325 GB Notification: Performance of SimCode: time 3.4e-07/0.2864, allocations: 0 / 0.9555 GB, free: 2.961 MB / 0.7325 GB Notification: Performance of Templates: time 0.002038/0.2885, allocations: 0.7049 MB / 0.9562 GB, free: 2.258 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 -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