Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Utilities.Math.Examples.VectorFunctions.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.VectorFunctions,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Math_Examples_VectorFunctions",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Utilities.Math.Examples.VectorFunctions,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Math_Examples_VectorFunctions",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.001066/0.001066, 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.001125/0.001125, allocations: 192.5 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.297/1.297, allocations: 222.9 MB / 240.2 MB, free: 4.418 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002094/0.002094, allocations: 275 kB / 290.7 MB, free: 2.023 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9803/0.9803, allocations: 169.3 MB / 0.4982 GB, free: 13.88 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001698/0.001699, allocations: 96.42 kB / 0.5953 GB, free: 27.96 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1553/0.157, allocations: 86.98 MB / 0.6803 GB, free: 0.5859 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Examples.VectorFunctions): time 0.002666/0.1597, allocations: 1.589 MB / 0.6818 GB, free: 15 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007757/0.1605, allocations: 0.5073 MB / 0.6823 GB, free: 14.48 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.82e-05/0.1606, allocations: 0 / 0.6823 GB, free: 14.48 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001094/0.1607, allocations: 11.86 kB / 0.6823 GB, free: 14.47 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 4.095e-05/0.1607, allocations: 15.86 kB / 0.6824 GB, free: 14.45 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002289/0.161, allocations: 43.89 kB / 0.6824 GB, free: 14.41 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 9.813e-05/0.1611, allocations: 75.78 kB / 0.6825 GB, free: 14.34 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001462/0.1612, allocations: 48.41 kB / 0.6825 GB, free: 14.29 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.825e-05/0.1613, allocations: 39.84 kB / 0.6826 GB, free: 14.25 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.912e-05/0.1614, allocations: 39.83 kB / 0.6826 GB, free: 14.21 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 1.795e-05/0.1614, allocations: 4 kB / 0.6826 GB, free: 14.2 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.054e-05/0.1615, allocations: 20 kB / 0.6826 GB, free: 14.18 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 3.678e-05/0.1615, allocations: 19.92 kB / 0.6826 GB, free: 14.16 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 4.285e-05/0.1616, allocations: 39.73 kB / 0.6827 GB, free: 14.12 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001247/0.1617, allocations: 83.7 kB / 0.6828 GB, free: 14.04 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.787e-06/0.1617, allocations: 0 / 0.6828 GB, free: 14.04 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.433e-06/0.1617, allocations: 0 / 0.6828 GB, free: 14.04 MB / 494.1 MB Notification: Performance of Transformations before backend: time 5.921e-06/0.1617, allocations: 0 / 0.6828 GB, free: 14.04 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: 15 * Number of variables: 15 Notification: Performance of Generate backend data structure: time 0.0004738/0.1622, allocations: 407.1 kB / 0.6831 GB, free: 13.6 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.399e-05/0.1623, allocations: 8.031 kB / 0.6831 GB, free: 13.59 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.508e-05/0.1623, allocations: 42.75 kB / 0.6832 GB, free: 13.54 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.798e-05/0.1624, allocations: 16.73 kB / 0.6832 GB, free: 13.52 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001532/0.1625, allocations: 192.2 kB / 0.6834 GB, free: 13.3 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.149e-05/0.1625, allocations: 4.359 kB / 0.6834 GB, free: 13.29 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.6e-05/0.1626, allocations: 12.31 kB / 0.6834 GB, free: 13.28 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002294/0.1628, allocations: 109.8 kB / 0.6835 GB, free: 13.17 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.869e-06/0.1628, allocations: 3.938 kB / 0.6835 GB, free: 13.16 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.298e-05/0.1628, allocations: 4 kB / 0.6835 GB, free: 13.16 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.599e-06/0.1628, allocations: 0 / 0.6835 GB, free: 13.16 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002176/0.1631, allocations: 99.92 kB / 0.6836 GB, free: 13.06 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005294/0.1636, allocations: 384.4 kB / 0.684 GB, free: 12.64 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000137/0.1637, allocations: 58.55 kB / 0.684 GB, free: 12.57 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001107/0.1639, allocations: 48.95 kB / 0.6841 GB, free: 12.52 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.469e-05/0.1639, allocations: 4 kB / 0.6841 GB, free: 12.52 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.896e-05/0.1639, allocations: 30.56 kB / 0.6841 GB, free: 12.48 MB / 494.1 MB Notification: Performance of pre-optimization done (n=6): time 1.122e-06/0.1639, allocations: 0 / 0.6841 GB, free: 12.48 MB / 494.1 MB Notification: Performance of matching and sorting (n=6): time 0.0004336/0.1644, allocations: 173.7 kB / 0.6843 GB, free: 12.3 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.143e-05/0.1644, allocations: 55.34 kB / 0.6843 GB, free: 12.23 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.558e-05/0.1645, allocations: 135.6 kB / 0.6845 GB, free: 12.09 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.416e-05/0.1645, allocations: 25.7 kB / 0.6845 GB, free: 12.06 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.105e-05/0.1646, allocations: 108.6 kB / 0.6846 GB, free: 11.95 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.677e-05/0.1646, allocations: 11.81 kB / 0.6846 GB, free: 11.94 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.24e-05/0.1647, allocations: 33.7 kB / 0.6846 GB, free: 11.9 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001018/0.1648, allocations: 314.8 kB / 0.6849 GB, free: 11.59 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001071/0.1649, allocations: 44.03 kB / 0.685 GB, free: 11.54 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.563e-05/0.165, allocations: 43.97 kB / 0.685 GB, free: 11.5 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002037/0.1652, allocations: 84.81 kB / 0.6851 GB, free: 11.41 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.783e-06/0.1652, allocations: 4 kB / 0.6851 GB, free: 11.41 MB / 494.1 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0002474/0.1655, allocations: 129.5 kB / 0.6852 GB, free: 11.28 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.192e-05/0.1655, allocations: 4 kB / 0.6852 GB, free: 11.27 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.918e-06/0.1655, allocations: 0 / 0.6852 GB, free: 11.27 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.238e-05/0.1655, allocations: 3.938 kB / 0.6852 GB, free: 11.27 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001265/0.1656, allocations: 15.98 kB / 0.6852 GB, free: 11.25 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.392e-06/0.1657, allocations: 4 kB / 0.6853 GB, free: 11.25 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.836e-05/0.1657, allocations: 15.83 kB / 0.6853 GB, free: 11.23 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.947e-05/0.1658, allocations: 8 kB / 0.6853 GB, free: 11.23 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 (6): * Single equations (assignments): 6 * 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.517e-05/0.1658, allocations: 118.5 kB / 0.6854 GB, free: 11.1 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.902e-05/0.1659, allocations: 4 kB / 0.6854 GB, free: 11.1 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003169/0.1662, allocations: 146.2 kB / 0.6855 GB, free: 10.95 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.32e-06/0.1662, allocations: 7.938 kB / 0.6855 GB, free: 10.94 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.527e-06/0.1662, allocations: 3.938 kB / 0.6855 GB, free: 10.94 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.475e-06/0.1662, allocations: 4 kB / 0.6855 GB, free: 10.93 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001817/0.1664, allocations: 205.6 kB / 0.6857 GB, free: 10.68 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.072e-06/0.1664, allocations: 0 / 0.6857 GB, free: 10.68 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.721e-05/0.1665, allocations: 15.98 kB / 0.6858 GB, free: 10.67 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.813e-06/0.1665, allocations: 256 / 0.6858 GB, free: 10.67 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.101e-05/0.1665, allocations: 8 kB / 0.6858 GB, free: 10.66 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.446e-06/0.1666, allocations: 7.938 kB / 0.6858 GB, free: 10.65 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.785e-06/0.1666, allocations: 3.984 kB / 0.6858 GB, free: 10.65 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002881/0.1668, allocations: 219.3 kB / 0.686 GB, free: 10.42 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.693e-05/0.1669, allocations: 89 kB / 0.6861 GB, free: 10.31 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.784e-05/0.1669, allocations: 0 / 0.6861 GB, free: 10.31 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.61e-05/0.167, allocations: 15.88 kB / 0.6861 GB, free: 10.3 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.472e-05/0.1671, allocations: 7.984 kB / 0.6861 GB, free: 10.29 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.318e-06/0.1671, allocations: 4 kB / 0.6861 GB, free: 10.29 MB / 494.1 MB Notification: Performance of sorting global known variables: time 5.705e-05/0.1672, allocations: 105.4 kB / 0.6862 GB, free: 10.18 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.1672, allocations: 4 kB / 0.6862 GB, free: 10.18 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0002213/0.1674, allocations: 12 kB / 0.6862 GB, free: 10.17 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 (6): * Single equations (assignments): 6 * 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.0005536/0.1679, allocations: 0.7592 MB / 0.687 GB, free: 9.383 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0002611/0.1682, allocations: 103.9 kB / 0.6871 GB, free: 9.281 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.573e-06/0.1682, allocations: 0 / 0.6871 GB, free: 9.281 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000116/0.1683, allocations: 55.89 kB / 0.6871 GB, free: 9.227 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002082/0.1686, allocations: 13.83 kB / 0.6871 GB, free: 9.215 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001558/0.1701, allocations: 1.591 MB / 0.6887 GB, free: 7.551 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002255/0.1704, allocations: 0.7002 MB / 0.6894 GB, free: 6.824 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.0001107/0.1705, allocations: 15.97 kB / 0.6894 GB, free: 6.809 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.138e-05/0.1705, allocations: 31.42 kB / 0.6894 GB, free: 6.777 MB / 494.1 MB Notification: Performance of SimCode: time 3e-07/0.1705, allocations: 0 / 0.6894 GB, free: 6.777 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01982/0.1904, allocations: 1.977 MB / 0.6913 GB, free: 4.879 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.947/7.137, allocations: 15.55 kB / 0.6913 GB, free: 4.871 MB / 494.1 MB (rm -f BuildingSystems_BuildingSystems.Utilities.Math.Examples.VectorFunctions.pipe ; mkfifo BuildingSystems_BuildingSystems.Utilities.Math.Examples.VectorFunctions.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Utilities.Math.Examples.VectorFunctions.pipe >> ../files/BuildingSystems_BuildingSystems.Utilities.Math.Examples.VectorFunctions.sim & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.Utilities.Math.Examples.VectorFunctions_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_VectorFunctions.fmu > BuildingSystems_BuildingSystems.Utilities.Math.Examples.VectorFunctions.pipe 2>&1)