Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Utilities.Math.Examples.Biquadratic.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 11.1.0-master/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-master/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.Biquadratic,fileNamePrefix="Buildings_latest_Buildings_Utilities_Math_Examples_Biquadratic",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Examples.Biquadratic,fileNamePrefix="Buildings_latest_Buildings_Utilities_Math_Examples_Biquadratic",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.005228/0.005228, allocations: 99.47 kB / 15.73 MB, free: 6.449 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.001231/0.001231, allocations: 200 kB / 16.68 MB, free: 6.352 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.367/1.367, allocations: 222.9 MB / 240.4 MB, free: 4.289 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-master/package.mo): time 2.768/2.768, allocations: 469.4 MB / 0.7422 GB, free: 7.535 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001473/0.001473, allocations: 67.84 kB / 1.064 GB, free: 13.8 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.359/0.3605, allocations: 159.1 MB / 1.22 GB, free: 14.56 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Biquadratic): time 0.003672/0.3642, allocations: 1.492 MB / 1.221 GB, free: 13.05 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.0003842/0.3646, allocations: 107.7 kB / 1.221 GB, free: 12.95 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.674e-05/0.3647, allocations: 0 / 1.221 GB, free: 12.95 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 5.339e-05/0.3647, allocations: 3.938 kB / 1.221 GB, free: 12.95 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 7.418e-05/0.3648, allocations: 7.922 kB / 1.221 GB, free: 12.94 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002543/0.3651, allocations: 15.98 kB / 1.221 GB, free: 12.92 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.0001264/0.3652, allocations: 55.77 kB / 1.221 GB, free: 12.87 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001135/0.3654, allocations: 8 kB / 1.221 GB, free: 12.86 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 6.457e-05/0.3654, allocations: 23.92 kB / 1.221 GB, free: 12.84 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 5.906e-05/0.3655, allocations: 23.84 kB / 1.221 GB, free: 12.81 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 1.961e-05/0.3655, allocations: 4 kB / 1.221 GB, free: 12.81 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 7.398e-05/0.3656, allocations: 19.98 kB / 1.221 GB, free: 12.79 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 5.751e-05/0.3657, allocations: 8 kB / 1.221 GB, free: 12.78 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 4.125e-05/0.3657, allocations: 23.86 kB / 1.221 GB, free: 12.76 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0001653/0.3659, allocations: 59.73 kB / 1.222 GB, free: 12.7 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 4.468e-06/0.3659, allocations: 0 / 1.222 GB, free: 12.7 MB / 0.9825 GB Notification: Performance of FrontEnd: time 2.224e-06/0.3659, allocations: 0 / 1.222 GB, free: 12.7 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 1.001e-05/0.3659, allocations: 0 / 1.222 GB, free: 12.7 MB / 0.9825 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.0007018/0.3666, allocations: 383.1 kB / 1.222 GB, free: 12.27 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 4.868e-05/0.3667, allocations: 8.031 kB / 1.222 GB, free: 12.27 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.874e-05/0.3667, allocations: 38.69 kB / 1.222 GB, free: 12.22 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.53e-05/0.3668, allocations: 8.891 kB / 1.222 GB, free: 12.21 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000141/0.3669, allocations: 172.3 kB / 1.222 GB, free: 12 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.311e-05/0.367, allocations: 4.312 kB / 1.222 GB, free: 12 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.443e-05/0.367, allocations: 4.375 kB / 1.222 GB, free: 12 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003425/0.3673, allocations: 74.22 kB / 1.222 GB, free: 11.92 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.006e-05/0.3673, allocations: 3.938 kB / 1.222 GB, free: 11.91 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.004e-05/0.3674, allocations: 0 / 1.222 GB, free: 11.91 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.827e-06/0.3674, allocations: 4 kB / 1.222 GB, free: 11.91 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000332/0.3677, allocations: 75.91 kB / 1.222 GB, free: 11.84 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004326/0.3682, allocations: 292.7 kB / 1.223 GB, free: 11.5 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002278/0.3684, allocations: 70.53 kB / 1.223 GB, free: 11.42 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001631/0.3686, allocations: 44.91 kB / 1.223 GB, free: 11.38 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002872/0.3689, allocations: 113.1 kB / 1.223 GB, free: 11.25 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.58e-05/0.3689, allocations: 30.56 kB / 1.223 GB, free: 11.21 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=3): time 1.262e-06/0.3689, allocations: 0 / 1.223 GB, free: 11.21 MB / 0.9825 GB Notification: Performance of matching and sorting (n=3): time 0.0005935/0.3695, allocations: 153.5 kB / 1.223 GB, free: 11.05 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.219e-05/0.3696, allocations: 51.41 kB / 1.223 GB, free: 10.99 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001078/0.3697, allocations: 129 kB / 1.223 GB, free: 10.86 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 1.593e-05/0.3697, allocations: 29.7 kB / 1.223 GB, free: 10.82 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 5.886e-05/0.3698, allocations: 92.09 kB / 1.223 GB, free: 10.73 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 2.031e-05/0.3698, allocations: 7.953 kB / 1.223 GB, free: 10.72 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.862e-05/0.3698, allocations: 17.7 kB / 1.223 GB, free: 10.7 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001182/0.37, allocations: 314.8 kB / 1.224 GB, free: 10.38 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001577/0.3701, allocations: 39.95 kB / 1.224 GB, free: 10.34 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001552/0.3703, allocations: 39.97 kB / 1.224 GB, free: 10.3 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002814/0.3706, allocations: 80.94 kB / 1.224 GB, free: 10.22 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.073e-06/0.3706, allocations: 4 kB / 1.224 GB, free: 10.21 MB / 0.9825 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0003529/0.371, allocations: 121.5 kB / 1.224 GB, free: 10.09 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 1.649e-05/0.371, allocations: 4 kB / 1.224 GB, free: 10.09 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.969e-06/0.371, allocations: 0 / 1.224 GB, free: 10.09 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.571e-05/0.371, allocations: 3.938 kB / 1.224 GB, free: 10.08 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001308/0.3712, allocations: 15.98 kB / 1.224 GB, free: 10.07 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.256e-06/0.3712, allocations: 3.984 kB / 1.224 GB, free: 10.06 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.158e-05/0.3713, allocations: 15.98 kB / 1.224 GB, free: 10.05 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.965e-06/0.3713, allocations: 0 / 1.224 GB, free: 10.05 MB / 0.9825 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 8.744e-05/0.3714, allocations: 119.2 kB / 1.224 GB, free: 9.922 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.009e-05/0.3714, allocations: 7.953 kB / 1.224 GB, free: 9.914 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004018/0.3718, allocations: 129.4 kB / 1.224 GB, free: 9.773 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.845e-06/0.3718, allocations: 3.938 kB / 1.224 GB, free: 9.77 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.799e-06/0.3718, allocations: 0 / 1.224 GB, free: 9.77 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.176e-06/0.3718, allocations: 0 / 1.224 GB, free: 9.77 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002193/0.3721, allocations: 181.6 kB / 1.224 GB, free: 9.543 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.154e-06/0.3721, allocations: 0 / 1.224 GB, free: 9.543 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.802e-05/0.3722, allocations: 11.98 kB / 1.224 GB, free: 9.531 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.487e-06/0.3722, allocations: 0 / 1.224 GB, free: 9.531 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.142e-05/0.3722, allocations: 4 kB / 1.224 GB, free: 9.527 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.575e-06/0.3722, allocations: 0 / 1.224 GB, free: 9.527 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.673e-06/0.3722, allocations: 4 kB / 1.224 GB, free: 9.523 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004142/0.3726, allocations: 211.3 kB / 1.225 GB, free: 9.301 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 5.057e-05/0.3727, allocations: 81.11 kB / 1.225 GB, free: 9.203 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.585e-05/0.3727, allocations: 0 / 1.225 GB, free: 9.203 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001199/0.3728, allocations: 23.97 kB / 1.225 GB, free: 9.18 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.276e-05/0.3729, allocations: 0 / 1.225 GB, free: 9.18 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.747e-06/0.3729, allocations: 0 / 1.225 GB, free: 9.18 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 7.184e-05/0.373, allocations: 95.27 kB / 1.225 GB, free: 9.086 MB / 0.9825 GB Notification: Performance of sort global known variables: time 1.4e-07/0.373, allocations: 4 kB / 1.225 GB, free: 9.082 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0002536/0.3732, allocations: 15.94 kB / 1.225 GB, free: 9.066 MB / 0.9825 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.0008611/0.3741, allocations: 0.7436 MB / 1.225 GB, free: 8.297 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0003819/0.3745, allocations: 83.86 kB / 1.226 GB, free: 8.215 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 1.33e-05/0.3745, allocations: 4 kB / 1.226 GB, free: 8.211 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.0001627/0.3747, allocations: 39.95 kB / 1.226 GB, free: 8.172 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002656/0.375, allocations: 8 kB / 1.226 GB, free: 8.164 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005729/0.3756, allocations: 190.9 kB / 1.226 GB, free: 7.938 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004488/0.376, allocations: 0.6885 MB / 1.226 GB, free: 7.223 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 3.499e-05/0.3761, allocations: 8 kB / 1.226 GB, free: 7.215 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.604e-05/0.3761, allocations: 19.38 kB / 1.226 GB, free: 7.195 MB / 0.9825 GB Notification: Performance of SimCode: time 2.6e-07/0.3761, allocations: 0 / 1.226 GB, free: 7.195 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02032/0.3965, allocations: 1.883 MB / 1.228 GB, free: 5.398 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.628/8.024, allocations: 13.11 kB / 1.228 GB, free: 5.391 MB / 0.9825 GB (rm -f Buildings_latest_Buildings.Utilities.Math.Examples.Biquadratic.pipe ; mkfifo Buildings_latest_Buildings.Utilities.Math.Examples.Biquadratic.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.Math.Examples.Biquadratic.pipe >> ../files/Buildings_latest_Buildings.Utilities.Math.Examples.Biquadratic.sim & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.Utilities.Math.Examples.Biquadratic_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 Buildings_latest_Buildings_Utilities_Math_Examples_Biquadratic.fmu > Buildings_latest_Buildings.Utilities.Math.Examples.Biquadratic.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Utilities.Math.Examples.Biquadratic_res.csv","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_Math_Examples_Biquadratic.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Utilities.Math.Examples.Biquadratic.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches