Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.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/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-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(BuildingSystems.Utilities.Math.Examples.QuadraticLinear,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Math_Examples_QuadraticLinear",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Utilities.Math.Examples.QuadraticLinear,fileNamePrefix="BuildingSystems_BuildingSystems_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.008079/0.008079, allocations: 98.06 kB / 15.73 MB, free: 6.008 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.00209/0.00209, allocations: 191 kB / 16.67 MB, free: 5.934 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.452/1.452, 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/NcDataReader2 2.5.1-master/package.mo): time 0.002529/0.002529, allocations: 288.5 kB / 290.8 MB, free: 14.46 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9953/0.9953, allocations: 169.3 MB / 0.4983 GB, free: 4.441 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002655/0.002655, allocations: 91.86 kB / 0.681 GB, free: 7.484 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4722/0.4748, allocations: 86.98 MB / 0.7659 GB, free: 3.883 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Examples.QuadraticLinear): time 0.003429/0.4783, allocations: 1.476 MB / 0.7674 GB, free: 2.395 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.0003853/0.4787, allocations: 108.6 kB / 0.7675 GB, free: 2.285 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.017e-05/0.4788, allocations: 0 / 0.7675 GB, free: 2.285 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 4.879e-05/0.4789, allocations: 3.938 kB / 0.7675 GB, free: 2.281 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 8.52e-05/0.479, allocations: 19.84 kB / 0.7675 GB, free: 2.262 MB / 0.5294 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002595/0.4792, allocations: 15.98 kB / 0.7675 GB, free: 2.246 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 0.000109/0.4794, allocations: 47.84 kB / 0.7675 GB, free: 2.199 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001019/0.4795, allocations: 12 kB / 0.7676 GB, free: 2.188 MB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 5.337e-05/0.4795, allocations: 15.92 kB / 0.7676 GB, free: 2.172 MB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 5.213e-05/0.4796, allocations: 27.91 kB / 0.7676 GB, free: 2.145 MB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 1.854e-05/0.4796, allocations: 4 kB / 0.7676 GB, free: 2.141 MB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 7.414e-05/0.4797, allocations: 23.98 kB / 0.7676 GB, free: 2.117 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 5.492e-05/0.4798, allocations: 19.86 kB / 0.7676 GB, free: 2.098 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 3.551e-05/0.4798, allocations: 19.86 kB / 0.7677 GB, free: 2.078 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.0001444/0.4799, allocations: 55.61 kB / 0.7677 GB, free: 2.027 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 5.61e-06/0.48, allocations: 3.984 kB / 0.7677 GB, free: 2.023 MB / 0.5294 GB Notification: Performance of FrontEnd: time 1.663e-06/0.48, allocations: 0 / 0.7677 GB, free: 2.023 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 6.272e-06/0.48, allocations: 4 kB / 0.7677 GB, free: 2.02 MB / 0.5294 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.0006068/0.4806, allocations: 380.4 kB / 0.7681 GB, free: 1.602 MB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 4.145e-05/0.4806, allocations: 8.031 kB / 0.7681 GB, free: 1.594 MB / 0.5294 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.329e-05/0.4807, allocations: 34.75 kB / 0.7681 GB, free: 1.551 MB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.575e-05/0.4807, allocations: 8.875 kB / 0.7681 GB, free: 1.543 MB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001484/0.4809, allocations: 180.2 kB / 0.7683 GB, free: 1.328 MB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.434e-05/0.4809, allocations: 8.375 kB / 0.7683 GB, free: 1.32 MB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.336e-06/0.4809, allocations: 384 / 0.7683 GB, free: 1.32 MB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002713/0.4812, allocations: 82.2 kB / 0.7684 GB, free: 1.234 MB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.17e-05/0.4812, allocations: 3.938 kB / 0.7684 GB, free: 1.23 MB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.779e-06/0.4812, allocations: 0 / 0.7684 GB, free: 1.23 MB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.198e-06/0.4812, allocations: 0 / 0.7684 GB, free: 1.23 MB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003099/0.4816, allocations: 71.92 kB / 0.7685 GB, free: 1.16 MB / 0.5294 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004254/0.482, allocations: 284.9 kB / 0.7687 GB, free: 0.832 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002167/0.4822, allocations: 66.47 kB / 0.7688 GB, free: 0.7578 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001579/0.4824, allocations: 44.91 kB / 0.7688 GB, free: 0.7109 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003003/0.4827, allocations: 113.1 kB / 0.769 GB, free: 0.582 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.385e-05/0.4827, allocations: 38.56 kB / 0.769 GB, free: 0.5352 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=3): time 1.142e-06/0.4827, allocations: 0 / 0.769 GB, free: 0.5352 MB / 0.5294 GB Notification: Performance of matching and sorting (n=3): time 0.000616/0.4834, allocations: 149.5 kB / 0.7691 GB, free: 392 kB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.446e-05/0.4834, allocations: 51.41 kB / 0.7692 GB, free: 328 kB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001244/0.4835, allocations: 128.7 kB / 0.7693 GB, free: 192 kB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 2.048e-05/0.4836, allocations: 29.7 kB / 0.7693 GB, free: 156 kB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 5.862e-05/0.4836, allocations: 96.06 kB / 0.7694 GB, free: 56 kB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 2.344e-05/0.4837, allocations: 7.906 kB / 0.7694 GB, free: 48 kB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.841e-05/0.4837, allocations: 17.72 kB / 0.7694 GB, free: 24 kB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0001553/0.4839, allocations: 322.8 kB / 0.7698 GB, free: 15.7 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001501/0.484, allocations: 39.97 kB / 0.7698 GB, free: 15.66 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001382/0.4842, allocations: 35.95 kB / 0.7698 GB, free: 15.62 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002817/0.4845, allocations: 84.72 kB / 0.7699 GB, free: 15.54 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.984e-06/0.4845, allocations: 0 / 0.7699 GB, free: 15.54 MB / 0.545 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0003337/0.4848, allocations: 109.6 kB / 0.77 GB, free: 15.43 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 1.606e-05/0.4848, allocations: 7.984 kB / 0.77 GB, free: 15.42 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.569e-06/0.4848, allocations: 0 / 0.77 GB, free: 15.42 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.273e-05/0.4849, allocations: 0 / 0.77 GB, free: 15.42 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001197/0.485, allocations: 15.98 kB / 0.77 GB, free: 15.4 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.18e-06/0.485, allocations: 4 kB / 0.77 GB, free: 15.4 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.857e-05/0.4851, allocations: 15.92 kB / 0.7701 GB, free: 15.38 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.274e-06/0.4851, allocations: 0 / 0.7701 GB, free: 15.38 MB / 0.545 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 9.379e-05/0.4852, allocations: 121.8 kB / 0.7702 GB, free: 15.25 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.796e-05/0.4852, allocations: 7.953 kB / 0.7702 GB, free: 15.25 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003774/0.4856, allocations: 121.5 kB / 0.7703 GB, free: 15.12 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.064e-06/0.4856, allocations: 3.938 kB / 0.7703 GB, free: 15.11 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.679e-06/0.4856, allocations: 0 / 0.7703 GB, free: 15.11 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.006e-06/0.4856, allocations: 0 / 0.7703 GB, free: 15.11 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001949/0.4858, allocations: 181.6 kB / 0.7705 GB, free: 14.89 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.21e-07/0.4859, allocations: 0 / 0.7705 GB, free: 14.89 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.248e-05/0.4859, allocations: 15.97 kB / 0.7705 GB, free: 14.87 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.008e-06/0.486, allocations: 4 kB / 0.7705 GB, free: 14.87 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.287e-06/0.486, allocations: 4 kB / 0.7705 GB, free: 14.86 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.172e-06/0.486, allocations: 4 kB / 0.7705 GB, free: 14.86 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.283e-06/0.486, allocations: 0 / 0.7705 GB, free: 14.86 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003811/0.4864, allocations: 207.4 kB / 0.7707 GB, free: 14.64 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 5.29e-05/0.4864, allocations: 85.06 kB / 0.7708 GB, free: 14.54 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.354e-05/0.4865, allocations: 0 / 0.7708 GB, free: 14.54 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000102/0.4866, allocations: 16.41 kB / 0.7708 GB, free: 14.52 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.667e-05/0.4866, allocations: 3.984 kB / 0.7708 GB, free: 14.52 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.538e-06/0.4866, allocations: 0 / 0.7708 GB, free: 14.52 MB / 0.545 GB Notification: Performance of sorting global known variables: time 7.559e-05/0.4867, allocations: 107.2 kB / 0.7709 GB, free: 14.41 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.3e-07/0.4867, allocations: 3.938 kB / 0.7709 GB, free: 14.41 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.0002225/0.4869, allocations: 8 kB / 0.7709 GB, free: 14.4 MB / 0.545 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.0007411/0.4877, allocations: 0.7436 MB / 0.7716 GB, free: 13.63 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.0003399/0.488, allocations: 83.91 kB / 0.7717 GB, free: 13.55 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 3.737e-06/0.488, allocations: 4 kB / 0.7717 GB, free: 13.55 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.0001489/0.4882, allocations: 39.91 kB / 0.7718 GB, free: 13.51 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002345/0.4884, allocations: 4 kB / 0.7718 GB, free: 13.5 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004735/0.4889, allocations: 191 kB / 0.7719 GB, free: 13.28 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003216/0.4892, allocations: 0.6885 MB / 0.7726 GB, free: 12.56 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 3.102e-05/0.4893, allocations: 8 kB / 0.7726 GB, free: 12.55 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.706e-05/0.4893, allocations: 23.42 kB / 0.7726 GB, free: 12.53 MB / 0.545 GB Notification: Performance of SimCode: time 3.11e-07/0.4893, allocations: 0 / 0.7726 GB, free: 12.53 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.022/0.5113, allocations: 1.906 MB / 0.7745 GB, free: 10.73 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.726/8.238, allocations: 4.688 kB / 0.7745 GB, free: 10.73 MB / 0.545 GB (rm -f BuildingSystems_BuildingSystems.Utilities.Math.Examples.QuadraticLinear.pipe ; mkfifo BuildingSystems_BuildingSystems.Utilities.Math.Examples.QuadraticLinear.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Utilities.Math.Examples.QuadraticLinear.pipe >> ../files/BuildingSystems_BuildingSystems.Utilities.Math.Examples.QuadraticLinear.sim & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.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 BuildingSystems_BuildingSystems_Utilities_Math_Examples_QuadraticLinear.fmu > BuildingSystems_BuildingSystems.Utilities.Math.Examples.QuadraticLinear.pipe 2>&1)