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: "" <> buildModelFMU(Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc,fileNamePrefix="Buildings_9_Buildings_Fluid_SolarCollectors_Controls_BaseClasses_Examples_GCritCalc",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc,fileNamePrefix="Buildings_9_Buildings_Fluid_SolarCollectors_Controls_BaseClasses_Examples_GCritCalc",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001548/0.001548, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001897/0.001897, allocations: 194.3 kB / 16.53 MB, free: 6.664 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.362/1.362, allocations: 222.9 MB / 240.2 MB, free: 4.414 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.402/2.402, allocations: 390.3 MB / 0.6647 GB, free: 492 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001516/0.001517, allocations: 67.91 kB / 0.8127 GB, free: 14.38 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7112/0.7127, allocations: 140.4 MB / 0.9497 GB, free: 9.117 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc): time 0.002568/0.7153, allocations: 1.495 MB / 0.9512 GB, free: 7.938 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.000608/0.7159, allocations: 409.4 kB / 0.9516 GB, free: 7.621 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.718e-05/0.716, allocations: 0 / 0.9516 GB, free: 7.621 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 2.636e-05/0.716, allocations: 7.922 kB / 0.9516 GB, free: 7.613 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 5.193e-05/0.7161, allocations: 10.62 kB / 0.9516 GB, free: 7.605 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001495/0.7163, allocations: 14.72 kB / 0.9516 GB, free: 7.594 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 7.371e-05/0.7163, allocations: 52.41 kB / 0.9517 GB, free: 7.562 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 9.192e-05/0.7164, allocations: 21.42 kB / 0.9517 GB, free: 7.547 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 8.909e-05/0.7165, allocations: 21.61 kB / 0.9517 GB, free: 7.535 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 6.736e-05/0.7166, allocations: 26.73 kB / 0.9517 GB, free: 7.516 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.695e-05/0.7166, allocations: 4.125 kB / 0.9517 GB, free: 7.516 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 1.269e-05/0.7167, allocations: 6.688 kB / 0.9517 GB, free: 7.512 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 1.804e-05/0.7167, allocations: 9.344 kB / 0.9518 GB, free: 7.504 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 3.491e-05/0.7167, allocations: 21.38 kB / 0.9518 GB, free: 7.488 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 8.537e-05/0.7168, allocations: 45.09 kB / 0.9518 GB, free: 7.457 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.397e-06/0.7168, allocations: 0 / 0.9518 GB, free: 7.457 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.143e-06/0.7168, allocations: 1.125 kB / 0.9518 GB, free: 7.457 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 7.894e-06/0.7168, allocations: 7.938 kB / 0.9518 GB, free: 7.449 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.0003827/0.7172, allocations: 359.5 kB / 0.9522 GB, free: 7.07 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.823e-05/0.7173, allocations: 10.41 kB / 0.9522 GB, free: 7.07 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.344e-05/0.7173, allocations: 34.75 kB / 0.9522 GB, free: 7.027 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.545e-05/0.7173, allocations: 4.5 kB / 0.9522 GB, free: 7.027 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.607e-05/0.7174, allocations: 180 kB / 0.9524 GB, free: 6.816 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.085e-05/0.7174, allocations: 1.688 kB / 0.9524 GB, free: 6.816 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.187e-05/0.7174, allocations: 1.469 kB / 0.9524 GB, free: 6.816 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001476/0.7176, allocations: 63.95 kB / 0.9525 GB, free: 6.762 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.342e-06/0.7176, allocations: 0 / 0.9525 GB, free: 6.762 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.656e-06/0.7176, allocations: 0 / 0.9525 GB, free: 6.762 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.19e-06/0.7176, allocations: 1.719 kB / 0.9525 GB, free: 6.762 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000124/0.7178, allocations: 39.22 kB / 0.9525 GB, free: 6.742 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002942/0.7181, allocations: 273.3 kB / 0.9528 GB, free: 6.441 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001091/0.7182, allocations: 41.5 kB / 0.9528 GB, free: 6.406 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.916e-05/0.7183, allocations: 24.16 kB / 0.9528 GB, free: 6.391 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.547e-05/0.7183, allocations: 0 / 0.9528 GB, free: 6.391 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.305e-05/0.7183, allocations: 39.59 kB / 0.9529 GB, free: 6.344 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=3): time 1.011e-06/0.7183, allocations: 3.938 kB / 0.9529 GB, free: 6.34 MB / 0.7169 GB Notification: Performance of matching and sorting (n=3): time 0.0003108/0.7186, allocations: 92.39 kB / 0.9529 GB, free: 6.277 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.956e-05/0.7187, allocations: 53 kB / 0.953 GB, free: 6.215 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.365e-05/0.7187, allocations: 115.2 kB / 0.9531 GB, free: 6.105 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 6.853e-06/0.7187, allocations: 26.77 kB / 0.9531 GB, free: 6.074 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 2.906e-05/0.7188, allocations: 94.69 kB / 0.9532 GB, free: 5.98 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.8e-05/0.7188, allocations: 13.44 kB / 0.9532 GB, free: 5.969 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.09e-05/0.7188, allocations: 16.16 kB / 0.9532 GB, free: 5.949 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 4.075e-05/0.7189, allocations: 328.4 kB / 0.9536 GB, free: 5.621 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.79e-05/0.7189, allocations: 13.23 kB / 0.9536 GB, free: 5.617 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.67e-05/0.719, allocations: 22.73 kB / 0.9536 GB, free: 5.605 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001191/0.7191, allocations: 36.78 kB / 0.9536 GB, free: 5.586 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.433e-06/0.7191, allocations: 0 / 0.9536 GB, free: 5.586 MB / 0.7169 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001625/0.7193, allocations: 80.45 kB / 0.9537 GB, free: 5.527 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.306e-05/0.7193, allocations: 4.531 kB / 0.9537 GB, free: 5.527 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.619e-06/0.7193, allocations: 3.984 kB / 0.9537 GB, free: 5.523 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.218e-05/0.7194, allocations: 0.9375 kB / 0.9537 GB, free: 5.523 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.736e-05/0.7195, allocations: 10.27 kB / 0.9537 GB, free: 5.52 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.21e-06/0.7195, allocations: 1.375 kB / 0.9537 GB, free: 5.52 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.3e-05/0.7195, allocations: 4.031 kB / 0.9537 GB, free: 5.52 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.743e-06/0.7195, allocations: 0 / 0.9537 GB, free: 5.52 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 4.946e-05/0.7196, allocations: 128.5 kB / 0.9539 GB, free: 5.387 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.835e-05/0.7196, allocations: 6.656 kB / 0.9539 GB, free: 5.383 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.136e-05/0.7197, allocations: 5.094 kB / 0.9539 GB, free: 5.371 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.633e-06/0.7197, allocations: 3.938 kB / 0.9539 GB, free: 5.367 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.539e-06/0.7197, allocations: 1.5 kB / 0.9539 GB, free: 5.367 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.294e-06/0.7197, allocations: 0 / 0.9539 GB, free: 5.367 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001226/0.7198, allocations: 174.7 kB / 0.954 GB, free: 5.156 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.683e-06/0.7198, allocations: 0 / 0.954 GB, free: 5.156 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.106e-05/0.7199, allocations: 10.53 kB / 0.954 GB, free: 5.152 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.504e-06/0.7199, allocations: 1.438 kB / 0.954 GB, free: 5.152 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.185e-06/0.7199, allocations: 7.984 kB / 0.9541 GB, free: 5.145 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.024e-06/0.7199, allocations: 0 / 0.9541 GB, free: 5.145 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.854e-06/0.7199, allocations: 5.156 kB / 0.9541 GB, free: 5.141 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001784/0.7201, allocations: 166.3 kB / 0.9542 GB, free: 4.988 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 1.859e-05/0.7201, allocations: 78.55 kB / 0.9543 GB, free: 4.895 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.542e-05/0.7202, allocations: 3.984 kB / 0.9543 GB, free: 4.891 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.257e-05/0.7202, allocations: 3.75 kB / 0.9543 GB, free: 4.891 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.506e-05/0.7203, allocations: 9.156 kB / 0.9543 GB, free: 4.883 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.102e-06/0.7203, allocations: 9.078 kB / 0.9543 GB, free: 4.875 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 3.37e-05/0.7203, allocations: 89.09 kB / 0.9544 GB, free: 4.797 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.01e-07/0.7203, allocations: 0 / 0.9544 GB, free: 4.797 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002269/0.7206, allocations: 7.062 kB / 0.9544 GB, free: 4.797 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 0.0003391/0.7209, allocations: 0.7097 MB / 0.9551 GB, free: 4.105 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0001724/0.7211, allocations: 38.75 kB / 0.9551 GB, free: 4.09 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.683e-06/0.7211, allocations: 0 / 0.9551 GB, free: 4.09 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 7.035e-05/0.7212, allocations: 21.8 kB / 0.9552 GB, free: 4.082 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002154/0.7214, allocations: 5.188 kB / 0.9552 GB, free: 4.078 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004612/0.7219, allocations: 194.5 kB / 0.9554 GB, free: 3.898 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.734e-05/0.722, allocations: 0.6888 MB / 0.956 GB, free: 3.191 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 3.26e-05/0.722, allocations: 1.203 kB / 0.956 GB, free: 3.191 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.865e-05/0.7221, allocations: 18.19 kB / 0.956 GB, free: 3.176 MB / 0.7169 GB Notification: Performance of SimCode: time 2.3e-07/0.7221, allocations: 0 / 0.956 GB, free: 3.176 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01984/0.7419, allocations: 1.478 MB / 0.9575 GB, free: 2.387 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.426/8.168, allocations: 15.45 kB / 0.9575 GB, free: 2.375 MB / 0.7169 GB (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 & python3 -m fmpy simulate --output-file Buildings_9_Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc_res.csv --start-time 0 --stop-time 100 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.04 Buildings_9_Buildings_Fluid_SolarCollectors_Controls_BaseClasses_Examples_GCritCalc.fmu > Buildings_9_Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc_res.csv","/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