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.0009746/0.0009746, allocations: 97.56 kB / 15.36 MB, free: 0.7344 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.007618/0.007619, allocations: 169.1 kB / 16.26 MB, free: 6.652 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.425/1.425, allocations: 223.3 MB / 240.3 MB, free: 5.355 MB / 190.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.483/2.483, allocations: 390.9 MB / 0.6663 GB, free: 2.344 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003331/0.0003333, allocations: 8 kB / 0.816 GB, free: 13.25 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7637/0.764, allocations: 142.4 MB / 0.955 GB, free: 7.723 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc): time 0.001938/0.766, allocations: 1.227 MB / 0.9562 GB, free: 6.75 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0006691/0.7667, allocations: 408.7 kB / 0.9566 GB, free: 6.434 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.602e-05/0.7668, allocations: 1.344 kB / 0.9566 GB, free: 6.434 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 2.326e-05/0.7668, allocations: 11.86 kB / 0.9566 GB, free: 6.422 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 7.828e-05/0.7669, allocations: 5.031 kB / 0.9567 GB, free: 6.418 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.000192/0.7671, allocations: 11.61 kB / 0.9567 GB, free: 6.41 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 9.388e-05/0.7672, allocations: 51.28 kB / 0.9567 GB, free: 6.379 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001325/0.7673, allocations: 17.41 kB / 0.9567 GB, free: 6.367 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001041/0.7675, allocations: 21.08 kB / 0.9568 GB, free: 6.355 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 9.603e-05/0.7676, allocations: 23.02 kB / 0.9568 GB, free: 6.34 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 2.241e-05/0.7676, allocations: 5 kB / 0.9568 GB, free: 6.336 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 1.214e-05/0.7676, allocations: 1.625 kB / 0.9568 GB, free: 6.336 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 1.78e-05/0.7676, allocations: 1.375 kB / 0.9568 GB, free: 6.336 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 4.97e-05/0.7677, allocations: 52.08 kB / 0.9568 GB, free: 6.285 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001037/0.7678, allocations: 44.08 kB / 0.9569 GB, free: 6.254 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 7.635e-06/0.7678, allocations: 3.984 kB / 0.9569 GB, free: 6.25 MB / 0.7169 GB Notification: Performance of FrontEnd: time 4.188e-06/0.7678, allocations: 0 / 0.9569 GB, free: 6.25 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 4.899e-06/0.7678, allocations: 1.031 kB / 0.9569 GB, free: 6.25 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.0005077/0.7683, allocations: 352.3 kB / 0.9572 GB, free: 5.879 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.996e-05/0.7684, allocations: 9.5 kB / 0.9572 GB, free: 5.879 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.311e-05/0.7685, allocations: 11.41 kB / 0.9572 GB, free: 5.871 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001177/0.7686, allocations: 172.8 kB / 0.9574 GB, free: 5.668 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.875e-05/0.7686, allocations: 1.469 kB / 0.9574 GB, free: 5.668 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.344e-05/0.7686, allocations: 1.344 kB / 0.9574 GB, free: 5.668 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000192/0.7688, allocations: 63.89 kB / 0.9575 GB, free: 5.617 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.008e-05/0.7688, allocations: 0 / 0.9575 GB, free: 5.617 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.375e-05/0.7689, allocations: 4 kB / 0.9575 GB, free: 5.613 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.224e-06/0.7689, allocations: 0.9375 kB / 0.9575 GB, free: 5.613 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001592/0.769, allocations: 43.44 kB / 0.9575 GB, free: 5.598 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004547/0.7695, allocations: 278.8 kB / 0.9578 GB, free: 5.293 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001488/0.7697, allocations: 48.77 kB / 0.9578 GB, free: 5.254 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.804e-05/0.7698, allocations: 31.72 kB / 0.9578 GB, free: 5.234 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.648e-05/0.7698, allocations: 0 / 0.9578 GB, free: 5.234 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.523e-05/0.7698, allocations: 35.47 kB / 0.9579 GB, free: 5.191 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=3): time 1.203e-06/0.7698, allocations: 1 kB / 0.9579 GB, free: 5.191 MB / 0.7169 GB Notification: Performance of matching and sorting (n=3): time 0.0003837/0.7702, allocations: 103.8 kB / 0.958 GB, free: 5.129 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.465e-05/0.7703, allocations: 51.41 kB / 0.958 GB, free: 5.066 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.529e-05/0.7704, allocations: 120.4 kB / 0.9581 GB, free: 4.953 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.134e-05/0.7704, allocations: 25.7 kB / 0.9582 GB, free: 4.922 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 3.615e-05/0.7704, allocations: 90.98 kB / 0.9583 GB, free: 4.832 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.468e-05/0.7704, allocations: 8.875 kB / 0.9583 GB, free: 4.824 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.665e-05/0.7705, allocations: 11.16 kB / 0.9583 GB, free: 4.809 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 5.863e-05/0.7705, allocations: 328.3 kB / 0.9586 GB, free: 4.48 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.356e-05/0.7706, allocations: 20.55 kB / 0.9586 GB, free: 4.473 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.331e-05/0.7707, allocations: 18.69 kB / 0.9586 GB, free: 4.469 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001344/0.7708, allocations: 61.42 kB / 0.9587 GB, free: 4.434 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.733e-06/0.7709, allocations: 0 / 0.9587 GB, free: 4.434 MB / 0.7169 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001788/0.771, allocations: 78.27 kB / 0.9588 GB, free: 4.383 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.573e-05/0.7711, allocations: 5.344 kB / 0.9588 GB, free: 4.383 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.61e-06/0.7711, allocations: 0 / 0.9588 GB, free: 4.383 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.346e-05/0.7711, allocations: 0 / 0.9588 GB, free: 4.383 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000101/0.7712, allocations: 17.48 kB / 0.9588 GB, free: 4.375 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.191e-06/0.7712, allocations: 0 / 0.9588 GB, free: 4.375 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.531e-05/0.7713, allocations: 9.234 kB / 0.9588 GB, free: 4.371 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.145e-06/0.7713, allocations: 0.9062 kB / 0.9588 GB, free: 4.371 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 6.073e-05/0.7714, allocations: 116.2 kB / 0.9589 GB, free: 4.25 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.775e-05/0.7714, allocations: 2.828 kB / 0.9589 GB, free: 4.25 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.681e-05/0.7714, allocations: 12.97 kB / 0.9589 GB, free: 4.23 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.146e-06/0.7714, allocations: 9.078 kB / 0.9589 GB, free: 4.223 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.559e-06/0.7714, allocations: 0 / 0.9589 GB, free: 4.223 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.274e-06/0.7714, allocations: 1.406 kB / 0.9589 GB, free: 4.223 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001302/0.7716, allocations: 178.2 kB / 0.9591 GB, free: 4.008 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.783e-06/0.7716, allocations: 4 kB / 0.9591 GB, free: 4.004 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.111e-05/0.7717, allocations: 9.812 kB / 0.9591 GB, free: 4.004 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.117e-06/0.7717, allocations: 3.984 kB / 0.9591 GB, free: 4 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.125e-06/0.7717, allocations: 0 / 0.9591 GB, free: 4 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.723e-06/0.7717, allocations: 1.625 kB / 0.9591 GB, free: 4 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.433e-06/0.7717, allocations: 4 kB / 0.9591 GB, free: 3.996 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002093/0.7719, allocations: 173.5 kB / 0.9593 GB, free: 3.844 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.257e-05/0.7719, allocations: 86.25 kB / 0.9594 GB, free: 3.742 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.627e-05/0.772, allocations: 4.969 kB / 0.9594 GB, free: 3.738 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.323e-05/0.7721, allocations: 9.312 kB / 0.9594 GB, free: 3.734 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.585e-05/0.7721, allocations: 9.141 kB / 0.9594 GB, free: 3.727 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.161e-06/0.7721, allocations: 1.344 kB / 0.9594 GB, free: 3.727 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 4.13e-05/0.7722, allocations: 101 kB / 0.9595 GB, free: 3.637 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.2e-07/0.7722, allocations: 0 / 0.9595 GB, free: 3.637 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002456/0.7724, allocations: 6.844 kB / 0.9595 GB, free: 3.637 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 9.771e-05/0.7725, allocations: 96.28 kB / 0.9596 GB, free: 3.551 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0001979/0.7727, allocations: 50.78 kB / 0.9596 GB, free: 3.531 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.104e-06/0.7727, allocations: 0 / 0.9596 GB, free: 3.531 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 7.965e-05/0.7728, allocations: 24.48 kB / 0.9597 GB, free: 3.523 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002233/0.773, allocations: 7.859 kB / 0.9597 GB, free: 3.52 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003813/0.7734, allocations: 189.1 kB / 0.9598 GB, free: 3.348 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001566/0.7736, allocations: 0.6856 MB / 0.9605 GB, free: 2.645 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 3.582e-05/0.7736, allocations: 1.25 kB / 0.9605 GB, free: 2.645 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.977e-05/0.7737, allocations: 12.62 kB / 0.9605 GB, free: 2.633 MB / 0.7169 GB Notification: Performance of SimCode: time 5.01e-07/0.7737, allocations: 3.938 kB / 0.9605 GB, free: 2.629 MB / 0.7169 GB Notification: Performance of Templates: time 0.002621/0.7763, allocations: 386.8 kB / 0.9609 GB, free: 2.43 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/jenkins/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