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.007785/0.007785, allocations: 97.62 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.001956/0.001956, allocations: 197.3 kB / 16.68 MB, free: 5.977 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.333/1.333, allocations: 222.9 MB / 240.4 MB, free: 4.324 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.361/2.361, allocations: 390.3 MB / 0.6648 GB, free: 184 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001254/0.001254, allocations: 62.66 kB / 0.9504 GB, free: 5.918 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2422/0.2434, allocations: 140.4 MB / 1.087 GB, free: 1.98 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.QuadraticLinear): time 0.002845/0.2463, allocations: 1.474 MB / 1.089 GB, free: 0.4922 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.0003127/0.2467, allocations: 108.6 kB / 1.089 GB, free: 392 kB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.633e-05/0.2467, allocations: 0 / 1.089 GB, free: 392 kB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 4.43e-05/0.2468, allocations: 11.86 kB / 1.089 GB, free: 380 kB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 6.562e-05/0.2469, allocations: 11.88 kB / 1.089 GB, free: 368 kB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002095/0.2471, allocations: 19.97 kB / 1.089 GB, free: 348 kB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 8.083e-05/0.2472, allocations: 43.8 kB / 1.089 GB, free: 304 kB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001085/0.2473, allocations: 19.98 kB / 1.089 GB, free: 284 kB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 5.016e-05/0.2473, allocations: 15.92 kB / 1.089 GB, free: 268 kB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 5.099e-05/0.2474, allocations: 23.92 kB / 1.089 GB, free: 244 kB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 1.98e-05/0.2474, allocations: 7.984 kB / 1.089 GB, free: 236 kB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 6.701e-05/0.2475, allocations: 19.98 kB / 1.089 GB, free: 216 kB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 5.493e-05/0.2475, allocations: 7.984 kB / 1.089 GB, free: 208 kB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 4.199e-05/0.2476, allocations: 31.8 kB / 1.089 GB, free: 176 kB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.000154/0.2478, allocations: 52.09 kB / 1.089 GB, free: 124 kB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 5.009e-06/0.2478, allocations: 0 / 1.089 GB, free: 124 kB / 0.8419 GB Notification: Performance of FrontEnd: time 1.833e-06/0.2478, allocations: 0 / 1.089 GB, free: 124 kB / 0.8419 GB Notification: Performance of Transformations before backend: time 6.462e-06/0.2478, allocations: 0 / 1.089 GB, free: 124 kB / 0.8419 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.0006041/0.2484, allocations: 379.2 kB / 1.09 GB, free: 15.7 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.434e-05/0.2484, allocations: 11.97 kB / 1.09 GB, free: 15.69 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.558e-05/0.2485, allocations: 34.75 kB / 1.09 GB, free: 15.64 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.365e-05/0.2485, allocations: 8.891 kB / 1.09 GB, free: 15.64 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001319/0.2487, allocations: 176.3 kB / 1.09 GB, free: 15.43 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.312e-05/0.2487, allocations: 4.375 kB / 1.09 GB, free: 15.42 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.341e-05/0.2487, allocations: 4.359 kB / 1.09 GB, free: 15.42 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002672/0.249, allocations: 82.14 kB / 1.09 GB, free: 15.33 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.878e-06/0.249, allocations: 3.938 kB / 1.09 GB, free: 15.33 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.268e-05/0.249, allocations: 0 / 1.09 GB, free: 15.33 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.975e-06/0.249, allocations: 4 kB / 1.09 GB, free: 15.32 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002947/0.2493, allocations: 71.92 kB / 1.09 GB, free: 15.25 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003565/0.2497, allocations: 292.8 kB / 1.09 GB, free: 14.92 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000209/0.2499, allocations: 66.47 kB / 1.09 GB, free: 14.84 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001551/0.2501, allocations: 44.92 kB / 1.09 GB, free: 14.8 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002909/0.2504, allocations: 109.1 kB / 1.091 GB, free: 14.67 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.094e-05/0.2504, allocations: 34.56 kB / 1.091 GB, free: 14.63 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=3): time 1.122e-06/0.2504, allocations: 0 / 1.091 GB, free: 14.63 MB / 0.8575 GB Notification: Performance of matching and sorting (n=3): time 0.0005591/0.251, allocations: 153.5 kB / 1.091 GB, free: 14.47 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.602e-05/0.251, allocations: 59.34 kB / 1.091 GB, free: 14.4 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.422e-05/0.2511, allocations: 127.8 kB / 1.091 GB, free: 14.27 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 1.457e-05/0.2512, allocations: 29.69 kB / 1.091 GB, free: 14.23 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 5.046e-05/0.2512, allocations: 92.14 kB / 1.091 GB, free: 14.14 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 2.774e-05/0.2512, allocations: 3.953 kB / 1.091 GB, free: 14.14 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.414e-05/0.2513, allocations: 13.72 kB / 1.091 GB, free: 14.12 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 9.518e-05/0.2514, allocations: 322.8 kB / 1.091 GB, free: 13.79 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00015/0.2515, allocations: 35.95 kB / 1.091 GB, free: 13.76 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001357/0.2517, allocations: 39.91 kB / 1.091 GB, free: 13.72 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002733/0.252, allocations: 80.72 kB / 1.091 GB, free: 13.64 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.593e-06/0.252, allocations: 4 kB / 1.091 GB, free: 13.63 MB / 0.8575 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0003339/0.2523, allocations: 113.6 kB / 1.092 GB, free: 13.52 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.682e-05/0.2523, allocations: 5.875 kB / 1.092 GB, free: 13.51 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.879e-06/0.2524, allocations: 3.938 kB / 1.092 GB, free: 13.51 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.252e-05/0.2524, allocations: 0 / 1.092 GB, free: 13.51 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001264/0.2525, allocations: 15.98 kB / 1.092 GB, free: 13.49 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.709e-06/0.2525, allocations: 4 kB / 1.092 GB, free: 13.49 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.278e-05/0.2526, allocations: 19.91 kB / 1.092 GB, free: 13.47 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.803e-06/0.2526, allocations: 3.938 kB / 1.092 GB, free: 13.46 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 7.45e-05/0.2527, allocations: 117.8 kB / 1.092 GB, free: 13.34 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.261e-05/0.2527, allocations: 7.953 kB / 1.092 GB, free: 13.33 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000369/0.2531, allocations: 117.5 kB / 1.092 GB, free: 13.2 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.354e-06/0.2531, allocations: 4.375 kB / 1.092 GB, free: 13.2 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.687e-06/0.2531, allocations: 0 / 1.092 GB, free: 13.2 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.304e-06/0.2531, allocations: 0 / 1.092 GB, free: 13.2 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001639/0.2533, allocations: 181.6 kB / 1.092 GB, free: 12.97 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.817e-06/0.2533, allocations: 7.984 kB / 1.092 GB, free: 12.96 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.502e-05/0.2534, allocations: 15.92 kB / 1.092 GB, free: 12.95 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.365e-06/0.2534, allocations: 0 / 1.092 GB, free: 12.95 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.842e-06/0.2534, allocations: 0 / 1.092 GB, free: 12.95 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.362e-06/0.2534, allocations: 4 kB / 1.092 GB, free: 12.95 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.032e-06/0.2535, allocations: 4 kB / 1.092 GB, free: 12.94 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003618/0.2538, allocations: 207.4 kB / 1.092 GB, free: 12.72 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 4.653e-05/0.2539, allocations: 85.06 kB / 1.092 GB, free: 12.62 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.675e-05/0.2539, allocations: 0 / 1.092 GB, free: 12.62 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001056/0.254, allocations: 11.98 kB / 1.092 GB, free: 12.61 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.281e-05/0.2541, allocations: 11.98 kB / 1.092 GB, free: 12.6 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.948e-06/0.2541, allocations: 0 / 1.092 GB, free: 12.6 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 6.671e-05/0.2542, allocations: 95.27 kB / 1.092 GB, free: 12.5 MB / 0.8575 GB Notification: Performance of sort global known variables: time 2.2e-07/0.2542, allocations: 0 / 1.092 GB, free: 12.5 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002476/0.2544, allocations: 12 kB / 1.092 GB, free: 12.49 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.0007426/0.2552, allocations: 0.7475 MB / 1.093 GB, free: 11.72 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0003915/0.2556, allocations: 79.92 kB / 1.093 GB, free: 11.64 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 2.475e-06/0.2556, allocations: 4 kB / 1.093 GB, free: 11.64 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.0001621/0.2557, allocations: 43.89 kB / 1.093 GB, free: 11.59 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002814/0.256, allocations: 15.94 kB / 1.093 GB, free: 11.58 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005558/0.2566, allocations: 183.1 kB / 1.094 GB, free: 11.36 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002594/0.2569, allocations: 0.6885 MB / 1.094 GB, free: 10.64 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 3.832e-05/0.2569, allocations: 8 kB / 1.094 GB, free: 10.64 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.719e-05/0.257, allocations: 11.44 kB / 1.094 GB, free: 10.63 MB / 0.8575 GB Notification: Performance of SimCode: time 2.21e-07/0.257, allocations: 0 / 1.094 GB, free: 10.63 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01731/0.2743, allocations: 1.878 MB / 1.096 GB, free: 8.836 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.428/7.703, allocations: 20.75 kB / 1.096 GB, free: 8.816 MB / 0.8575 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