Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.RegStep.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.RegStep,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Math_Functions_Examples_RegStep",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Utilities.Math.Functions.Examples.RegStep,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Math_Functions_Examples_RegStep",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.001236/0.001236, allocations: 98.77 kB / 15.05 MB, free: 1.105 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.001379/0.001379, allocations: 177.3 kB / 15.94 MB, free: 228 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.47/1.47, allocations: 223.2 MB / 239.9 MB, free: 5.344 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001731/0.001731, allocations: 262.6 kB / 291.2 MB, free: 1.922 MB / 238.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/Buildings/Airvolumes/Parameter/package.mo:5:3-5:34:writable] Warning: Got element f_alp that was not referenced in the package.order file. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/Buildings/Airvolumes/Parameter/package.mo:6:3-6:35:writable] Warning: Elements in the package.mo-file need to be in the same relative order as the package.order file. Got element named f_lay but it was already added because it was not the next element in the list at that time. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/Buildings/Airvolumes/Parameter/package.mo:6:3-6:35:writable] Warning: Got element f_lay that was not referenced in the package.order file. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/Buildings/Airvolumes/Parameter/package.mo:7:3-7:37:writable] Warning: Elements in the package.mo-file need to be in the same relative order as the package.order file. Got element named f_loss but it was already added because it was not the next element in the list at that time. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/Buildings/Airvolumes/Parameter/package.mo:7:3-7:37:writable] Warning: Got element f_loss that was not referenced in the package.order file. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/Buildings/Airvolumes/Parameter/package.mo:8:3-8:33:writable] Warning: Elements in the package.mo-file need to be in the same relative order as the package.order file. Got element named f_pv but it was already added because it was not the next element in the list at that time. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/Buildings/Airvolumes/Parameter/package.mo:8:3-8:33:writable] Warning: Got element f_pv that was not referenced in the package.order file. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/Buildings/Airvolumes/Parameter/package.mo:2:1-34:14:writable] Warning: f_pv was referenced in the package.order file, but was not found in package.mo, f_pv/package.mo or f_pv.mo. Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.069/1.069, allocations: 144.6 MB / 487 MB, free: 7.188 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004514/0.0004514, allocations: 13.84 kB / 0.5684 GB, free: 38.29 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2009/0.2014, allocations: 83.08 MB / 0.6495 GB, free: 3.543 MB / 446.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Functions.Examples.RegStep): time 0.0008115/0.2022, allocations: 299.8 kB / 0.6498 GB, free: 3.25 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002471/0.2025, allocations: 49.14 kB / 0.6499 GB, free: 3.203 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.066e-05/0.2025, allocations: 0 / 0.6499 GB, free: 3.203 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 1.13e-05/0.2025, allocations: 0.5312 kB / 0.6499 GB, free: 3.203 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 5.631e-06/0.2025, allocations: 0.5312 kB / 0.6499 GB, free: 3.203 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002115/0.2028, allocations: 16.5 kB / 0.6499 GB, free: 3.188 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 3.61e-05/0.2028, allocations: 4.656 kB / 0.6499 GB, free: 3.184 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.948e-05/0.2029, allocations: 0 / 0.6499 GB, free: 3.184 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.727e-05/0.2029, allocations: 5.781 kB / 0.6499 GB, free: 3.18 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.764e-05/0.2029, allocations: 0 / 0.6499 GB, free: 3.18 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 1.016e-05/0.203, allocations: 0 / 0.6499 GB, free: 3.18 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.518e-05/0.2031, allocations: 23.92 kB / 0.6499 GB, free: 3.156 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 6.011e-06/0.2031, allocations: 0 / 0.6499 GB, free: 3.156 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 2.677e-05/0.2031, allocations: 26.89 kB / 0.6499 GB, free: 3.125 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 6.843e-05/0.2032, allocations: 11.98 kB / 0.65 GB, free: 3.113 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.816e-06/0.2032, allocations: 0 / 0.65 GB, free: 3.113 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.064e-06/0.2032, allocations: 1.781 kB / 0.65 GB, free: 3.113 MB / 446.1 MB Notification: Performance of Transformations before backend: time 7.003e-06/0.2032, allocations: 0 / 0.65 GB, free: 3.113 MB / 446.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.0002961/0.2035, allocations: 315.4 kB / 0.6503 GB, free: 2.758 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.641e-05/0.2036, allocations: 8.031 kB / 0.6503 GB, free: 2.75 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.567e-05/0.2036, allocations: 31.5 kB / 0.6503 GB, free: 2.711 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002814/0.2039, allocations: 16.69 kB / 0.6503 GB, free: 2.695 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000105/0.204, allocations: 171.1 kB / 0.6505 GB, free: 2.488 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.325e-05/0.2041, allocations: 5.203 kB / 0.6505 GB, free: 2.484 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.097e-05/0.2041, allocations: 0 / 0.6505 GB, free: 2.484 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001451/0.2042, allocations: 42.28 kB / 0.6505 GB, free: 2.438 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.254e-06/0.2042, allocations: 0.5312 kB / 0.6505 GB, free: 2.438 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.035e-06/0.2043, allocations: 0 / 0.6505 GB, free: 2.438 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.529e-06/0.2043, allocations: 0.5938 kB / 0.6505 GB, free: 2.438 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001054/0.2044, allocations: 12.52 kB / 0.6505 GB, free: 2.426 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001674/0.2046, allocations: 147.6 kB / 0.6507 GB, free: 2.234 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 8.917e-05/0.2047, allocations: 22.56 kB / 0.6507 GB, free: 2.203 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.424e-05/0.2047, allocations: 5.328 kB / 0.6507 GB, free: 2.199 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.055e-05/0.2047, allocations: 34.56 kB / 0.6507 GB, free: 2.156 MB / 446.1 MB Notification: Performance of pre-optimization done (n=1): time 1.122e-06/0.2047, allocations: 0.75 kB / 0.6507 GB, free: 2.156 MB / 446.1 MB Notification: Performance of matching and sorting (n=1): time 0.0002567/0.205, allocations: 47.78 kB / 0.6508 GB, free: 2.105 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.55e-05/0.2051, allocations: 51.41 kB / 0.6508 GB, free: 2.043 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.95e-05/0.2051, allocations: 89.86 kB / 0.6509 GB, free: 1.945 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 1.437e-05/0.2051, allocations: 26.36 kB / 0.6509 GB, free: 1.914 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.166e-05/0.2052, allocations: 84.12 kB / 0.651 GB, free: 1.828 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.712e-05/0.2052, allocations: 8.656 kB / 0.651 GB, free: 1.82 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.437e-06/0.2052, allocations: 0 / 0.651 GB, free: 1.82 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001079/0.2053, allocations: 311.9 kB / 0.6513 GB, free: 1.508 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.732e-05/0.2054, allocations: 5.531 kB / 0.6513 GB, free: 1.504 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.891e-05/0.2054, allocations: 7.984 kB / 0.6513 GB, free: 1.496 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.387e-05/0.2055, allocations: 4.719 kB / 0.6513 GB, free: 1.492 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.833e-06/0.2055, allocations: 0 / 0.6513 GB, free: 1.492 MB / 446.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 0.0001498/0.2057, allocations: 46.5 kB / 0.6514 GB, free: 1.441 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.864e-05/0.2057, allocations: 14.38 kB / 0.6514 GB, free: 1.43 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.238e-06/0.2057, allocations: 0 / 0.6514 GB, free: 1.43 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.375e-05/0.2057, allocations: 0 / 0.6514 GB, free: 1.43 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.018e-05/0.2058, allocations: 4 kB / 0.6514 GB, free: 1.426 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.33e-06/0.2058, allocations: 0 / 0.6514 GB, free: 1.426 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.07e-05/0.2059, allocations: 3.938 kB / 0.6514 GB, free: 1.422 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.573e-06/0.2059, allocations: 4.562 kB / 0.6514 GB, free: 1.418 MB / 446.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.359e-05/0.206, allocations: 115.8 kB / 0.6515 GB, free: 1.297 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.085e-06/0.206, allocations: 0 / 0.6515 GB, free: 1.297 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.475e-05/0.2061, allocations: 11.06 kB / 0.6515 GB, free: 1.289 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.283e-06/0.2061, allocations: 0.6875 kB / 0.6515 GB, free: 1.289 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.809e-06/0.2061, allocations: 0 / 0.6515 GB, free: 1.289 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.867e-06/0.2061, allocations: 0.875 kB / 0.6515 GB, free: 1.289 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001108/0.2062, allocations: 153.7 kB / 0.6517 GB, free: 1.09 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.72e-07/0.2062, allocations: 0 / 0.6517 GB, free: 1.09 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.445e-05/0.2063, allocations: 0.75 kB / 0.6517 GB, free: 1.09 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.643e-06/0.2063, allocations: 5.406 kB / 0.6517 GB, free: 1.086 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.025e-05/0.2063, allocations: 0 / 0.6517 GB, free: 1.086 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.045e-06/0.2063, allocations: 3.953 kB / 0.6517 GB, free: 1.082 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.072e-06/0.2063, allocations: 0 / 0.6517 GB, free: 1.082 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001748/0.2065, allocations: 71.67 kB / 0.6518 GB, free: 0.9961 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.484e-05/0.2066, allocations: 81.11 kB / 0.6518 GB, free: 0.8984 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.374e-05/0.2066, allocations: 0 / 0.6518 GB, free: 0.8984 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.688e-05/0.2066, allocations: 0.625 kB / 0.6518 GB, free: 0.8984 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.982e-05/0.2067, allocations: 4.547 kB / 0.6518 GB, free: 0.8945 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.003e-06/0.2067, allocations: 8 kB / 0.6519 GB, free: 0.8867 MB / 446.1 MB Notification: Performance of sorting global known variables: time 3.898e-05/0.2067, allocations: 77.94 kB / 0.6519 GB, free: 0.8125 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.2067, allocations: 0 / 0.6519 GB, free: 0.8125 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0002544/0.207, allocations: 0 / 0.6519 GB, free: 0.8125 MB / 446.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 (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.0005102/0.2075, allocations: 0.6046 MB / 0.6525 GB, free: 184 kB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.0001538/0.2077, allocations: 13.08 kB / 0.6525 GB, free: 172 kB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.535e-06/0.2077, allocations: 352 / 0.6525 GB, free: 172 kB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 5.188e-05/0.2077, allocations: 11.98 kB / 0.6525 GB, free: 160 kB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001248/0.2079, allocations: 3.953 kB / 0.6525 GB, free: 156 kB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000456/0.2083, allocations: 120.4 kB / 0.6527 GB, free: 15.99 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003025/0.2087, allocations: 0.677 MB / 0.6533 GB, free: 15.29 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 5.194e-05/0.2087, allocations: 4.062 kB / 0.6533 GB, free: 15.29 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.486e-05/0.2088, allocations: 11.44 kB / 0.6533 GB, free: 15.27 MB / 462.1 MB Notification: Performance of SimCode: time 2.7e-07/0.2088, allocations: 0 / 0.6533 GB, free: 15.27 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01299/0.2218, allocations: 0.7536 MB / 0.6541 GB, free: 14.66 MB / 462.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000209/0.222, allocations: 194.6 kB / 0.6543 GB, free: 14.42 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.73/1.952, allocations: 0 / 0.6543 GB, free: 14.42 MB / 462.1 MB (rm -f BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.RegStep.pipe ; mkfifo BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.RegStep.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.RegStep.pipe >> ../files/BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.RegStep.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Utilities_Math_Functions_Examples_RegStep_fmu --startTime=-1 --stopTime=1 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Utilities_Math_Functions_Examples_RegStep.fmu > BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.RegStep.pipe 2>&1) Environment - environmentSimulation: