Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Max.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.Controls.OBC.CDL.Continuous.Validation.Max,fileNamePrefix="Buildings_9_Buildings_Controls_OBC_CDL_Continuous_Validation_Max",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Continuous.Validation.Max,fileNamePrefix="Buildings_9_Buildings_Controls_OBC_CDL_Continuous_Validation_Max",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.00861/0.00861, allocations: 100.8 kB / 15.73 MB, free: 6.059 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.001977/0.001977, allocations: 195.4 kB / 16.68 MB, free: 5.969 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.755/2.755, allocations: 222.9 MB / 240.4 MB, free: 15.15 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 3.79/3.79, allocations: 390.3 MB / 0.6648 GB, free: 0.6328 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.002652/0.002652, allocations: 67.84 kB / 0.9505 GB, free: 8.055 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.505/1.508, allocations: 140.4 MB / 1.088 GB, free: 5.25 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Continuous.Validation.Max): time 0.00439/1.512, allocations: 0.7096 MB / 1.088 GB, free: 4.797 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.002203/1.514, allocations: 0.8105 MB / 1.089 GB, free: 4.18 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.615e-05/1.515, allocations: 0 / 1.089 GB, free: 4.18 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 4.312e-05/1.515, allocations: 0.6094 kB / 1.089 GB, free: 4.18 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.0001355/1.515, allocations: 10.62 kB / 1.089 GB, free: 4.172 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001821/1.515, allocations: 13.62 kB / 1.089 GB, free: 4.164 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0001566/1.515, allocations: 47.52 kB / 1.089 GB, free: 4.141 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001619/1.515, allocations: 6.547 kB / 1.089 GB, free: 4.141 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001423/1.516, allocations: 21.5 kB / 1.089 GB, free: 4.129 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001012/1.516, allocations: 18.97 kB / 1.089 GB, free: 4.121 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 3.59e-05/1.516, allocations: 3.219 kB / 1.089 GB, free: 4.121 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 2.242e-05/1.516, allocations: 3.594 kB / 1.089 GB, free: 4.121 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 3.678e-05/1.516, allocations: 7.656 kB / 1.089 GB, free: 4.117 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 7.12e-05/1.516, allocations: 21.08 kB / 1.089 GB, free: 4.102 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0002118/1.516, allocations: 49 kB / 1.089 GB, free: 4.078 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 8.496e-06/1.516, allocations: 0.6094 kB / 1.089 GB, free: 4.078 MB / 0.8575 GB Notification: Performance of FrontEnd: time 2.284e-06/1.516, allocations: 0 / 1.089 GB, free: 4.078 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 1.022e-05/1.516, allocations: 0 / 1.089 GB, free: 4.078 MB / 0.8575 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.0008992/1.517, allocations: 360.6 kB / 1.09 GB, free: 3.715 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 8.617e-05/1.517, allocations: 9.281 kB / 1.09 GB, free: 3.715 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.462e-05/1.517, allocations: 40.55 kB / 1.09 GB, free: 3.668 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.63e-05/1.517, allocations: 7.938 kB / 1.09 GB, free: 3.664 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001737/1.518, allocations: 171.5 kB / 1.09 GB, free: 3.461 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.209e-05/1.518, allocations: 1.969 kB / 1.09 GB, free: 3.461 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.949e-05/1.518, allocations: 2.5 kB / 1.09 GB, free: 3.461 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004201/1.518, allocations: 68.16 kB / 1.09 GB, free: 3.422 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.807e-05/1.518, allocations: 5.031 kB / 1.09 GB, free: 3.418 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.65e-05/1.518, allocations: 0 / 1.09 GB, free: 3.418 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.328e-05/1.518, allocations: 1.766 kB / 1.09 GB, free: 3.418 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005587/1.519, allocations: 74.12 kB / 1.09 GB, free: 3.398 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000624/1.519, allocations: 266.3 kB / 1.09 GB, free: 3.117 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003898/1.52, allocations: 50.94 kB / 1.09 GB, free: 3.09 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000298/1.52, allocations: 49.31 kB / 1.09 GB, free: 3.066 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 4.72e-05/1.52, allocations: 5.875 kB / 1.09 GB, free: 3.062 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.53e-05/1.52, allocations: 34.5 kB / 1.09 GB, free: 3.02 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=3): time 1.734e-06/1.52, allocations: 1.031 kB / 1.09 GB, free: 3.02 MB / 0.8575 GB Notification: Performance of matching and sorting (n=3): time 0.001009/1.521, allocations: 132.3 kB / 1.09 GB, free: 2.969 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.731e-05/1.521, allocations: 53.22 kB / 1.09 GB, free: 2.906 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001421/1.521, allocations: 106.5 kB / 1.091 GB, free: 2.805 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 1.464e-05/1.521, allocations: 26.52 kB / 1.091 GB, free: 2.773 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 5.353e-05/1.522, allocations: 91.39 kB / 1.091 GB, free: 2.684 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 3.097e-05/1.522, allocations: 5.641 kB / 1.091 GB, free: 2.68 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.189e-05/1.522, allocations: 17.5 kB / 1.091 GB, free: 2.66 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 7.844e-05/1.522, allocations: 318 kB / 1.091 GB, free: 2.344 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002439/1.522, allocations: 30.5 kB / 1.091 GB, free: 2.34 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002407/1.522, allocations: 32.28 kB / 1.091 GB, free: 2.336 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005082/1.523, allocations: 78.33 kB / 1.091 GB, free: 2.309 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.47e-06/1.523, allocations: 0 / 1.091 GB, free: 2.309 MB / 0.8575 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0005738/1.523, allocations: 98.83 kB / 1.091 GB, free: 2.266 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 2.703e-05/1.523, allocations: 5.516 kB / 1.091 GB, free: 2.266 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.398e-06/1.523, allocations: 0 / 1.091 GB, free: 2.266 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.934e-05/1.523, allocations: 1.797 kB / 1.091 GB, free: 2.266 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002299/1.524, allocations: 19.78 kB / 1.091 GB, free: 2.262 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.247e-06/1.524, allocations: 0 / 1.091 GB, free: 2.262 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001524/1.524, allocations: 16.02 kB / 1.091 GB, free: 2.258 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.381e-05/1.524, allocations: 1.375 kB / 1.091 GB, free: 2.258 MB / 0.8575 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 9.392e-05/1.524, allocations: 118.5 kB / 1.091 GB, free: 2.137 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.214e-05/1.524, allocations: 1.75 kB / 1.091 GB, free: 2.137 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006221/1.525, allocations: 109.7 kB / 1.092 GB, free: 2.082 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.142e-06/1.525, allocations: 0 / 1.092 GB, free: 2.082 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.065e-06/1.525, allocations: 1.25 kB / 1.092 GB, free: 2.082 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.63e-06/1.525, allocations: 0.6094 kB / 1.092 GB, free: 2.082 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002665/1.525, allocations: 175.1 kB / 1.092 GB, free: 1.879 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.577e-06/1.525, allocations: 0 / 1.092 GB, free: 1.879 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000185/1.525, allocations: 19.19 kB / 1.092 GB, free: 1.875 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.422e-06/1.525, allocations: 5.406 kB / 1.092 GB, free: 1.871 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.728e-05/1.525, allocations: 0.7969 kB / 1.092 GB, free: 1.871 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.677e-06/1.525, allocations: 4.312 kB / 1.092 GB, free: 1.867 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.545e-06/1.525, allocations: 1.438 kB / 1.092 GB, free: 1.867 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006187/1.526, allocations: 201.2 kB / 1.092 GB, free: 1.715 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 4.366e-05/1.526, allocations: 80.09 kB / 1.092 GB, free: 1.621 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.375e-05/1.526, allocations: 1.297 kB / 1.092 GB, free: 1.621 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001999/1.526, allocations: 15.38 kB / 1.092 GB, free: 1.617 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.117e-05/1.526, allocations: 3.406 kB / 1.092 GB, free: 1.617 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.263e-05/1.526, allocations: 10.11 kB / 1.092 GB, free: 1.609 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 6.184e-05/1.527, allocations: 87.41 kB / 1.092 GB, free: 1.531 MB / 0.8575 GB Notification: Performance of sort global known variables: time 2.31e-07/1.527, allocations: 0 / 1.092 GB, free: 1.531 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0004397/1.527, allocations: 10.45 kB / 1.092 GB, free: 1.527 MB / 0.8575 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.001157/1.528, allocations: 0.7355 MB / 1.093 GB, free: 16.85 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.0006678/1.529, allocations: 75.11 kB / 1.093 GB, free: 16.83 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 4.128e-06/1.529, allocations: 0.9688 kB / 1.093 GB, free: 16.83 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 0.0002994/1.529, allocations: 33.91 kB / 1.093 GB, free: 16.83 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006074/1.53, allocations: 4.938 kB / 1.093 GB, free: 16.83 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008828/1.531, allocations: 158.9 kB / 1.093 GB, free: 16.66 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004274/1.531, allocations: 0.6848 MB / 1.094 GB, free: 15.96 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 5.961e-05/1.531, allocations: 1.328 kB / 1.094 GB, free: 15.96 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.934e-05/1.531, allocations: 15.09 kB / 1.094 GB, free: 15.96 MB / 0.8731 GB Notification: Performance of SimCode: time 3.71e-07/1.531, allocations: 0 / 1.094 GB, free: 15.96 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03703/1.568, allocations: 1.63 MB / 1.095 GB, free: 15.56 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.96/14.53, allocations: 3.781 kB / 1.095 GB, free: 15.56 MB / 0.8731 GB (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Max.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Max.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Max.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Max.sim & python3 -m fmpy simulate --output-file Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Max_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 Buildings_9_Buildings_Controls_OBC_CDL_Continuous_Validation_Max.fmu > Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Max.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Max_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_CDL_Continuous_Validation_Max.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Max.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches