Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.MatrixGain.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.MatrixGain,fileNamePrefix="Buildings_9_Buildings_Controls_OBC_CDL_Continuous_Validation_MatrixGain",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Continuous.Validation.MatrixGain,fileNamePrefix="Buildings_9_Buildings_Controls_OBC_CDL_Continuous_Validation_MatrixGain",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.001639/0.001639, allocations: 108 kB / 15.6 MB, free: 132 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.002049/0.002049, allocations: 193.7 kB / 16.53 MB, free: 6.391 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.397/1.397, allocations: 222.9 MB / 240.2 MB, free: 4.406 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.405/2.405, allocations: 390.3 MB / 0.6647 GB, free: 324 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.00142/0.00142, allocations: 67.89 kB / 0.8127 GB, free: 14.14 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6064/0.6078, allocations: 140.4 MB / 0.9497 GB, free: 9.211 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Continuous.Validation.MatrixGain): time 0.001804/0.6097, allocations: 0.7612 MB / 0.9505 GB, free: 8.625 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0007226/0.6104, allocations: 0.8291 MB / 0.9513 GB, free: 7.945 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.401e-05/0.6105, allocations: 0 / 0.9513 GB, free: 7.945 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.000182/0.6107, allocations: 59.2 kB / 0.9514 GB, free: 7.914 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 5.402e-05/0.6107, allocations: 36.86 kB / 0.9514 GB, free: 7.891 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 6.441e-05/0.6108, allocations: 14.39 kB / 0.9514 GB, free: 7.879 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0001127/0.6109, allocations: 95.39 kB / 0.9515 GB, free: 7.824 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001191/0.6111, allocations: 30.27 kB / 0.9515 GB, free: 7.805 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 6.562e-05/0.6111, allocations: 37.25 kB / 0.9516 GB, free: 7.785 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000135/0.6113, allocations: 85.12 kB / 0.9516 GB, free: 7.738 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 2.934e-05/0.6113, allocations: 7.938 kB / 0.9516 GB, free: 7.738 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 1.873e-05/0.6113, allocations: 12.59 kB / 0.9517 GB, free: 7.734 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 6.428e-05/0.6114, allocations: 39.83 kB / 0.9517 GB, free: 7.707 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 4.789e-05/0.6114, allocations: 40.33 kB / 0.9517 GB, free: 7.676 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001141/0.6116, allocations: 108.1 kB / 0.9518 GB, free: 7.598 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 2.484e-06/0.6116, allocations: 1.5 kB / 0.9518 GB, free: 7.598 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.112e-06/0.6116, allocations: 0 / 0.9518 GB, free: 7.598 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 6.923e-06/0.6116, allocations: 3.984 kB / 0.9518 GB, free: 7.594 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: 12 * Number of variables: 12 Notification: Performance of Generate backend data structure: time 0.0006535/0.6123, allocations: 469 kB / 0.9523 GB, free: 7.152 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.566e-05/0.6123, allocations: 9.781 kB / 0.9523 GB, free: 7.152 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.09e-05/0.6123, allocations: 36.02 kB / 0.9523 GB, free: 7.109 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.047e-05/0.6124, allocations: 11.41 kB / 0.9523 GB, free: 7.105 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000136/0.6125, allocations: 209.1 kB / 0.9525 GB, free: 6.879 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.023e-06/0.6125, allocations: 1.562 kB / 0.9525 GB, free: 6.879 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.68e-05/0.6125, allocations: 4.531 kB / 0.9525 GB, free: 6.879 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000378/0.6129, allocations: 156.2 kB / 0.9527 GB, free: 6.77 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.486e-06/0.6129, allocations: 5.062 kB / 0.9527 GB, free: 6.766 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.277e-05/0.613, allocations: 3.984 kB / 0.9527 GB, free: 6.762 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.052e-06/0.613, allocations: 2.125 kB / 0.9527 GB, free: 6.762 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005451/0.6135, allocations: 174.7 kB / 0.9529 GB, free: 6.684 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007189/0.6142, allocations: 0.5055 MB / 0.9534 GB, free: 6.219 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003886/0.6147, allocations: 160.9 kB / 0.9535 GB, free: 6.117 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002645/0.6149, allocations: 89.86 kB / 0.9536 GB, free: 6.07 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.371e-05/0.6149, allocations: 5.219 kB / 0.9536 GB, free: 6.066 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.981e-05/0.615, allocations: 39.7 kB / 0.9536 GB, free: 6.02 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=8): time 1.293e-06/0.615, allocations: 5.156 kB / 0.9537 GB, free: 6.016 MB / 0.7169 GB Notification: Performance of matching and sorting (n=8): time 0.0009005/0.6159, allocations: 285.4 kB / 0.9539 GB, free: 5.871 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.323e-05/0.6159, allocations: 78.2 kB / 0.954 GB, free: 5.777 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001257/0.6161, allocations: 163.7 kB / 0.9542 GB, free: 5.648 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.206e-05/0.6161, allocations: 27.08 kB / 0.9542 GB, free: 5.617 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 3.982e-05/0.6161, allocations: 96.83 kB / 0.9543 GB, free: 5.523 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 4.538e-05/0.6162, allocations: 31.67 kB / 0.9543 GB, free: 5.496 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.9e-05/0.6162, allocations: 23.62 kB / 0.9543 GB, free: 5.473 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 5.167e-05/0.6163, allocations: 326.2 kB / 0.9546 GB, free: 5.148 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002679/0.6166, allocations: 84.27 kB / 0.9547 GB, free: 5.109 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002543/0.6168, allocations: 95.83 kB / 0.9548 GB, free: 5.055 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004972/0.6173, allocations: 173.1 kB / 0.955 GB, free: 4.969 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.495e-06/0.6173, allocations: 0 / 0.955 GB, free: 4.969 MB / 0.7169 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0005377/0.6179, allocations: 210.2 kB / 0.9552 GB, free: 4.855 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.923e-05/0.6179, allocations: 6.156 kB / 0.9552 GB, free: 4.855 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.079e-06/0.6179, allocations: 0 / 0.9552 GB, free: 4.855 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.422e-05/0.6179, allocations: 1.5 kB / 0.9552 GB, free: 4.855 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002138/0.6182, allocations: 35.27 kB / 0.9552 GB, free: 4.844 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.845e-06/0.6182, allocations: 1.562 kB / 0.9552 GB, free: 4.844 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001373/0.6183, allocations: 28.83 kB / 0.9552 GB, free: 4.828 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.487e-06/0.6183, allocations: 1.938 kB / 0.9552 GB, free: 4.828 MB / 0.7169 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * 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 (8): * Single equations (assignments): 8 * 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.36e-05/0.6184, allocations: 132.6 kB / 0.9554 GB, free: 4.699 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.032e-05/0.6185, allocations: 17.23 kB / 0.9554 GB, free: 4.688 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.243e-05/0.6185, allocations: 21.61 kB / 0.9554 GB, free: 4.672 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.755e-06/0.6185, allocations: 0 / 0.9554 GB, free: 4.672 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.059e-06/0.6185, allocations: 1.75 kB / 0.9554 GB, free: 4.672 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.845e-06/0.6185, allocations: 0 / 0.9554 GB, free: 4.672 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002292/0.6188, allocations: 230.7 kB / 0.9556 GB, free: 4.43 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.114e-06/0.6188, allocations: 1.531 kB / 0.9556 GB, free: 4.43 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001786/0.619, allocations: 37.55 kB / 0.9557 GB, free: 4.414 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.335e-06/0.619, allocations: 1.281 kB / 0.9557 GB, free: 4.414 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.086e-05/0.619, allocations: 1.125 kB / 0.9557 GB, free: 4.414 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.014e-06/0.619, allocations: 1.312 kB / 0.9557 GB, free: 4.414 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.022e-06/0.619, allocations: 0 / 0.9557 GB, free: 4.414 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005611/0.6196, allocations: 380.5 kB / 0.956 GB, free: 4.125 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.599e-05/0.6196, allocations: 96.3 kB / 0.9561 GB, free: 4.016 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.188e-05/0.6196, allocations: 5.25 kB / 0.9561 GB, free: 4.012 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002003/0.6198, allocations: 29.45 kB / 0.9562 GB, free: 3.996 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.535e-05/0.6199, allocations: 7.719 kB / 0.9562 GB, free: 3.992 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.524e-06/0.6199, allocations: 6.172 kB / 0.9562 GB, free: 3.988 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 6.668e-05/0.62, allocations: 122.6 kB / 0.9563 GB, free: 3.895 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.21e-07/0.62, allocations: 0 / 0.9563 GB, free: 3.895 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.000281/0.6203, allocations: 16.75 kB / 0.9563 GB, free: 3.895 MB / 0.7169 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * 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 (8): * Single equations (assignments): 8 * 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.000749/0.621, allocations: 0.9143 MB / 0.9572 GB, free: 3.074 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0005794/0.6216, allocations: 179.3 kB / 0.9574 GB, free: 2.996 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.826e-06/0.6216, allocations: 1.344 kB / 0.9574 GB, free: 2.996 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0002698/0.6219, allocations: 88.11 kB / 0.9575 GB, free: 2.961 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003712/0.6223, allocations: 21.48 kB / 0.9575 GB, free: 2.945 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002338/0.6246, allocations: 1.963 MB / 0.9594 GB, free: 1.324 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001445/0.6248, allocations: 0.7202 MB / 0.9601 GB, free: 0.6016 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 8.315e-05/0.6249, allocations: 25.88 kB / 0.9601 GB, free: 0.5938 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.897e-05/0.625, allocations: 31.67 kB / 0.9602 GB, free: 0.5664 MB / 0.7169 GB Notification: Performance of SimCode: time 2e-07/0.625, allocations: 0 / 0.9602 GB, free: 0.5664 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02025/0.6452, allocations: 2.649 MB / 0.9627 GB, free: 15.2 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.248/7.893, allocations: 5.922 kB / 0.9627 GB, free: 15.2 MB / 0.7325 GB (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.MatrixGain.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.MatrixGain.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.MatrixGain.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.MatrixGain.sim & python3 -m fmpy simulate --output-file Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.MatrixGain_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_MatrixGain.fmu > Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.MatrixGain.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.MatrixGain_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_CDL_Continuous_Validation_MatrixGain.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.MatrixGain.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches