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.002002/0.002003, 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.002087/0.002087, allocations: 195.1 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.338/1.338, allocations: 222.9 MB / 240.2 MB, free: 4.383 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.314/2.314, allocations: 390.3 MB / 0.6647 GB, free: 252 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.002317/0.002317, allocations: 68.08 kB / 0.8126 GB, free: 14.14 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5907/0.593, allocations: 140.4 MB / 0.9497 GB, free: 9.227 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.QuadraticLinear): time 0.00226/0.5953, allocations: 1.486 MB / 0.9512 GB, free: 8.051 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0002571/0.5956, allocations: 112.4 kB / 0.9513 GB, free: 7.961 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.6e-05/0.5957, allocations: 1.25 kB / 0.9513 GB, free: 7.961 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 3.501e-05/0.5957, allocations: 3.938 kB / 0.9513 GB, free: 7.957 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 5.116e-05/0.5958, allocations: 6.094 kB / 0.9513 GB, free: 7.953 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002/0.596, allocations: 24.94 kB / 0.9513 GB, free: 7.934 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 7.062e-05/0.596, allocations: 41.64 kB / 0.9513 GB, free: 7.91 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 9.914e-05/0.5961, allocations: 17.41 kB / 0.9514 GB, free: 7.898 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 3.997e-05/0.5962, allocations: 17.83 kB / 0.9514 GB, free: 7.887 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 4.008e-05/0.5962, allocations: 22.27 kB / 0.9514 GB, free: 7.871 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.577e-05/0.5963, allocations: 2.75 kB / 0.9514 GB, free: 7.871 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 6.087e-05/0.5963, allocations: 20.58 kB / 0.9514 GB, free: 7.863 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 4.081e-05/0.5964, allocations: 15.45 kB / 0.9514 GB, free: 7.852 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 3.224e-05/0.5964, allocations: 19.36 kB / 0.9515 GB, free: 7.836 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.000104/0.5965, allocations: 63.95 kB / 0.9515 GB, free: 7.789 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.406e-06/0.5965, allocations: 1.469 kB / 0.9515 GB, free: 7.789 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.552e-06/0.5965, allocations: 0 / 0.9515 GB, free: 7.789 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 7.694e-06/0.5965, allocations: 0 / 0.9515 GB, free: 7.789 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.0004163/0.597, allocations: 381.1 kB / 0.9519 GB, free: 7.395 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.312e-05/0.597, allocations: 8.906 kB / 0.9519 GB, free: 7.395 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.242e-05/0.597, allocations: 35.84 kB / 0.9519 GB, free: 7.352 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.588e-05/0.5971, allocations: 4.219 kB / 0.9519 GB, free: 7.352 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.415e-05/0.5971, allocations: 180.6 kB / 0.9521 GB, free: 7.141 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.093e-05/0.5972, allocations: 5.594 kB / 0.9521 GB, free: 7.137 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.075e-05/0.5972, allocations: 1.344 kB / 0.9521 GB, free: 7.137 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002319/0.5974, allocations: 75.52 kB / 0.9522 GB, free: 7.082 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.634e-06/0.5974, allocations: 3.938 kB / 0.9522 GB, free: 7.078 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.845e-06/0.5974, allocations: 1.156 kB / 0.9522 GB, free: 7.078 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.829e-06/0.5975, allocations: 3.938 kB / 0.9522 GB, free: 7.074 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002889/0.5977, allocations: 75.58 kB / 0.9523 GB, free: 7.043 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000269/0.598, allocations: 293.1 kB / 0.9525 GB, free: 6.73 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000193/0.5982, allocations: 65.19 kB / 0.9526 GB, free: 6.688 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001513/0.5984, allocations: 43.67 kB / 0.9526 GB, free: 6.664 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001978/0.5986, allocations: 106.7 kB / 0.9527 GB, free: 6.562 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.242e-05/0.5986, allocations: 35.94 kB / 0.9528 GB, free: 6.52 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=3): time 1.052e-06/0.5986, allocations: 0 / 0.9528 GB, free: 6.52 MB / 0.7169 GB Notification: Performance of matching and sorting (n=3): time 0.0005177/0.5991, allocations: 153.7 kB / 0.9529 GB, free: 6.43 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.869e-05/0.5992, allocations: 53 kB / 0.953 GB, free: 6.367 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.111e-05/0.5993, allocations: 121.2 kB / 0.9531 GB, free: 6.258 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 8.766e-06/0.5993, allocations: 33.69 kB / 0.9531 GB, free: 6.219 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 2.671e-05/0.5993, allocations: 92.14 kB / 0.9532 GB, free: 6.129 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.624e-05/0.5993, allocations: 7.906 kB / 0.9532 GB, free: 6.121 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.89e-05/0.5994, allocations: 16.34 kB / 0.9532 GB, free: 6.102 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 3.631e-05/0.5994, allocations: 321.5 kB / 0.9535 GB, free: 5.781 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001439/0.5995, allocations: 37.02 kB / 0.9536 GB, free: 5.766 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001311/0.5997, allocations: 33.53 kB / 0.9536 GB, free: 5.754 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002628/0.5999, allocations: 83.34 kB / 0.9537 GB, free: 5.711 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.074e-06/0.6, allocations: 0 / 0.9537 GB, free: 5.711 MB / 0.7169 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0003051/0.6003, allocations: 118.6 kB / 0.9538 GB, free: 5.637 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.195e-05/0.6003, allocations: 8.406 kB / 0.9538 GB, free: 5.633 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.967e-06/0.6003, allocations: 0 / 0.9538 GB, free: 5.633 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.112e-05/0.6003, allocations: 1.188 kB / 0.9538 GB, free: 5.633 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000113/0.6004, allocations: 13.45 kB / 0.9538 GB, free: 5.629 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.758e-06/0.6004, allocations: 1.188 kB / 0.9538 GB, free: 5.629 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.434e-05/0.6005, allocations: 19.06 kB / 0.9538 GB, free: 5.617 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.583e-06/0.6005, allocations: 1.219 kB / 0.9538 GB, free: 5.617 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.86e-05/0.6006, allocations: 117.4 kB / 0.954 GB, free: 5.496 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.676e-05/0.6006, allocations: 10.56 kB / 0.954 GB, free: 5.488 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003455/0.601, allocations: 121.9 kB / 0.9541 GB, free: 5.402 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.834e-06/0.601, allocations: 0 / 0.9541 GB, free: 5.402 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.076e-06/0.601, allocations: 0 / 0.9541 GB, free: 5.402 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.054e-06/0.601, allocations: 1.469 kB / 0.9541 GB, free: 5.402 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001201/0.6011, allocations: 186.8 kB / 0.9543 GB, free: 5.184 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.62e-07/0.6011, allocations: 1.344 kB / 0.9543 GB, free: 5.184 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.019e-05/0.6012, allocations: 18.2 kB / 0.9543 GB, free: 5.176 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.714e-06/0.6012, allocations: 0 / 0.9543 GB, free: 5.176 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.825e-06/0.6012, allocations: 5.469 kB / 0.9543 GB, free: 5.172 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.122e-06/0.6012, allocations: 0 / 0.9543 GB, free: 5.172 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.91e-07/0.6012, allocations: 0 / 0.9543 GB, free: 5.172 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003189/0.6016, allocations: 217.5 kB / 0.9545 GB, free: 4.992 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 1.695e-05/0.6016, allocations: 86.48 kB / 0.9546 GB, free: 4.891 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.397e-05/0.6016, allocations: 0.9688 kB / 0.9546 GB, free: 4.891 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001044/0.6017, allocations: 10.98 kB / 0.9546 GB, free: 4.887 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.531e-05/0.6018, allocations: 6.641 kB / 0.9546 GB, free: 4.883 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.616e-06/0.6018, allocations: 0 / 0.9546 GB, free: 4.883 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 3.829e-05/0.6018, allocations: 103.5 kB / 0.9547 GB, free: 4.797 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1e-07/0.6018, allocations: 0 / 0.9547 GB, free: 4.797 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002231/0.6021, allocations: 18.47 kB / 0.9547 GB, free: 4.789 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.0004837/0.6025, allocations: 0.7446 MB / 0.9554 GB, free: 4.086 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0003277/0.6029, allocations: 87.2 kB / 0.9555 GB, free: 4.047 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.204e-06/0.6029, allocations: 0 / 0.9555 GB, free: 4.047 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0001499/0.603, allocations: 40.2 kB / 0.9556 GB, free: 4.031 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002294/0.6033, allocations: 9.375 kB / 0.9556 GB, free: 4.027 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003905/0.6037, allocations: 191.7 kB / 0.9558 GB, free: 3.844 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.051e-05/0.6038, allocations: 0.6909 MB / 0.9564 GB, free: 3.137 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 2.616e-05/0.6038, allocations: 0 / 0.9564 GB, free: 3.137 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.434e-05/0.6039, allocations: 16.59 kB / 0.9564 GB, free: 3.121 MB / 0.7169 GB Notification: Performance of SimCode: time 2.21e-07/0.6039, allocations: 5.594 kB / 0.9565 GB, free: 3.117 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02016/0.624, allocations: 1.848 MB / 0.9583 GB, free: 2.109 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.417/8.041, allocations: 12.42 kB / 0.9583 GB, free: 2.102 MB / 0.7169 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