Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Utilities.Math.Examples.QuadraticLinear.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.Utilities.Math.Examples.QuadraticLinear,fileNamePrefix="Buildings_9_Buildings_Utilities_Math_Examples_QuadraticLinear",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Examples.QuadraticLinear,fileNamePrefix="Buildings_9_Buildings_Utilities_Math_Examples_QuadraticLinear",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.004648/0.004648, allocations: 102.7 kB / 15.73 MB, free: 5.539 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.001077/0.001078, allocations: 193.2 kB / 16.67 MB, free: 5.469 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.303/1.303, 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 2.189/2.189, allocations: 390.3 MB / 0.6648 GB, free: 0.6172 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001468/0.001468, allocations: 67.89 kB / 0.9504 GB, free: 8.133 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7647/0.7661, allocations: 140.4 MB / 1.087 GB, free: 5.266 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.QuadraticLinear): time 0.002307/0.7685, allocations: 1.488 MB / 1.089 GB, free: 4.23 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.000318/0.7688, allocations: 111.5 kB / 1.089 GB, free: 4.152 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.208e-05/0.7689, allocations: 0.8125 kB / 1.089 GB, free: 4.152 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 4.382e-05/0.7689, allocations: 5.344 kB / 1.089 GB, free: 4.148 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 6.069e-05/0.769, allocations: 15.19 kB / 1.089 GB, free: 4.137 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002225/0.7692, allocations: 21.05 kB / 1.089 GB, free: 4.129 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 9.173e-05/0.7693, allocations: 43.62 kB / 1.089 GB, free: 4.109 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001066/0.7694, allocations: 14.72 kB / 1.089 GB, free: 4.102 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 4.789e-05/0.7695, allocations: 17.05 kB / 1.089 GB, free: 4.094 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 4.544e-05/0.7696, allocations: 19.2 kB / 1.089 GB, free: 4.086 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 1.518e-05/0.7696, allocations: 3.781 kB / 1.089 GB, free: 4.086 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 6.681e-05/0.7696, allocations: 21.55 kB / 1.089 GB, free: 4.082 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 4.837e-05/0.7697, allocations: 21.27 kB / 1.089 GB, free: 4.066 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 3.006e-05/0.7697, allocations: 18.97 kB / 1.089 GB, free: 4.055 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0001318/0.7699, allocations: 65.28 kB / 1.089 GB, free: 4.023 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 4.739e-06/0.7699, allocations: 1.094 kB / 1.089 GB, free: 4.023 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.422e-06/0.7699, allocations: 0 / 1.089 GB, free: 4.023 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 9.889e-06/0.7699, allocations: 0 / 1.089 GB, free: 4.023 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.0004674/0.7704, allocations: 375.9 kB / 1.09 GB, free: 3.648 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.077e-05/0.7704, allocations: 9.719 kB / 1.09 GB, free: 3.648 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.425e-05/0.7704, allocations: 36.39 kB / 1.09 GB, free: 3.605 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.968e-05/0.7705, allocations: 8.312 kB / 1.09 GB, free: 3.602 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.212e-05/0.7706, allocations: 177.5 kB / 1.09 GB, free: 3.395 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.608e-06/0.7706, allocations: 1.625 kB / 1.09 GB, free: 3.395 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.46e-05/0.7706, allocations: 6.5 kB / 1.09 GB, free: 3.391 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002621/0.7709, allocations: 73.86 kB / 1.09 GB, free: 3.352 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.346e-06/0.7709, allocations: 3.938 kB / 1.09 GB, free: 3.348 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.218e-06/0.7709, allocations: 1.344 kB / 1.09 GB, free: 3.348 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.827e-06/0.7709, allocations: 4 kB / 1.09 GB, free: 3.344 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003184/0.7712, allocations: 72.92 kB / 1.09 GB, free: 3.336 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000312/0.7716, allocations: 283.8 kB / 1.09 GB, free: 3.051 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002223/0.7718, allocations: 71.83 kB / 1.09 GB, free: 3.012 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001635/0.772, allocations: 42.2 kB / 1.09 GB, free: 3 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002311/0.7722, allocations: 106.3 kB / 1.091 GB, free: 2.906 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.687e-05/0.7722, allocations: 31.92 kB / 1.091 GB, free: 2.867 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=3): time 1.142e-06/0.7722, allocations: 4.875 kB / 1.091 GB, free: 2.863 MB / 0.8575 GB Notification: Performance of matching and sorting (n=3): time 0.000591/0.7728, allocations: 150.9 kB / 1.091 GB, free: 2.809 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.037e-05/0.7729, allocations: 52.2 kB / 1.091 GB, free: 2.746 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.636e-05/0.7729, allocations: 127.7 kB / 1.091 GB, free: 2.641 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 8.135e-06/0.773, allocations: 29.7 kB / 1.091 GB, free: 2.605 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 3.499e-05/0.773, allocations: 93.19 kB / 1.091 GB, free: 2.516 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 1.891e-05/0.773, allocations: 9.469 kB / 1.091 GB, free: 2.508 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.282e-05/0.7731, allocations: 18.33 kB / 1.091 GB, free: 2.488 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 4.963e-05/0.7731, allocations: 318.7 kB / 1.091 GB, free: 2.172 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001682/0.7733, allocations: 34.36 kB / 1.091 GB, free: 2.168 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001693/0.7735, allocations: 45.25 kB / 1.091 GB, free: 2.156 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002969/0.7738, allocations: 79.16 kB / 1.091 GB, free: 2.137 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.492e-06/0.7738, allocations: 0 / 1.091 GB, free: 2.137 MB / 0.8575 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0003521/0.7741, allocations: 120.5 kB / 1.092 GB, free: 2.082 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.478e-05/0.7742, allocations: 5.344 kB / 1.092 GB, free: 2.082 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.43e-06/0.7742, allocations: 1.859 kB / 1.092 GB, free: 2.082 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.287e-05/0.7742, allocations: 0 / 1.092 GB, free: 2.082 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001263/0.7743, allocations: 15.2 kB / 1.092 GB, free: 2.082 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.781e-06/0.7743, allocations: 1.562 kB / 1.092 GB, free: 2.082 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.289e-05/0.7744, allocations: 18.59 kB / 1.092 GB, free: 2.074 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.063e-06/0.7744, allocations: 1.094 kB / 1.092 GB, free: 2.074 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 5.691e-05/0.7745, allocations: 127.6 kB / 1.092 GB, free: 1.945 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.664e-05/0.7745, allocations: 2.797 kB / 1.092 GB, free: 1.945 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003847/0.7749, allocations: 115.3 kB / 1.092 GB, free: 1.891 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.005e-06/0.7749, allocations: 5.531 kB / 1.092 GB, free: 1.887 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.258e-06/0.7749, allocations: 4 kB / 1.092 GB, free: 1.883 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.385e-06/0.7749, allocations: 0.875 kB / 1.092 GB, free: 1.883 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001408/0.7751, allocations: 187.9 kB / 1.092 GB, free: 1.676 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.32e-07/0.7751, allocations: 0 / 1.092 GB, free: 1.676 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001008/0.7752, allocations: 15.34 kB / 1.092 GB, free: 1.676 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.054e-06/0.7752, allocations: 1.578 kB / 1.092 GB, free: 1.676 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.755e-06/0.7752, allocations: 0.7812 kB / 1.092 GB, free: 1.676 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.653e-06/0.7752, allocations: 0.7812 kB / 1.092 GB, free: 1.676 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.51e-07/0.7752, allocations: 0 / 1.092 GB, free: 1.676 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003717/0.7756, allocations: 212.1 kB / 1.092 GB, free: 1.523 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 2.025e-05/0.7756, allocations: 83.5 kB / 1.092 GB, free: 1.426 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.576e-05/0.7757, allocations: 6.344 kB / 1.092 GB, free: 1.422 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001134/0.7758, allocations: 10.88 kB / 1.092 GB, free: 1.422 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.181e-05/0.7758, allocations: 3.391 kB / 1.092 GB, free: 1.422 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.089e-06/0.7758, allocations: 1.375 kB / 1.092 GB, free: 1.422 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 4.885e-05/0.7759, allocations: 112.3 kB / 1.092 GB, free: 1.328 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.01e-07/0.7759, allocations: 0.75 kB / 1.092 GB, free: 1.328 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002362/0.7761, allocations: 10.3 kB / 1.092 GB, free: 1.328 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.0006782/0.7768, allocations: 0.738 MB / 1.093 GB, free: 16.66 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.0003944/0.7772, allocations: 79.95 kB / 1.093 GB, free: 16.64 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 2.936e-06/0.7772, allocations: 3.938 kB / 1.093 GB, free: 16.64 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 0.0001703/0.7774, allocations: 44.42 kB / 1.093 GB, free: 16.63 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002554/0.7777, allocations: 11.2 kB / 1.093 GB, free: 16.62 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004793/0.7782, allocations: 185.8 kB / 1.094 GB, free: 16.46 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002524/0.7784, allocations: 0.6854 MB / 1.094 GB, free: 15.76 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 3.008e-05/0.7785, allocations: 2.625 kB / 1.094 GB, free: 15.76 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.256e-05/0.7785, allocations: 18.42 kB / 1.094 GB, free: 15.75 MB / 0.8731 GB Notification: Performance of SimCode: time 2.91e-07/0.7785, allocations: 0.9375 kB / 1.094 GB, free: 15.75 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01925/0.7978, allocations: 1.888 MB / 1.096 GB, free: 15.33 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.192/7.99, allocations: 8.312 kB / 1.096 GB, free: 15.32 MB / 0.8731 GB (rm -f Buildings_9_Buildings.Utilities.Math.Examples.QuadraticLinear.pipe ; mkfifo Buildings_9_Buildings.Utilities.Math.Examples.QuadraticLinear.pipe ; head -c 1048576 < Buildings_9_Buildings.Utilities.Math.Examples.QuadraticLinear.pipe >> ../files/Buildings_9_Buildings.Utilities.Math.Examples.QuadraticLinear.sim & python3 -m fmpy simulate --output-file Buildings_9_Buildings.Utilities.Math.Examples.QuadraticLinear_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_Utilities_Math_Examples_QuadraticLinear.fmu > Buildings_9_Buildings.Utilities.Math.Examples.QuadraticLinear.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Utilities.Math.Examples.QuadraticLinear_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Utilities_Math_Examples_QuadraticLinear.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Utilities.Math.Examples.QuadraticLinear.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches