Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.RegNonZeroPower.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.RegNonZeroPower,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Math_Functions_Examples_RegNonZeroPower",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Utilities.Math.Functions.Examples.RegNonZeroPower,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Math_Functions_Examples_RegNonZeroPower",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.001243/0.001243, allocations: 108 kB / 15.61 MB, free: 152 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.001265/0.001266, allocations: 196.6 kB / 16.53 MB, free: 6.664 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.267/1.267, allocations: 222.9 MB / 240.2 MB, free: 4.406 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001997/0.001997, allocations: 286.5 kB / 290.7 MB, free: 2.004 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9052/0.9052, allocations: 169.3 MB / 0.4982 GB, free: 13.93 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001671/0.001671, allocations: 99.64 kB / 0.5954 GB, free: 27.97 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1397/0.1413, allocations: 86.98 MB / 0.6803 GB, free: 0.5625 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Functions.Examples.RegNonZeroPower): time 0.001613/0.143, allocations: 0.5707 MB / 0.6809 GB, free: 0 / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.000636/0.1436, allocations: 338.7 kB / 0.6812 GB, free: 15.67 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.708e-05/0.1437, allocations: 0 / 0.6812 GB, free: 15.67 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 1.221e-05/0.1437, allocations: 0 / 0.6812 GB, free: 15.67 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 5.491e-06/0.1437, allocations: 0 / 0.6812 GB, free: 15.67 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000447/0.1442, allocations: 103.7 kB / 0.6813 GB, free: 15.57 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 3.892e-05/0.1442, allocations: 0 / 0.6813 GB, free: 15.57 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.372e-05/0.1443, allocations: 0 / 0.6813 GB, free: 15.57 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.231e-05/0.1443, allocations: 4 kB / 0.6813 GB, free: 15.56 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.94e-05/0.1443, allocations: 4 kB / 0.6813 GB, free: 15.56 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 8.997e-06/0.1443, allocations: 0 / 0.6813 GB, free: 15.56 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003734/0.1447, allocations: 279.6 kB / 0.6815 GB, free: 15.29 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 1.049e-05/0.1447, allocations: 3.984 kB / 0.6816 GB, free: 15.28 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 1.381e-05/0.1447, allocations: 0 / 0.6816 GB, free: 15.28 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001713/0.1449, allocations: 83.86 kB / 0.6816 GB, free: 15.2 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.817e-06/0.1449, allocations: 0 / 0.6816 GB, free: 15.2 MB / 494.1 MB Notification: Performance of FrontEnd: time 3.296e-06/0.1449, allocations: 0 / 0.6816 GB, free: 15.2 MB / 494.1 MB Notification: Performance of Transformations before backend: time 6.181e-06/0.1449, allocations: 3.938 kB / 0.6816 GB, free: 15.2 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.0002853/0.1452, allocations: 331.9 kB / 0.682 GB, free: 14.82 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.403e-05/0.1453, allocations: 8.031 kB / 0.682 GB, free: 14.81 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.585e-05/0.1453, allocations: 34.75 kB / 0.682 GB, free: 14.77 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.004e-05/0.1453, allocations: 4.875 kB / 0.682 GB, free: 14.77 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.026e-05/0.1454, allocations: 172.2 kB / 0.6822 GB, free: 14.56 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.664e-06/0.1455, allocations: 384 / 0.6822 GB, free: 14.56 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.696e-06/0.1455, allocations: 384 / 0.6822 GB, free: 14.56 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.737e-05/0.1456, allocations: 34.27 kB / 0.6822 GB, free: 14.52 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.317e-06/0.1456, allocations: 3.938 kB / 0.6822 GB, free: 14.52 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.573e-06/0.1456, allocations: 0 / 0.6822 GB, free: 14.52 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.847e-06/0.1456, allocations: 4 kB / 0.6822 GB, free: 14.51 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.655e-05/0.1456, allocations: 0 / 0.6822 GB, free: 14.51 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001181/0.1457, allocations: 149.7 kB / 0.6823 GB, free: 14.32 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.365e-05/0.1458, allocations: 26.48 kB / 0.6824 GB, free: 14.28 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.493e-05/0.1458, allocations: 8.859 kB / 0.6824 GB, free: 14.27 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004576/0.1463, allocations: 425.6 kB / 0.6828 GB, free: 13.76 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.14e-05/0.1463, allocations: 34.56 kB / 0.6828 GB, free: 13.72 MB / 494.1 MB Notification: Performance of pre-optimization done (n=1): time 1.322e-06/0.1463, allocations: 4 kB / 0.6828 GB, free: 13.71 MB / 494.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001349/0.1464, allocations: 33.64 kB / 0.6829 GB, free: 13.68 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.394e-05/0.1465, allocations: 51.41 kB / 0.6829 GB, free: 13.61 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.005e-05/0.1465, allocations: 89.86 kB / 0.683 GB, free: 13.52 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.118e-05/0.1465, allocations: 25.83 kB / 0.683 GB, free: 13.48 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.506e-05/0.1466, allocations: 88.08 kB / 0.6831 GB, free: 13.39 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.163e-05/0.1466, allocations: 0 / 0.6831 GB, free: 13.39 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.653e-05/0.1466, allocations: 17.7 kB / 0.6831 GB, free: 13.37 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 9.037e-05/0.1467, allocations: 314.8 kB / 0.6834 GB, free: 13.05 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.007e-06/0.1467, allocations: 0 / 0.6834 GB, free: 13.05 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.833e-06/0.1467, allocations: 4 kB / 0.6834 GB, free: 13.05 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.146e-05/0.1468, allocations: 4.859 kB / 0.6834 GB, free: 13.04 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.376e-06/0.1468, allocations: 4.062 kB / 0.6834 GB, free: 13.04 MB / 494.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.916e-05/0.1468, allocations: 37.64 kB / 0.6835 GB, free: 13 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.278e-05/0.1469, allocations: 4 kB / 0.6835 GB, free: 12.99 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.15e-06/0.1469, allocations: 3.938 kB / 0.6835 GB, free: 12.99 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.199e-05/0.1469, allocations: 3.984 kB / 0.6835 GB, free: 12.98 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.901e-05/0.1469, allocations: 7.938 kB / 0.6835 GB, free: 12.98 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.888e-06/0.1469, allocations: 0 / 0.6835 GB, free: 12.98 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.837e-06/0.1469, allocations: 0 / 0.6835 GB, free: 12.98 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.519e-06/0.147, allocations: 0 / 0.6835 GB, free: 12.98 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.206e-05/0.147, allocations: 115.2 kB / 0.6836 GB, free: 12.86 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.827e-05/0.147, allocations: 4 kB / 0.6836 GB, free: 12.85 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.4e-05/0.1471, allocations: 40.75 kB / 0.6836 GB, free: 12.8 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.372e-06/0.1471, allocations: 0 / 0.6836 GB, free: 12.8 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.729e-06/0.1471, allocations: 0 / 0.6836 GB, free: 12.8 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.753e-06/0.1471, allocations: 0 / 0.6836 GB, free: 12.8 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.956e-05/0.1472, allocations: 149.6 kB / 0.6838 GB, free: 12.61 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.52e-07/0.1472, allocations: 3.938 kB / 0.6838 GB, free: 12.61 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.047e-05/0.1473, allocations: 0 / 0.6838 GB, free: 12.61 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.312e-06/0.1473, allocations: 4.031 kB / 0.6838 GB, free: 12.6 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.981e-06/0.1473, allocations: 3.938 kB / 0.6838 GB, free: 12.6 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.234e-06/0.1473, allocations: 3.984 kB / 0.6838 GB, free: 12.59 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.903e-06/0.1473, allocations: 7.938 kB / 0.6838 GB, free: 12.59 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.955e-05/0.1474, allocations: 53.14 kB / 0.6839 GB, free: 12.52 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.126e-05/0.1474, allocations: 77.11 kB / 0.6839 GB, free: 12.42 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.138e-05/0.1474, allocations: 7.938 kB / 0.6839 GB, free: 12.41 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.673e-06/0.1474, allocations: 4.031 kB / 0.6839 GB, free: 12.41 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.351e-05/0.1474, allocations: 3.984 kB / 0.6839 GB, free: 12.41 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.126e-06/0.1475, allocations: 4 kB / 0.6839 GB, free: 12.4 MB / 494.1 MB Notification: Performance of sorting global known variables: time 2.191e-05/0.1475, allocations: 75.28 kB / 0.684 GB, free: 12.33 MB / 494.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1475, allocations: 0 / 0.684 GB, free: 12.33 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0001852/0.1477, allocations: 16 kB / 0.684 GB, free: 12.31 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.000372/0.1481, allocations: 0.6202 MB / 0.6846 GB, free: 11.66 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 6.468e-05/0.1481, allocations: 4 kB / 0.6846 GB, free: 11.66 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 2.385e-06/0.1481, allocations: 0 / 0.6846 GB, free: 11.66 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 6.071e-06/0.1481, allocations: 0 / 0.6846 GB, free: 11.66 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001258/0.1483, allocations: 4.75 kB / 0.6846 GB, free: 11.65 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000268/0.1486, allocations: 116 kB / 0.6848 GB, free: 11.5 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002073/0.1488, allocations: 0.673 MB / 0.6854 GB, free: 10.8 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 1.652e-05/0.1488, allocations: 0 / 0.6854 GB, free: 10.8 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.521e-05/0.1488, allocations: 15.38 kB / 0.6854 GB, free: 10.79 MB / 494.1 MB Notification: Performance of SimCode: time 2.4e-07/0.1488, allocations: 0 / 0.6854 GB, free: 10.79 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01531/0.1641, allocations: 1.186 MB / 0.6866 GB, free: 9.723 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.814/6.978, allocations: 8.312 kB / 0.6866 GB, free: 9.715 MB / 494.1 MB (rm -f BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.RegNonZeroPower.pipe ; mkfifo BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.RegNonZeroPower.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.RegNonZeroPower.pipe >> ../files/BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.RegNonZeroPower.sim & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.RegNonZeroPower_res.csv --start-time -1 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0008 BuildingSystems_BuildingSystems_Utilities_Math_Functions_Examples_RegNonZeroPower.fmu > BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.RegNonZeroPower.pipe 2>&1)