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/BuildingSystems 2.0.0-master/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/ModelicaServices 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) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/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) 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 BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/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/BuildingSystems 2.0.0-master/package.mo): time 0.8037/0.8037, allocations: 143.4 MB / 158.3 MB, free: 5.801 MB / 122.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00106/0.00106, allocations: 177 kB / 191.5 MB, free: 5.762 MB / 154.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.495/1.495, allocations: 223.2 MB / 447.7 MB, free: 4.82 MB / 330.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009292/0.0009294, allocations: 88.39 kB / 0.5187 GB, free: 1.184 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.00196/0.00196, allocations: 273.5 kB / 0.6005 GB, free: 48.74 MB / 410.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004041/0.0004042, allocations: 18.19 kB / 0.6929 GB, free: 59.66 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1629/0.1634, allocations: 82.8 MB / 0.7738 GB, free: 13.72 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1538/0.3172, allocations: 108.5 MB / 0.8798 GB, free: 1.051 MB / 0.5417 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002412/0.3175, allocations: 79.94 kB / 0.8799 GB, free: 0.9727 MB / 0.5417 GB Notification: Performance of FrontEnd - DAE generated: time 0.3629/0.6804, allocations: 4.025 MB / 0.8838 GB, free: 109 MB / 0.5417 GB Notification: Performance of FrontEnd: time 1.764e-06/0.6805, allocations: 0 / 0.8838 GB, free: 109 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 4.628e-06/0.6805, allocations: 0 / 0.8838 GB, free: 109 MB / 0.5417 GB 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.0002086/0.6807, allocations: 349.9 kB / 0.8841 GB, free: 108.6 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 4.013e-05/0.6807, allocations: 10.53 kB / 0.8841 GB, free: 108.6 MB / 0.5417 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.208e-05/0.6808, allocations: 34.5 kB / 0.8842 GB, free: 108.6 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.566e-05/0.6808, allocations: 0 / 0.8842 GB, free: 108.6 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 4.785e-05/0.6809, allocations: 162.3 kB / 0.8843 GB, free: 108.4 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.023e-05/0.6809, allocations: 6.609 kB / 0.8843 GB, free: 108.4 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.763e-06/0.6809, allocations: 0 / 0.8843 GB, free: 108.4 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 7.647e-05/0.681, allocations: 26.92 kB / 0.8844 GB, free: 108.4 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.781e-06/0.681, allocations: 6.562 kB / 0.8844 GB, free: 108.4 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.074e-06/0.681, allocations: 3.938 kB / 0.8844 GB, free: 108.4 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.619e-06/0.681, allocations: 0 / 0.8844 GB, free: 108.4 MB / 0.5417 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.861e-05/0.681, allocations: 7.172 kB / 0.8844 GB, free: 108.4 MB / 0.5417 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 9.572e-05/0.6811, allocations: 151.8 kB / 0.8845 GB, free: 108.2 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 3.031e-05/0.6812, allocations: 21.22 kB / 0.8845 GB, free: 108.2 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003443/0.6815, allocations: 429.1 kB / 0.885 GB, free: 107.7 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.21e-05/0.6816, allocations: 30.56 kB / 0.885 GB, free: 107.6 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=1): time 1.462e-06/0.6816, allocations: 1.5 kB / 0.885 GB, free: 107.6 MB / 0.5417 GB Notification: Performance of matching and sorting (n=1): time 0.0001243/0.6817, allocations: 39.02 kB / 0.885 GB, free: 107.6 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.844e-05/0.6817, allocations: 57.25 kB / 0.8851 GB, free: 107.5 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 1.309e-05/0.6817, allocations: 85 kB / 0.8852 GB, free: 107.4 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 6.633e-06/0.6818, allocations: 29.83 kB / 0.8852 GB, free: 107.4 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 1.241e-05/0.6818, allocations: 80.69 kB / 0.8853 GB, free: 107.3 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 2.318e-05/0.6818, allocations: 3 kB / 0.8853 GB, free: 107.3 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.924e-06/0.6818, allocations: 0 / 0.8853 GB, free: 107.3 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 4.484e-05/0.6819, allocations: 310.9 kB / 0.8856 GB, free: 107 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.255e-06/0.6819, allocations: 4 kB / 0.8856 GB, free: 107 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.581e-06/0.6819, allocations: 6.781 kB / 0.8856 GB, free: 107 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 1.36e-05/0.6819, allocations: 0 / 0.8856 GB, free: 107 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.543e-06/0.6819, allocations: 0 / 0.8856 GB, free: 107 MB / 0.5417 GB Notification: Performance of matching and sorting (n=1) (initialization): time 4.954e-05/0.682, allocations: 39.89 kB / 0.8856 GB, free: 107 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 1.268e-05/0.682, allocations: 9.734 kB / 0.8856 GB, free: 107 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.27e-06/0.682, allocations: 0 / 0.8856 GB, free: 107 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.186e-05/0.682, allocations: 3.938 kB / 0.8856 GB, free: 107 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.945e-05/0.6821, allocations: 3.875 kB / 0.8856 GB, free: 107 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.508e-06/0.6821, allocations: 0 / 0.8856 GB, free: 107 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.418e-06/0.6821, allocations: 0 / 0.8856 GB, free: 107 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.031e-06/0.6821, allocations: 2.812 kB / 0.8856 GB, free: 107 MB / 0.5417 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 (1): * Single equations (assignments): 1 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 4.106e-05/0.6821, allocations: 106.4 kB / 0.8857 GB, free: 106.9 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.584e-05/0.6822, allocations: 4 kB / 0.8857 GB, free: 106.9 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.334e-05/0.6822, allocations: 45.3 kB / 0.8858 GB, free: 106.8 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.383e-06/0.6822, allocations: 0 / 0.8858 GB, free: 106.8 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.767e-06/0.6822, allocations: 2.594 kB / 0.8858 GB, free: 106.8 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.565e-06/0.6823, allocations: 0 / 0.8858 GB, free: 106.8 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.342e-05/0.6823, allocations: 151.8 kB / 0.8859 GB, free: 106.6 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.31e-07/0.6823, allocations: 0 / 0.8859 GB, free: 106.6 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.186e-05/0.6823, allocations: 3.25 kB / 0.8859 GB, free: 106.6 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.343e-06/0.6823, allocations: 0 / 0.8859 GB, free: 106.6 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.342e-06/0.6824, allocations: 4.031 kB / 0.8859 GB, free: 106.6 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.613e-06/0.6824, allocations: 10.05 kB / 0.8859 GB, free: 106.6 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.11e-07/0.6824, allocations: 0 / 0.8859 GB, free: 106.6 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 5.89e-05/0.6824, allocations: 60.23 kB / 0.886 GB, free: 106.6 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 1.56e-05/0.6825, allocations: 81.05 kB / 0.8861 GB, free: 106.5 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.103e-05/0.6825, allocations: 0 / 0.8861 GB, free: 106.5 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.553e-06/0.6825, allocations: 3.938 kB / 0.8861 GB, free: 106.4 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.397e-05/0.6825, allocations: 7.984 kB / 0.8861 GB, free: 106.4 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.454e-06/0.6825, allocations: 5.406 kB / 0.8861 GB, free: 106.4 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 1.242e-05/0.6825, allocations: 75.28 kB / 0.8862 GB, free: 106.4 MB / 0.5417 GB Notification: Performance of sort global known variables: time 1e-07/0.6825, allocations: 0 / 0.8862 GB, free: 106.4 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.0001962/0.6827, allocations: 20.34 kB / 0.8862 GB, free: 106.4 MB / 0.5417 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 (1): * Single equations (assignments): 1 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002775/0.683, allocations: 0.6127 MB / 0.8868 GB, free: 105.8 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 5.178e-05/0.6831, allocations: 2.594 kB / 0.8868 GB, free: 105.8 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 1.914e-06/0.6831, allocations: 0 / 0.8868 GB, free: 105.8 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 5.59e-06/0.6831, allocations: 2.594 kB / 0.8868 GB, free: 105.8 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 9.117e-05/0.6832, allocations: 8.016 kB / 0.8868 GB, free: 105.8 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002281/0.6834, allocations: 108.6 kB / 0.8869 GB, free: 105.6 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.043e-05/0.6835, allocations: 0.6783 MB / 0.8876 GB, free: 104.9 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 1.706e-05/0.6836, allocations: 6.844 kB / 0.8876 GB, free: 104.9 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.177e-05/0.6836, allocations: 7.438 kB / 0.8876 GB, free: 104.9 MB / 0.5417 GB Notification: Performance of SimCode: time 2.4e-07/0.6836, allocations: 0 / 0.8876 GB, free: 104.9 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01054/0.6941, allocations: 0.9801 MB / 0.8885 GB, free: 104.8 MB / 0.5417 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001615/0.6943, allocations: 208.6 kB / 0.8887 GB, free: 104.6 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.486/2.18, allocations: 0 / 0.8887 GB, free: 104.6 MB / 0.5417 GB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Utilities_Math_Functions_Examples_RegNonZeroPower_fmu --startTime=-1 --stopTime=1 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Utilities_Math_Functions_Examples_RegNonZeroPower.fmu > BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.RegNonZeroPower.pipe 2>&1)