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.8432/0.8432, allocations: 141.8 MB / 149.3 MB, free: 9.215 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.001199/0.001199, allocations: 167.9 kB / 182.2 MB, free: 9.48 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.525/1.525, allocations: 221.5 MB / 436.4 MB, free: 13.35 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.0009692/0.0009692, allocations: 84.11 kB / 0.5074 GB, free: 10.18 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001987/0.001987, allocations: 280.7 kB / 0.5889 GB, free: 54.68 MB / 410.7 MB Notification: Performance of FrontEnd - loaded program: time 2.355e-05/2.357e-05, allocations: 4 kB / 0.6766 GB, free: 12.74 MB / 458.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.525/0.525, allocations: 82.77 MB / 0.7575 GB, free: 31.92 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1518/0.6769, allocations: 107.8 MB / 0.8628 GB, free: 3.977 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002868/0.6772, allocations: 79.94 kB / 0.8628 GB, free: 3.898 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 0.0121/0.6894, allocations: 4.007 MB / 0.8667 GB, free: 15.89 MB / 0.5417 GB Notification: Performance of FrontEnd: time 3.226e-06/0.6895, allocations: 7.938 kB / 0.8667 GB, free: 15.88 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 1.267e-05/0.6895, allocations: 0 / 0.8667 GB, free: 15.88 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.0004932/0.69, allocations: 342.4 kB / 0.8671 GB, free: 15.5 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 7.084e-05/0.6901, allocations: 12.03 kB / 0.8671 GB, free: 15.49 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001066/0.6902, allocations: 7.984 kB / 0.8671 GB, free: 15.48 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001669/0.6904, allocations: 159.1 kB / 0.8672 GB, free: 15.29 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.997e-05/0.6904, allocations: 3.953 kB / 0.8673 GB, free: 15.28 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.272e-05/0.6904, allocations: 0 / 0.8673 GB, free: 15.28 MB / 0.5417 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 7.652e-05/0.6905, allocations: 4 kB / 0.8673 GB, free: 15.28 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.051e-05/0.6906, allocations: 29.7 kB / 0.8673 GB, free: 15.24 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.005e-05/0.6906, allocations: 0 / 0.8673 GB, free: 15.24 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.302e-05/0.6907, allocations: 0 / 0.8673 GB, free: 15.24 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.592e-06/0.6907, allocations: 0 / 0.8673 GB, free: 15.24 MB / 0.5417 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001819/0.6908, allocations: 130.2 kB / 0.8674 GB, free: 15.08 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 5.569e-05/0.6909, allocations: 22.55 kB / 0.8674 GB, free: 15.05 MB / 0.5417 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.336e-05/0.6909, allocations: 4.859 kB / 0.8674 GB, free: 15.04 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005362/0.6915, allocations: 429.6 kB / 0.8678 GB, free: 14.53 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.196e-05/0.6915, allocations: 34.52 kB / 0.8679 GB, free: 14.48 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=1): time 1.523e-06/0.6915, allocations: 0 / 0.8679 GB, free: 14.48 MB / 0.5417 GB Notification: Performance of matching and sorting (n=1): time 0.0001884/0.6917, allocations: 33.69 kB / 0.8679 GB, free: 14.45 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.032e-05/0.6918, allocations: 51.41 kB / 0.868 GB, free: 14.38 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.244e-05/0.6918, allocations: 89.03 kB / 0.868 GB, free: 14.29 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 1.576e-05/0.6919, allocations: 29.7 kB / 0.8681 GB, free: 14.25 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 3.037e-05/0.6919, allocations: 80.14 kB / 0.8681 GB, free: 14.17 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 2.559e-05/0.6919, allocations: 0 / 0.8681 GB, free: 14.17 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.615e-06/0.6919, allocations: 0 / 0.8681 GB, free: 14.17 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.0001615/0.6921, allocations: 314.8 kB / 0.8684 GB, free: 13.86 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.486e-06/0.6921, allocations: 0 / 0.8684 GB, free: 13.86 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.056e-06/0.6921, allocations: 3.938 kB / 0.8685 GB, free: 13.85 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.844e-05/0.6922, allocations: 12.05 kB / 0.8685 GB, free: 13.84 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.013e-06/0.6922, allocations: 0 / 0.8685 GB, free: 13.84 MB / 0.5417 GB Notification: Performance of matching and sorting (n=1) (initialization): time 8.097e-05/0.6923, allocations: 29.7 kB / 0.8685 GB, free: 13.8 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 2.144e-05/0.6923, allocations: 9.406 kB / 0.8685 GB, free: 13.8 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.291e-06/0.6923, allocations: 0 / 0.8685 GB, free: 13.8 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.4e-05/0.6923, allocations: 3.953 kB / 0.8685 GB, free: 13.79 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.465e-05/0.6924, allocations: 0 / 0.8685 GB, free: 13.79 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.33e-06/0.6924, allocations: 5.109 kB / 0.8685 GB, free: 13.79 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.159e-05/0.6924, allocations: 0 / 0.8685 GB, free: 13.79 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.811e-06/0.6924, allocations: 4 kB / 0.8685 GB, free: 13.79 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 () * 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 7.721e-05/0.6925, allocations: 105 kB / 0.8686 GB, free: 13.68 MB / 0.5417 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 8.352e-05/0.6926, allocations: 37.62 kB / 0.8686 GB, free: 13.63 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.322e-05/0.6926, allocations: 11.86 kB / 0.8687 GB, free: 13.62 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.667e-05/0.6927, allocations: 41.39 kB / 0.8687 GB, free: 13.57 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.984e-06/0.6928, allocations: 0 / 0.8687 GB, free: 13.57 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.725e-06/0.6928, allocations: 3.984 kB / 0.8687 GB, free: 13.57 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.715e-06/0.6928, allocations: 0 / 0.8687 GB, free: 13.57 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.91e-05/0.6929, allocations: 126.2 kB / 0.8688 GB, free: 13.41 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.833e-06/0.6929, allocations: 4.062 kB / 0.8688 GB, free: 13.41 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.531e-05/0.6929, allocations: 4 kB / 0.8688 GB, free: 13.4 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.444e-06/0.6929, allocations: 0 / 0.8688 GB, free: 13.4 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.861e-06/0.6929, allocations: 0 / 0.8688 GB, free: 13.4 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.258e-06/0.6929, allocations: 3.953 kB / 0.8688 GB, free: 13.4 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.755e-06/0.6929, allocations: 0 / 0.8688 GB, free: 13.4 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001135/0.6931, allocations: 61.06 kB / 0.8689 GB, free: 13.32 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 4.212e-05/0.6931, allocations: 77.11 kB / 0.869 GB, free: 13.23 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.472e-05/0.6931, allocations: 8.031 kB / 0.869 GB, free: 13.22 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.173e-06/0.6931, allocations: 0 / 0.869 GB, free: 13.22 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.711e-05/0.6932, allocations: 7.953 kB / 0.869 GB, free: 13.21 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.564e-06/0.6932, allocations: 0 / 0.869 GB, free: 13.21 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 4.551e-05/0.6932, allocations: 79.28 kB / 0.8691 GB, free: 13.13 MB / 0.5417 GB Notification: Performance of sort global known variables: time 1.3e-07/0.6932, allocations: 0 / 0.8691 GB, free: 13.13 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.0002066/0.6934, allocations: 19.92 kB / 0.8691 GB, free: 13.11 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 () * 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.0005684/0.694, allocations: 0.6008 MB / 0.8697 GB, free: 12.48 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 7.64e-05/0.6941, allocations: 11.94 kB / 0.8697 GB, free: 12.47 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 2.615e-06/0.6941, allocations: 0 / 0.8697 GB, free: 12.47 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 6.642e-06/0.6941, allocations: 4 kB / 0.8697 GB, free: 12.47 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001148/0.6943, allocations: 6.391 kB / 0.8697 GB, free: 12.46 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003282/0.6946, allocations: 85.7 kB / 0.8698 GB, free: 12.34 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003593/0.695, allocations: 0.6729 MB / 0.8704 GB, free: 11.64 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 2.638e-05/0.695, allocations: 6.422 kB / 0.8704 GB, free: 11.64 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.166e-05/0.695, allocations: 7.438 kB / 0.8704 GB, free: 11.63 MB / 0.5417 GB Notification: Performance of SimCode: time 3.6e-07/0.695, allocations: 0 / 0.8704 GB, free: 11.63 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02172/0.7168, allocations: 0.6742 MB / 0.8711 GB, free: 10.96 MB / 0.5417 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002382/0.7171, allocations: 164.6 kB / 0.8713 GB, free: 10.77 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.609/2.326, allocations: 5.688 kB / 0.8713 GB, free: 10.77 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)