Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.Polynomial.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.Functions.Examples.Polynomial,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Math_Functions_Examples_Polynomial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Utilities.Math.Functions.Examples.Polynomial,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Math_Functions_Examples_Polynomial",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.001136/0.001136, 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.001098/0.001098, allocations: 192.4 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.282/1.282, allocations: 222.9 MB / 240.2 MB, free: 4.426 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001984/0.001984, allocations: 279 kB / 290.7 MB, free: 2.012 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9463/0.9463, allocations: 169.2 MB / 0.4982 GB, free: 13.89 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001643/0.001643, allocations: 93.59 kB / 0.5954 GB, free: 28.05 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1369/0.1385, allocations: 86.99 MB / 0.6803 GB, free: 0.5703 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Functions.Examples.Polynomial): time 0.001605/0.1402, allocations: 0.5677 MB / 0.6809 GB, free: 12 kB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002054/0.1404, allocations: 31.97 kB / 0.6809 GB, free: 15.98 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.062e-05/0.1404, allocations: 0 / 0.6809 GB, free: 15.98 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 9.718e-06/0.1404, allocations: 0.7188 kB / 0.6809 GB, free: 15.98 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 6.251e-06/0.1404, allocations: 0 / 0.6809 GB, free: 15.98 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00023/0.1407, allocations: 20.39 kB / 0.6809 GB, free: 15.96 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 3.448e-05/0.1407, allocations: 5.844 kB / 0.6809 GB, free: 15.96 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.965e-05/0.1408, allocations: 4 kB / 0.6809 GB, free: 15.95 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.183e-05/0.1408, allocations: 0 / 0.6809 GB, free: 15.95 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.036e-05/0.1408, allocations: 4 kB / 0.6809 GB, free: 15.95 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 8.476e-06/0.1408, allocations: 0 / 0.6809 GB, free: 15.95 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.092e-05/0.1409, allocations: 23.98 kB / 0.6809 GB, free: 15.93 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 8.796e-06/0.1409, allocations: 3.984 kB / 0.6809 GB, free: 15.92 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 1.529e-05/0.1409, allocations: 0 / 0.6809 GB, free: 15.92 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 7.79e-05/0.141, allocations: 19.97 kB / 0.681 GB, free: 15.9 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.567e-06/0.141, allocations: 0 / 0.681 GB, free: 15.9 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.112e-06/0.141, allocations: 0 / 0.681 GB, free: 15.9 MB / 494.1 MB Notification: Performance of Transformations before backend: time 4.167e-06/0.141, allocations: 0 / 0.681 GB, free: 15.9 MB / 494.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1 * Number of variables: 1 Notification: Performance of Generate backend data structure: time 0.0002615/0.1413, allocations: 307.6 kB / 0.6813 GB, free: 15.55 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.325e-05/0.1413, allocations: 8.031 kB / 0.6813 GB, free: 15.54 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.766e-05/0.1414, allocations: 42.67 kB / 0.6813 GB, free: 15.49 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 1.838e-05/0.1414, allocations: 4.938 kB / 0.6813 GB, free: 15.49 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.177e-05/0.1415, allocations: 164.4 kB / 0.6815 GB, free: 15.29 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.867e-06/0.1415, allocations: 4.375 kB / 0.6815 GB, free: 15.29 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.007e-06/0.1415, allocations: 384 / 0.6815 GB, free: 15.29 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.418e-05/0.1416, allocations: 30.2 kB / 0.6815 GB, free: 15.25 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.093e-06/0.1416, allocations: 3.938 kB / 0.6815 GB, free: 15.25 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.561e-06/0.1416, allocations: 0 / 0.6815 GB, free: 15.25 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.576e-06/0.1416, allocations: 4 kB / 0.6815 GB, free: 15.24 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.698e-05/0.1417, allocations: 0 / 0.6815 GB, free: 15.24 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001188/0.1418, allocations: 149.7 kB / 0.6817 GB, free: 15.05 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.827e-05/0.1418, allocations: 30.48 kB / 0.6817 GB, free: 15.01 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.411e-05/0.1418, allocations: 4.859 kB / 0.6817 GB, free: 15 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.091e-05/0.1419, allocations: 4.062 kB / 0.6817 GB, free: 15 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.89e-05/0.1419, allocations: 30.56 kB / 0.6817 GB, free: 14.96 MB / 494.1 MB Notification: Performance of pre-optimization done (n=1): time 9.42e-07/0.1419, allocations: 0 / 0.6817 GB, free: 14.96 MB / 494.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001159/0.142, allocations: 45.56 kB / 0.6818 GB, free: 14.91 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.728e-05/0.1421, allocations: 51.41 kB / 0.6818 GB, free: 14.84 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.204e-05/0.1421, allocations: 89.86 kB / 0.6819 GB, free: 14.75 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.245e-05/0.1421, allocations: 29.7 kB / 0.6819 GB, free: 14.71 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.03e-05/0.1422, allocations: 84.14 kB / 0.682 GB, free: 14.62 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.866e-05/0.1422, allocations: 288 / 0.682 GB, free: 14.62 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.439e-05/0.1422, allocations: 9.719 kB / 0.682 GB, free: 14.61 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001006/0.1423, allocations: 310.8 kB / 0.6823 GB, free: 14.3 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.707e-06/0.1423, allocations: 8.125 kB / 0.6823 GB, free: 14.29 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.65e-06/0.1423, allocations: 0 / 0.6823 GB, free: 14.29 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.679e-05/0.1424, allocations: 12.84 kB / 0.6823 GB, free: 14.27 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.153e-06/0.1424, allocations: 0 / 0.6823 GB, free: 14.27 MB / 494.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.347e-05/0.1424, allocations: 37.64 kB / 0.6824 GB, free: 14.23 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.256e-05/0.1424, allocations: 8 kB / 0.6824 GB, free: 14.22 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.658e-06/0.1425, allocations: 3.938 kB / 0.6824 GB, free: 14.22 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.517e-06/0.1425, allocations: 0 / 0.6824 GB, free: 14.22 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.2e-05/0.1425, allocations: 0 / 0.6824 GB, free: 14.22 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.1e-06/0.1425, allocations: 8.078 kB / 0.6824 GB, free: 14.21 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.444e-05/0.1425, allocations: 7.938 kB / 0.6824 GB, free: 14.2 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.026e-05/0.1426, allocations: 0 / 0.6824 GB, free: 14.2 MB / 494.1 MB 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 (1): * Single equations (assignments): 1 * 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 6.854e-05/0.1426, allocations: 111.1 kB / 0.6825 GB, free: 14.09 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.322e-06/0.1426, allocations: 0 / 0.6825 GB, free: 14.09 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.355e-05/0.1427, allocations: 44.77 kB / 0.6825 GB, free: 14.04 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.202e-06/0.1428, allocations: 4.031 kB / 0.6825 GB, free: 14.03 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.741e-06/0.1428, allocations: 3.984 kB / 0.6825 GB, free: 14.03 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.004e-06/0.1428, allocations: 3.938 kB / 0.6826 GB, free: 14.02 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.423e-05/0.1429, allocations: 145.6 kB / 0.6827 GB, free: 13.83 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.21e-07/0.1429, allocations: 4 kB / 0.6827 GB, free: 13.83 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.713e-05/0.1429, allocations: 3.938 kB / 0.6827 GB, free: 13.82 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.262e-06/0.1429, allocations: 0 / 0.6827 GB, free: 13.82 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.083e-06/0.1429, allocations: 3.938 kB / 0.6827 GB, free: 13.82 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.254e-06/0.1429, allocations: 4 kB / 0.6827 GB, free: 13.82 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.72e-07/0.1429, allocations: 4 kB / 0.6827 GB, free: 13.81 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 5.856e-05/0.143, allocations: 61.12 kB / 0.6828 GB, free: 13.73 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.741e-05/0.143, allocations: 77.11 kB / 0.6828 GB, free: 13.64 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.121e-05/0.143, allocations: 7.938 kB / 0.6829 GB, free: 13.63 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.047e-05/0.1431, allocations: 0 / 0.6829 GB, free: 13.63 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.387e-06/0.1431, allocations: 3.938 kB / 0.6829 GB, free: 13.63 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.488e-06/0.1431, allocations: 3.984 kB / 0.6829 GB, free: 13.62 MB / 494.1 MB Notification: Performance of sorting global known variables: time 2.192e-05/0.1431, allocations: 75.28 kB / 0.6829 GB, free: 13.55 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1431, allocations: 4.031 kB / 0.6829 GB, free: 13.55 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0001826/0.1433, allocations: 8 kB / 0.6829 GB, free: 13.54 MB / 494.1 MB 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 (1): * Single equations (assignments): 1 * 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.000327/0.1436, allocations: 0.6007 MB / 0.6835 GB, free: 12.91 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 5.509e-05/0.1437, allocations: 4 kB / 0.6835 GB, free: 12.9 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.913e-06/0.1437, allocations: 8.094 kB / 0.6835 GB, free: 12.89 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 7.043e-06/0.1437, allocations: 0 / 0.6835 GB, free: 12.89 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001199/0.1438, allocations: 1.891 kB / 0.6835 GB, free: 12.89 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002906/0.1441, allocations: 114.7 kB / 0.6837 GB, free: 12.74 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002437/0.1444, allocations: 0.6768 MB / 0.6843 GB, free: 12.04 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 3.102e-05/0.1444, allocations: 4.062 kB / 0.6843 GB, free: 12.04 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.123e-05/0.1445, allocations: 7.438 kB / 0.6843 GB, free: 12.03 MB / 494.1 MB Notification: Performance of SimCode: time 2.21e-07/0.1445, allocations: 0 / 0.6843 GB, free: 12.03 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01596/0.1604, allocations: 0.9985 MB / 0.6853 GB, free: 11.12 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.802/6.963, allocations: 13.81 kB / 0.6853 GB, free: 11.11 MB / 494.1 MB (rm -f BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.Polynomial.pipe ; mkfifo BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.Polynomial.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.Polynomial.pipe >> ../files/BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.Polynomial.sim & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.Polynomial_res.csv --start-time 0 --stop-time 4 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0016 BuildingSystems_BuildingSystems_Utilities_Math_Functions_Examples_Polynomial.fmu > BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.Polynomial.pipe 2>&1)