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.007569/0.00757, allocations: 100.8 kB / 15.87 MB, free: 5.867 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.001741/0.001741, allocations: 195.8 kB / 16.79 MB, free: 5.809 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.381/1.381, allocations: 222.9 MB / 240.5 MB, free: 4.582 MB / 190.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.359/2.359, allocations: 390.2 MB / 0.6649 GB, free: 0.625 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001491/0.001491, allocations: 76.11 kB / 0.8125 GB, free: 14.86 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.676/0.6775, allocations: 140.3 MB / 0.9496 GB, free: 9.309 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc): time 0.002594/0.6802, allocations: 1.561 MB / 0.9511 GB, free: 8.082 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0005528/0.6808, allocations: 410 kB / 0.9515 GB, free: 7.766 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.81e-05/0.6808, allocations: 1.375 kB / 0.9515 GB, free: 7.766 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 3.914e-05/0.6809, allocations: 7.922 kB / 0.9515 GB, free: 7.758 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 5.525e-05/0.6809, allocations: 5.312 kB / 0.9515 GB, free: 7.754 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001478/0.6811, allocations: 14.73 kB / 0.9515 GB, free: 7.742 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 7.943e-05/0.6812, allocations: 52.34 kB / 0.9516 GB, free: 7.711 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001136/0.6813, allocations: 20.09 kB / 0.9516 GB, free: 7.695 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 8.4e-05/0.6814, allocations: 17.56 kB / 0.9516 GB, free: 7.688 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 7.904e-05/0.6815, allocations: 24.16 kB / 0.9516 GB, free: 7.672 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.924e-05/0.6815, allocations: 1.375 kB / 0.9516 GB, free: 7.672 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 1.441e-05/0.6815, allocations: 2.75 kB / 0.9516 GB, free: 7.672 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 2.326e-05/0.6815, allocations: 9.312 kB / 0.9517 GB, free: 7.664 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 3.817e-05/0.6816, allocations: 25.34 kB / 0.9517 GB, free: 7.645 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 7.087e-05/0.6817, allocations: 30.17 kB / 0.9517 GB, free: 7.625 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.978e-06/0.6817, allocations: 0 / 0.9517 GB, free: 7.625 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.513e-06/0.6817, allocations: 1.375 kB / 0.9517 GB, free: 7.625 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 5.139e-06/0.6817, allocations: 4 kB / 0.9517 GB, free: 7.621 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.0004542/0.6821, allocations: 355.8 kB / 0.9521 GB, free: 7.246 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.257e-05/0.6822, allocations: 13.19 kB / 0.9521 GB, free: 7.242 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.541e-05/0.6822, allocations: 7.594 kB / 0.9521 GB, free: 7.238 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.727e-05/0.6823, allocations: 179.9 kB / 0.9522 GB, free: 7.027 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.024e-05/0.6823, allocations: 1.625 kB / 0.9522 GB, free: 7.027 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.081e-05/0.6824, allocations: 1.875 kB / 0.9522 GB, free: 7.027 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001582/0.6825, allocations: 67.17 kB / 0.9523 GB, free: 6.969 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.165e-06/0.6825, allocations: 0 / 0.9523 GB, free: 6.969 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.034e-05/0.6825, allocations: 5.438 kB / 0.9523 GB, free: 6.965 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.747e-06/0.6826, allocations: 0 / 0.9523 GB, free: 6.965 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001201/0.6827, allocations: 32.41 kB / 0.9523 GB, free: 6.953 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003232/0.683, allocations: 273.8 kB / 0.9526 GB, free: 6.652 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001148/0.6831, allocations: 45.56 kB / 0.9527 GB, free: 6.613 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.881e-05/0.6832, allocations: 23.25 kB / 0.9527 GB, free: 6.598 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.503e-05/0.6832, allocations: 1.219 kB / 0.9527 GB, free: 6.598 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.121e-05/0.6833, allocations: 30.56 kB / 0.9527 GB, free: 6.559 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=3): time 1.112e-06/0.6833, allocations: 1.188 kB / 0.9527 GB, free: 6.559 MB / 0.7169 GB Notification: Performance of matching and sorting (n=3): time 0.0002973/0.6836, allocations: 99.27 kB / 0.9528 GB, free: 6.488 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.421e-05/0.6836, allocations: 52.81 kB / 0.9529 GB, free: 6.426 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.993e-05/0.6837, allocations: 116.3 kB / 0.953 GB, free: 6.316 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 9.337e-06/0.6837, allocations: 29.7 kB / 0.953 GB, free: 6.281 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 3.244e-05/0.6837, allocations: 98.83 kB / 0.9531 GB, free: 6.184 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.892e-05/0.6837, allocations: 13.28 kB / 0.9531 GB, free: 6.172 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.056e-05/0.6838, allocations: 16.56 kB / 0.9531 GB, free: 6.152 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 4.865e-05/0.6838, allocations: 324.1 kB / 0.9534 GB, free: 5.828 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.458e-05/0.6839, allocations: 17.77 kB / 0.9534 GB, free: 5.82 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.619e-05/0.684, allocations: 17.52 kB / 0.9535 GB, free: 5.812 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001142/0.6841, allocations: 37.59 kB / 0.9535 GB, free: 5.793 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.643e-06/0.6841, allocations: 0 / 0.9535 GB, free: 5.793 MB / 0.7169 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001534/0.6843, allocations: 74.97 kB / 0.9536 GB, free: 5.738 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.481e-05/0.6843, allocations: 9.281 kB / 0.9536 GB, free: 5.734 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.969e-06/0.6843, allocations: 1.562 kB / 0.9536 GB, free: 5.734 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.54e-05/0.6843, allocations: 0 / 0.9536 GB, free: 5.734 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.945e-05/0.6844, allocations: 10.17 kB / 0.9536 GB, free: 5.73 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.952e-06/0.6844, allocations: 1.156 kB / 0.9536 GB, free: 5.73 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.04e-05/0.6845, allocations: 2.406 kB / 0.9536 GB, free: 5.73 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.995e-06/0.6845, allocations: 1.406 kB / 0.9536 GB, free: 5.73 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.81e-05/0.6846, allocations: 116.5 kB / 0.9537 GB, free: 5.609 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.571e-05/0.6846, allocations: 10.5 kB / 0.9537 GB, free: 5.602 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.36e-05/0.6846, allocations: 9.188 kB / 0.9537 GB, free: 5.586 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.154e-06/0.6846, allocations: 1.5 kB / 0.9537 GB, free: 5.586 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.018e-06/0.6846, allocations: 336 / 0.9537 GB, free: 5.586 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.895e-06/0.6846, allocations: 0 / 0.9537 GB, free: 5.586 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001262/0.6848, allocations: 170.4 kB / 0.9539 GB, free: 5.379 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.673e-06/0.6848, allocations: 1.062 kB / 0.9539 GB, free: 5.379 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.997e-05/0.6849, allocations: 13.92 kB / 0.9539 GB, free: 5.371 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.637e-06/0.6849, allocations: 5.609 kB / 0.9539 GB, free: 5.367 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.055e-06/0.6849, allocations: 0 / 0.9539 GB, free: 5.367 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.102e-06/0.6849, allocations: 4 kB / 0.9539 GB, free: 5.363 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.194e-06/0.6849, allocations: 5.203 kB / 0.9539 GB, free: 5.359 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001724/0.6851, allocations: 173.4 kB / 0.9541 GB, free: 5.199 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.141e-05/0.6851, allocations: 79.02 kB / 0.9542 GB, free: 5.105 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.712e-05/0.6851, allocations: 9.172 kB / 0.9542 GB, free: 5.098 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.052e-05/0.6852, allocations: 2.062 kB / 0.9542 GB, free: 5.098 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.965e-05/0.6852, allocations: 10.16 kB / 0.9542 GB, free: 5.09 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.971e-06/0.6853, allocations: 5.078 kB / 0.9542 GB, free: 5.086 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 3.212e-05/0.6853, allocations: 88.47 kB / 0.9543 GB, free: 5.008 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.3e-07/0.6853, allocations: 0 / 0.9543 GB, free: 5.008 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002178/0.6855, allocations: 10.94 kB / 0.9543 GB, free: 5.004 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 8.578e-05/0.6856, allocations: 102.2 kB / 0.9544 GB, free: 4.914 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.000173/0.6858, allocations: 38.41 kB / 0.9544 GB, free: 4.898 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.274e-06/0.6858, allocations: 4 kB / 0.9544 GB, free: 4.895 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 6.695e-05/0.6859, allocations: 21.17 kB / 0.9544 GB, free: 4.887 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002167/0.6861, allocations: 10.69 kB / 0.9544 GB, free: 4.879 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003552/0.6865, allocations: 198.2 kB / 0.9546 GB, free: 4.695 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001055/0.6866, allocations: 0.686 MB / 0.9553 GB, free: 3.992 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.439e-05/0.6866, allocations: 12.89 kB / 0.9553 GB, free: 3.98 MB / 0.7169 GB Notification: Performance of SimCode: time 6.21e-07/0.6866, allocations: 0 / 0.9553 GB, free: 3.98 MB / 0.7169 GB Notification: Performance of Templates: time 0.001998/0.6886, allocations: 0.696 MB / 0.956 GB, free: 3.629 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/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