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.8568/0.8568, allocations: 141.7 MB / 154.3 MB, free: 15.49 MB / 138.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001247/0.001247, allocations: 180.6 kB / 187.3 MB, free: 11.89 MB / 154.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.036/2.036, allocations: 221.3 MB / 441.4 MB, free: 4.598 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.001437/0.001437, allocations: 96.41 kB / 0.5124 GB, free: 24.22 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.003044/0.003043, allocations: 286.8 kB / 0.594 GB, free: 7.957 MB / 442.7 MB Notification: Performance of FrontEnd - loaded program: time 9.259e-05/9.284e-05, allocations: 8 kB / 0.6835 GB, free: 12.14 MB / 0.5261 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7691/0.7693, allocations: 82.78 MB / 0.7644 GB, free: 108.7 MB / 0.5261 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1723/0.9417, allocations: 108.5 MB / 0.8703 GB, free: 68 kB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004184/0.9422, allocations: 79.89 kB / 0.8704 GB, free: 15.99 MB / 0.5417 GB Notification: Performance of FrontEnd - DAE generated: time 0.01539/0.9576, allocations: 4.036 MB / 0.8743 GB, free: 11.96 MB / 0.5417 GB Notification: Performance of FrontEnd: time 5.07e-06/0.9577, allocations: 0 / 0.8743 GB, free: 11.96 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 1.277e-05/0.9578, allocations: 7.938 kB / 0.8743 GB, free: 11.95 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.0005073/0.9583, allocations: 338.4 kB / 0.8747 GB, free: 11.57 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 8.273e-05/0.9584, allocations: 12.03 kB / 0.8747 GB, free: 11.56 MB / 0.5417 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.613e-05/0.9584, allocations: 30.56 kB / 0.8747 GB, free: 11.52 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001097/0.9586, allocations: 0 / 0.8747 GB, free: 11.52 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001776/0.9588, allocations: 159.1 kB / 0.8748 GB, free: 11.33 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.018e-05/0.9588, allocations: 3.953 kB / 0.8749 GB, free: 11.32 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.146e-05/0.9588, allocations: 4 kB / 0.8749 GB, free: 11.32 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001431/0.959, allocations: 37.67 kB / 0.8749 GB, free: 11.28 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.16e-05/0.959, allocations: 0 / 0.8749 GB, free: 11.28 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.091e-05/0.959, allocations: 0 / 0.8749 GB, free: 11.28 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.542e-06/0.959, allocations: 0 / 0.8749 GB, free: 11.28 MB / 0.5417 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.583e-05/0.9591, allocations: 7.938 kB / 0.8749 GB, free: 11.27 MB / 0.5417 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002397/0.9593, allocations: 145.7 kB / 0.875 GB, free: 11.08 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 5.695e-05/0.9594, allocations: 18.53 kB / 0.8751 GB, free: 11.05 MB / 0.5417 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.929e-05/0.9594, allocations: 12.95 kB / 0.8751 GB, free: 11.04 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 0.00067/0.9601, allocations: 421.5 kB / 0.8755 GB, free: 10.53 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.973e-05/0.9601, allocations: 34.56 kB / 0.8755 GB, free: 10.49 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=1): time 1.172e-06/0.9602, allocations: 0 / 0.8755 GB, free: 10.49 MB / 0.5417 GB Notification: Performance of matching and sorting (n=1): time 0.0002236/0.9604, allocations: 45.62 kB / 0.8755 GB, free: 10.44 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.365e-05/0.9605, allocations: 51.41 kB / 0.8756 GB, free: 10.38 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.417e-05/0.9605, allocations: 85 kB / 0.8757 GB, free: 10.29 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 2.251e-05/0.9605, allocations: 25.7 kB / 0.8757 GB, free: 10.25 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 5.269e-05/0.9606, allocations: 80.14 kB / 0.8758 GB, free: 10.17 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 4.653e-05/0.9607, allocations: 0 / 0.8758 GB, free: 10.17 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.364e-06/0.9607, allocations: 0 / 0.8758 GB, free: 10.17 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.0001765/0.9609, allocations: 314.8 kB / 0.8761 GB, free: 9.855 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.089e-05/0.9609, allocations: 0 / 0.8761 GB, free: 9.855 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.46e-06/0.9609, allocations: 4.031 kB / 0.8761 GB, free: 9.852 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.404e-05/0.9609, allocations: 0 / 0.8761 GB, free: 9.852 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.254e-06/0.9609, allocations: 4 kB / 0.8761 GB, free: 9.848 MB / 0.5417 GB Notification: Performance of matching and sorting (n=1) (initialization): time 7.929e-05/0.961, allocations: 33.64 kB / 0.8761 GB, free: 9.809 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 2.561e-05/0.9611, allocations: 15.88 kB / 0.8761 GB, free: 9.793 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.713e-06/0.9611, allocations: 3.938 kB / 0.8761 GB, free: 9.789 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.974e-05/0.9611, allocations: 0 / 0.8761 GB, free: 9.789 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.685e-05/0.9612, allocations: 4 kB / 0.8761 GB, free: 9.785 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.087e-06/0.9612, allocations: 0 / 0.8761 GB, free: 9.785 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.336e-05/0.9612, allocations: 8.094 kB / 0.8761 GB, free: 9.777 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.733e-06/0.9612, allocations: 0 / 0.8761 GB, free: 9.777 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 9.943e-05/0.9613, allocations: 105 kB / 0.8762 GB, free: 9.668 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.246e-05/0.9614, allocations: 0 / 0.8762 GB, free: 9.668 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001204/0.9615, allocations: 40.77 kB / 0.8763 GB, free: 9.625 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.693e-06/0.9615, allocations: 0 / 0.8763 GB, free: 9.625 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.602e-06/0.9615, allocations: 0 / 0.8763 GB, free: 9.625 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.688e-06/0.9615, allocations: 0 / 0.8763 GB, free: 9.625 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001877/0.9617, allocations: 153.6 kB / 0.8764 GB, free: 9.426 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.12e-07/0.9617, allocations: 0 / 0.8764 GB, free: 9.426 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.514e-05/0.9618, allocations: 3.938 kB / 0.8764 GB, free: 9.422 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.733e-06/0.9618, allocations: 0 / 0.8764 GB, free: 9.422 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.597e-05/0.9618, allocations: 11.98 kB / 0.8765 GB, free: 9.41 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.913e-06/0.9618, allocations: 3.953 kB / 0.8765 GB, free: 9.406 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.402e-06/0.9618, allocations: 0 / 0.8765 GB, free: 9.406 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001185/0.9619, allocations: 57.14 kB / 0.8765 GB, free: 9.332 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 7.186e-05/0.962, allocations: 77.11 kB / 0.8766 GB, free: 9.238 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.539e-05/0.962, allocations: 4 kB / 0.8766 GB, free: 9.234 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.145e-06/0.9621, allocations: 0 / 0.8766 GB, free: 9.234 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.194e-05/0.9621, allocations: 7.938 kB / 0.8766 GB, free: 9.227 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.274e-06/0.9621, allocations: 0 / 0.8766 GB, free: 9.227 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 4.892e-05/0.9622, allocations: 75.28 kB / 0.8767 GB, free: 9.152 MB / 0.5417 GB Notification: Performance of sort global known variables: time 1.7e-07/0.9622, allocations: 0 / 0.8767 GB, free: 9.152 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.0002669/0.9624, allocations: 23.94 kB / 0.8767 GB, free: 9.129 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.0006613/0.9631, allocations: 0.6086 MB / 0.8773 GB, free: 8.492 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 8.643e-05/0.9632, allocations: 4 kB / 0.8773 GB, free: 8.488 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 2.896e-06/0.9632, allocations: 0 / 0.8773 GB, free: 8.488 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 9.027e-06/0.9632, allocations: 4 kB / 0.8773 GB, free: 8.484 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001469/0.9634, allocations: 3.953 kB / 0.8773 GB, free: 8.48 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000351/0.9638, allocations: 90.92 kB / 0.8774 GB, free: 8.355 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003938/0.9642, allocations: 0.6692 MB / 0.878 GB, free: 7.66 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 2.399e-05/0.9642, allocations: 0 / 0.878 GB, free: 7.66 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.478e-05/0.9642, allocations: 11.44 kB / 0.878 GB, free: 7.648 MB / 0.5417 GB Notification: Performance of SimCode: time 3.11e-07/0.9642, allocations: 0 / 0.878 GB, free: 7.648 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01457/0.9788, allocations: 0.9828 MB / 0.879 GB, free: 6.84 MB / 0.5417 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002624/0.9791, allocations: 168 kB / 0.8792 GB, free: 6.621 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.68/2.66, allocations: 2.188 kB / 0.8792 GB, free: 6.621 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)