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.001539/0.001539, allocations: 102.7 kB / 16.27 MB, free: 6.414 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.001882/0.001883, allocations: 189.7 kB / 17.2 MB, free: 5.953 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.355/1.355, allocations: 222.9 MB / 240.9 MB, free: 15.23 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.262/2.262, allocations: 390.3 MB / 0.6653 GB, free: 0.7148 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001371/0.001371, allocations: 66.61 kB / 0.8132 GB, free: 32.95 MB / 0.6231 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2691/0.2704, allocations: 140.4 MB / 0.9503 GB, free: 8.879 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc): time 0.003177/0.2737, allocations: 1.509 MB / 0.9518 GB, free: 7.355 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.0007754/0.2745, allocations: 411.1 kB / 0.9521 GB, free: 6.949 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.014e-05/0.2746, allocations: 0 / 0.9521 GB, free: 6.949 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 3.616e-05/0.2746, allocations: 7.922 kB / 0.9522 GB, free: 6.941 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 7.081e-05/0.2747, allocations: 11.86 kB / 0.9522 GB, free: 6.93 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001912/0.2749, allocations: 15.98 kB / 0.9522 GB, free: 6.914 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.0001237/0.2751, allocations: 51.78 kB / 0.9522 GB, free: 6.863 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001185/0.2752, allocations: 19.83 kB / 0.9522 GB, free: 6.844 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001249/0.2753, allocations: 23.97 kB / 0.9523 GB, free: 6.82 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 7.798e-05/0.2754, allocations: 23.86 kB / 0.9523 GB, free: 6.797 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 2.097e-05/0.2754, allocations: 4 kB / 0.9523 GB, free: 6.793 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 1.325e-05/0.2755, allocations: 0 / 0.9523 GB, free: 6.793 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 2.629e-05/0.2755, allocations: 11.98 kB / 0.9523 GB, free: 6.781 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 4.447e-05/0.2755, allocations: 23.88 kB / 0.9523 GB, free: 6.758 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.0001146/0.2757, allocations: 52.08 kB / 0.9524 GB, free: 6.707 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 3.998e-06/0.2757, allocations: 0 / 0.9524 GB, free: 6.707 MB / 0.7325 GB Notification: Performance of FrontEnd: time 1.182e-06/0.2757, allocations: 0 / 0.9524 GB, free: 6.707 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 7.154e-06/0.2757, allocations: 0 / 0.9524 GB, free: 6.707 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.0005208/0.2762, allocations: 359.2 kB / 0.9527 GB, free: 6.309 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 4.115e-05/0.2763, allocations: 12.03 kB / 0.9527 GB, free: 6.297 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.936e-05/0.2763, allocations: 0.9375 kB / 0.9527 GB, free: 6.297 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000142/0.2764, allocations: 180.2 kB / 0.9529 GB, free: 6.082 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.466e-05/0.2765, allocations: 8.375 kB / 0.9529 GB, free: 6.074 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.26e-05/0.2765, allocations: 4.359 kB / 0.9529 GB, free: 6.07 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001911/0.2767, allocations: 53.98 kB / 0.953 GB, free: 6.012 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.437e-06/0.2767, allocations: 0 / 0.953 GB, free: 6.012 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.311e-05/0.2767, allocations: 8 kB / 0.953 GB, free: 6.004 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.318e-06/0.2767, allocations: 0 / 0.953 GB, free: 6.004 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001325/0.2769, allocations: 31.97 kB / 0.953 GB, free: 5.973 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004191/0.2773, allocations: 284.7 kB / 0.9533 GB, free: 5.645 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001265/0.2774, allocations: 42.56 kB / 0.9533 GB, free: 5.594 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.517e-05/0.2775, allocations: 20.94 kB / 0.9533 GB, free: 5.57 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 1.926e-05/0.2776, allocations: 4 kB / 0.9533 GB, free: 5.566 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.666e-05/0.2776, allocations: 34.56 kB / 0.9534 GB, free: 5.523 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=3): time 2.604e-06/0.2776, allocations: 0 / 0.9534 GB, free: 5.523 MB / 0.7325 GB Notification: Performance of matching and sorting (n=3): time 0.0003159/0.2779, allocations: 93.52 kB / 0.9535 GB, free: 5.426 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.977e-05/0.278, allocations: 55.41 kB / 0.9535 GB, free: 5.359 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.764e-05/0.2781, allocations: 109.8 kB / 0.9536 GB, free: 5.242 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 1.62e-05/0.2781, allocations: 25.7 kB / 0.9536 GB, free: 5.211 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 5.457e-05/0.2781, allocations: 92.14 kB / 0.9537 GB, free: 5.117 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 2.319e-05/0.2782, allocations: 19.73 kB / 0.9538 GB, free: 5.098 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.617e-05/0.2782, allocations: 13.72 kB / 0.9538 GB, free: 5.078 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001362/0.2784, allocations: 322.8 kB / 0.9541 GB, free: 4.754 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.99e-05/0.2784, allocations: 16 kB / 0.9541 GB, free: 4.738 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.879e-05/0.2785, allocations: 15.98 kB / 0.9541 GB, free: 4.723 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001402/0.2787, allocations: 48.83 kB / 0.9542 GB, free: 4.672 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.783e-06/0.2787, allocations: 4 kB / 0.9542 GB, free: 4.668 MB / 0.7325 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001783/0.2789, allocations: 69.59 kB / 0.9542 GB, free: 4.594 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 1.595e-05/0.2789, allocations: 4 kB / 0.9542 GB, free: 4.59 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.531e-06/0.2789, allocations: 0 / 0.9542 GB, free: 4.59 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.609e-05/0.2789, allocations: 4 kB / 0.9542 GB, free: 4.586 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001016/0.279, allocations: 7.984 kB / 0.9542 GB, free: 4.578 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.533e-06/0.279, allocations: 0 / 0.9542 GB, free: 4.578 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.516e-05/0.2791, allocations: 11.91 kB / 0.9542 GB, free: 4.566 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.744e-06/0.2791, allocations: 4 kB / 0.9543 GB, free: 4.562 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.899e-05/0.2792, allocations: 113.8 kB / 0.9544 GB, free: 4.441 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.214e-05/0.2792, allocations: 7.984 kB / 0.9544 GB, free: 4.434 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.851e-05/0.2793, allocations: 7.906 kB / 0.9544 GB, free: 4.418 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.004e-06/0.2793, allocations: 0 / 0.9544 GB, free: 4.418 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.427e-06/0.2793, allocations: 0 / 0.9544 GB, free: 4.418 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.905e-06/0.2793, allocations: 0 / 0.9544 GB, free: 4.418 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001854/0.2795, allocations: 177.9 kB / 0.9545 GB, free: 4.195 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.292e-06/0.2795, allocations: 0 / 0.9545 GB, free: 4.195 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.282e-05/0.2796, allocations: 11.98 kB / 0.9546 GB, free: 4.184 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.124e-06/0.2796, allocations: 4 kB / 0.9546 GB, free: 4.18 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.885e-06/0.2796, allocations: 0 / 0.9546 GB, free: 4.18 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.136e-06/0.2796, allocations: 3.938 kB / 0.9546 GB, free: 4.176 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.735e-06/0.2796, allocations: 0 / 0.9546 GB, free: 4.176 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002294/0.2798, allocations: 183.3 kB / 0.9547 GB, free: 3.98 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 5.122e-05/0.2799, allocations: 81.05 kB / 0.9548 GB, free: 3.883 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.608e-05/0.2799, allocations: 4 kB / 0.9548 GB, free: 3.879 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.211e-05/0.28, allocations: 7.984 kB / 0.9548 GB, free: 3.871 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.077e-05/0.2801, allocations: 0 / 0.9548 GB, free: 3.871 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.542e-06/0.2801, allocations: 4 kB / 0.9548 GB, free: 3.867 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 5.695e-05/0.2801, allocations: 91.27 kB / 0.9549 GB, free: 3.777 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.2e-07/0.2801, allocations: 0 / 0.9549 GB, free: 3.777 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0002235/0.2804, allocations: 11.91 kB / 0.9549 GB, free: 3.766 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.0001283/0.2805, allocations: 103.2 kB / 0.955 GB, free: 3.656 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0001893/0.2807, allocations: 43.91 kB / 0.9551 GB, free: 3.613 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 1.973e-06/0.2807, allocations: 0 / 0.9551 GB, free: 3.613 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 7.302e-05/0.2808, allocations: 19.98 kB / 0.9551 GB, free: 3.594 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002242/0.281, allocations: 17 kB / 0.9551 GB, free: 3.578 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004973/0.2815, allocations: 182 kB / 0.9553 GB, free: 3.371 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004829/0.282, allocations: 0.6844 MB / 0.9559 GB, free: 2.66 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.836e-05/0.2821, allocations: 15.42 kB / 0.956 GB, free: 2.645 MB / 0.7325 GB Notification: Performance of SimCode: time 2.4e-07/0.2821, allocations: 0 / 0.956 GB, free: 2.645 MB / 0.7325 GB Notification: Performance of Templates: time 0.002574/0.2847, allocations: 0.7006 MB / 0.9566 GB, free: 1.949 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