Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Utilities.Math.Examples.Average.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.Average,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Math_Examples_Average",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Utilities.Math.Examples.Average,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Math_Examples_Average",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.00495/0.00495, allocations: 95.42 kB / 15.73 MB, free: 6.055 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.001198/0.001198, allocations: 195.2 kB / 16.67 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.328/1.328, 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/NcDataReader2 2.5.1-master/package.mo): time 0.002089/0.002089, allocations: 267 kB / 290.8 MB, free: 1.934 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9454/0.9454, allocations: 169.3 MB / 0.4983 GB, free: 13.8 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00204/0.00204, allocations: 95.86 kB / 0.681 GB, free: 15.97 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1501/0.1522, allocations: 86.96 MB / 0.7659 GB, free: 8.93 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Examples.Average): time 0.002725/0.1549, allocations: 1.548 MB / 0.7674 GB, free: 7.371 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.0003162/0.1552, allocations: 104.5 kB / 0.7675 GB, free: 7.266 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.59e-05/0.1553, allocations: 0 / 0.7675 GB, free: 7.266 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.0001204/0.1555, allocations: 15.86 kB / 0.7675 GB, free: 7.25 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 2.986e-05/0.1555, allocations: 15.92 kB / 0.7675 GB, free: 7.234 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002169/0.1557, allocations: 23.97 kB / 0.7676 GB, free: 7.211 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 9.373e-05/0.1558, allocations: 55.77 kB / 0.7676 GB, free: 7.156 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001089/0.1559, allocations: 23.98 kB / 0.7676 GB, free: 7.133 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 5.81e-05/0.156, allocations: 31.91 kB / 0.7677 GB, free: 7.102 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 6.693e-05/0.1561, allocations: 27.91 kB / 0.7677 GB, free: 7.074 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 1.751e-05/0.1561, allocations: 4 kB / 0.7677 GB, free: 7.07 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 5.863e-05/0.1562, allocations: 11.98 kB / 0.7677 GB, free: 7.059 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 4.313e-05/0.1562, allocations: 19.92 kB / 0.7677 GB, free: 7.039 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 3.835e-05/0.1563, allocations: 23.88 kB / 0.7678 GB, free: 7.016 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.0001343/0.1564, allocations: 71.94 kB / 0.7678 GB, free: 6.945 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 3.186e-06/0.1564, allocations: 0 / 0.7678 GB, free: 6.945 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.352e-06/0.1564, allocations: 0 / 0.7678 GB, free: 6.945 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 5.23e-06/0.1564, allocations: 0 / 0.7678 GB, free: 6.945 MB / 0.5606 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 9 * Number of variables: 9 Notification: Performance of Generate backend data structure: time 0.0005277/0.157, allocations: 387.1 kB / 0.7682 GB, free: 6.516 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 4.008e-05/0.157, allocations: 16.02 kB / 0.7682 GB, free: 6.5 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.356e-05/0.157, allocations: 30.75 kB / 0.7682 GB, free: 6.461 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.658e-05/0.1571, allocations: 4.938 kB / 0.7682 GB, free: 6.457 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001563/0.1572, allocations: 180.3 kB / 0.7684 GB, free: 6.242 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.076e-06/0.1573, allocations: 384 / 0.7684 GB, free: 6.242 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.436e-05/0.1573, allocations: 8.375 kB / 0.7684 GB, free: 6.234 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002839/0.1576, allocations: 94.08 kB / 0.7685 GB, free: 6.137 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.024e-05/0.1576, allocations: 11.92 kB / 0.7685 GB, free: 6.125 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.788e-06/0.1576, allocations: 0 / 0.7685 GB, free: 6.125 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.188e-06/0.1576, allocations: 0 / 0.7685 GB, free: 6.125 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003009/0.1579, allocations: 75.92 kB / 0.7686 GB, free: 6.051 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005055/0.1584, allocations: 332.6 kB / 0.7689 GB, free: 5.676 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001983/0.1586, allocations: 58.53 kB / 0.769 GB, free: 5.609 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001522/0.1588, allocations: 44.91 kB / 0.769 GB, free: 5.562 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 3.42e-05/0.1588, allocations: 4 kB / 0.769 GB, free: 5.559 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.292e-05/0.1589, allocations: 34.56 kB / 0.7691 GB, free: 5.516 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=3): time 1.382e-06/0.1589, allocations: 0 / 0.7691 GB, free: 5.516 MB / 0.5606 GB Notification: Performance of matching and sorting (n=3): time 0.0005418/0.1594, allocations: 141.6 kB / 0.7692 GB, free: 5.371 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.419e-05/0.1595, allocations: 55.41 kB / 0.7692 GB, free: 5.305 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.723e-05/0.1596, allocations: 113.8 kB / 0.7693 GB, free: 5.184 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 1.791e-05/0.1596, allocations: 33.7 kB / 0.7694 GB, free: 5.145 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 4.398e-05/0.1596, allocations: 88.09 kB / 0.7695 GB, free: 5.055 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 2.116e-05/0.1597, allocations: 11.89 kB / 0.7695 GB, free: 5.043 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.597e-05/0.1597, allocations: 21.64 kB / 0.7695 GB, free: 5.016 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001062/0.1598, allocations: 318.8 kB / 0.7698 GB, free: 4.695 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001472/0.16, allocations: 35.95 kB / 0.7698 GB, free: 4.66 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001356/0.1601, allocations: 31.97 kB / 0.7699 GB, free: 4.629 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002729/0.1604, allocations: 80.7 kB / 0.7699 GB, free: 4.547 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.764e-06/0.1604, allocations: 4 kB / 0.7699 GB, free: 4.543 MB / 0.5606 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0003272/0.1607, allocations: 101.9 kB / 0.77 GB, free: 4.438 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.456e-05/0.1607, allocations: 10.5 kB / 0.7701 GB, free: 4.43 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.939e-06/0.1608, allocations: 0 / 0.7701 GB, free: 4.43 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.269e-05/0.1608, allocations: 4.031 kB / 0.7701 GB, free: 4.426 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001192/0.1609, allocations: 15.97 kB / 0.7701 GB, free: 4.41 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.618e-06/0.1609, allocations: 4 kB / 0.7701 GB, free: 4.406 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.72e-05/0.161, allocations: 11.98 kB / 0.7701 GB, free: 4.395 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.811e-05/0.161, allocations: 4 kB / 0.7701 GB, free: 4.391 MB / 0.5606 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.932e-05/0.1611, allocations: 118.4 kB / 0.7702 GB, free: 4.266 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.585e-05/0.1611, allocations: 0 / 0.7702 GB, free: 4.266 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003649/0.1615, allocations: 117.4 kB / 0.7703 GB, free: 4.141 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.595e-06/0.1615, allocations: 0 / 0.7703 GB, free: 4.141 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.298e-06/0.1615, allocations: 4 kB / 0.7703 GB, free: 4.137 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.244e-06/0.1615, allocations: 0 / 0.7703 GB, free: 4.137 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001705/0.1617, allocations: 185.5 kB / 0.7705 GB, free: 3.906 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.366e-06/0.1617, allocations: 4 kB / 0.7705 GB, free: 3.902 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.213e-05/0.1618, allocations: 15.92 kB / 0.7705 GB, free: 3.887 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.144e-06/0.1618, allocations: 0 / 0.7705 GB, free: 3.887 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.789e-06/0.1618, allocations: 7.984 kB / 0.7705 GB, free: 3.879 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.393e-06/0.1619, allocations: 4 kB / 0.7705 GB, free: 3.875 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.172e-06/0.1619, allocations: 0 / 0.7705 GB, free: 3.875 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003603/0.1622, allocations: 203.4 kB / 0.7707 GB, free: 3.66 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 5.154e-05/0.1623, allocations: 85.05 kB / 0.7708 GB, free: 3.559 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.4e-05/0.1623, allocations: 0 / 0.7708 GB, free: 3.559 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001064/0.1624, allocations: 11.98 kB / 0.7708 GB, free: 3.547 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.821e-05/0.1625, allocations: 8 kB / 0.7708 GB, free: 3.539 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.724e-06/0.1625, allocations: 4 kB / 0.7708 GB, free: 3.535 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 4.871e-05/0.1625, allocations: 95.2 kB / 0.7709 GB, free: 3.441 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.4e-07/0.1625, allocations: 0 / 0.7709 GB, free: 3.441 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0002303/0.1628, allocations: 11.94 kB / 0.7709 GB, free: 3.43 MB / 0.5606 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.0006818/0.1635, allocations: 0.7397 MB / 0.7717 GB, free: 2.664 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.0003524/0.1638, allocations: 83.86 kB / 0.7717 GB, free: 2.582 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 1.693e-06/0.1638, allocations: 0 / 0.7717 GB, free: 2.582 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.0001527/0.164, allocations: 39.95 kB / 0.7718 GB, free: 2.543 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000305/0.1643, allocations: 4 kB / 0.7718 GB, free: 2.539 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001807/0.1661, allocations: 1.432 MB / 0.7732 GB, free: 1.027 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002518/0.1664, allocations: 0.6885 MB / 0.7738 GB, free: 320 kB / 0.5606 GB Notification: Performance of simCode: alias equations: time 4.728e-05/0.1664, allocations: 8.359 kB / 0.7739 GB, free: 312 kB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.799e-05/0.1665, allocations: 19.38 kB / 0.7739 GB, free: 292 kB / 0.5606 GB Notification: Performance of SimCode: time 3.61e-07/0.1665, allocations: 0 / 0.7739 GB, free: 292 kB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3465/0.513, allocations: 1.834 MB / 0.7757 GB, free: 14.59 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.5/8.013, allocations: 6.547 kB / 0.7757 GB, free: 14.59 MB / 0.5606 GB (rm -f BuildingSystems_BuildingSystems.Utilities.Math.Examples.Average.pipe ; mkfifo BuildingSystems_BuildingSystems.Utilities.Math.Examples.Average.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Utilities.Math.Examples.Average.pipe >> ../files/BuildingSystems_BuildingSystems.Utilities.Math.Examples.Average.sim & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.Utilities.Math.Examples.Average_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_Average.fmu > BuildingSystems_BuildingSystems.Utilities.Math.Examples.Average.pipe 2>&1)