Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.IsMonotonic.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.IsMonotonic,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Math_Functions_Examples_IsMonotonic",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Utilities.Math.Functions.Examples.IsMonotonic,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Math_Functions_Examples_IsMonotonic",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.0008438/0.0008436, allocations: 99.7 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.0008564/0.0008565, 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.218/1.218, allocations: 223.2 MB / 239.9 MB, free: 5.453 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001621/0.001621, allocations: 270.8 kB / 291.2 MB, free: 2.004 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 0.7092/0.7092, allocations: 144.6 MB / 487 MB, free: 7.176 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003472/0.0003472, allocations: 14.91 kB / 0.5684 GB, free: 38.99 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1038/0.1041, allocations: 83.09 MB / 0.6495 GB, free: 3.633 MB / 446.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Functions.Examples.IsMonotonic): time 0.0005514/0.1047, allocations: 331.6 kB / 0.6499 GB, free: 3.309 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002004/0.1049, allocations: 65.77 kB / 0.6499 GB, free: 3.246 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.462e-05/0.105, allocations: 0.5625 kB / 0.6499 GB, free: 3.246 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 2.127e-05/0.105, allocations: 6.391 kB / 0.6499 GB, free: 3.242 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 3.387e-05/0.105, allocations: 4 kB / 0.6499 GB, free: 3.238 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001737/0.1052, allocations: 31.95 kB / 0.65 GB, free: 3.207 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 4.998e-05/0.1053, allocations: 27.91 kB / 0.65 GB, free: 3.18 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.241e-05/0.1053, allocations: 3.438 kB / 0.65 GB, free: 3.18 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.328e-05/0.1053, allocations: 23.97 kB / 0.65 GB, free: 3.156 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001557/0.1055, allocations: 67.92 kB / 0.6501 GB, free: 3.09 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 8.345e-06/0.1055, allocations: 0 / 0.6501 GB, free: 3.09 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.151e-05/0.1056, allocations: 31.97 kB / 0.6501 GB, free: 3.059 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 2.655e-05/0.1056, allocations: 19.92 kB / 0.6501 GB, free: 3.039 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 2.047e-05/0.1056, allocations: 33.64 kB / 0.6502 GB, free: 3 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 6.867e-05/0.1057, allocations: 35.94 kB / 0.6502 GB, free: 2.965 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.593e-06/0.1057, allocations: 0 / 0.6502 GB, free: 2.965 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.954e-06/0.1057, allocations: 0 / 0.6502 GB, free: 2.965 MB / 446.1 MB Notification: Performance of Transformations before backend: time 3.076e-06/0.1057, allocations: 4.812 kB / 0.6502 GB, free: 2.961 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: 21 * Number of variables: 21 Notification: Performance of Generate backend data structure: time 0.0002212/0.106, allocations: 348.1 kB / 0.6505 GB, free: 2.574 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.908e-05/0.106, allocations: 12.72 kB / 0.6505 GB, free: 2.562 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.378e-05/0.106, allocations: 38.55 kB / 0.6506 GB, free: 2.516 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.474e-05/0.1061, allocations: 8.469 kB / 0.6506 GB, free: 2.508 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 6.746e-05/0.1061, allocations: 174.9 kB / 0.6508 GB, free: 2.297 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.965e-06/0.1062, allocations: 4.641 kB / 0.6508 GB, free: 2.293 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.315e-06/0.1062, allocations: 8.438 kB / 0.6508 GB, free: 2.285 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001843/0.1064, allocations: 168.1 kB / 0.6509 GB, free: 2.098 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.009e-06/0.1064, allocations: 0 / 0.6509 GB, free: 2.098 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.061e-05/0.1064, allocations: 7.984 kB / 0.6509 GB, free: 2.09 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.509e-05/0.1064, allocations: 32.66 kB / 0.651 GB, free: 2.059 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.561e-05/0.1065, allocations: 36.5 kB / 0.651 GB, free: 2.023 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004991/0.107, allocations: 0.9022 MB / 0.6519 GB, free: 1.055 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.555e-05/0.1071, allocations: 170.6 kB / 0.652 GB, free: 0.8789 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.545e-05/0.1071, allocations: 75.28 kB / 0.6521 GB, free: 0.8047 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.687e-05/0.1071, allocations: 115.2 kB / 0.6522 GB, free: 0.6836 MB / 446.1 MB Notification: Performance of pre-optimization done (n=0): time 1.413e-06/0.1071, allocations: 0.7188 kB / 0.6522 GB, free: 0.6836 MB / 446.1 MB Notification: Performance of matching and sorting (n=0): time 5.618e-05/0.1072, allocations: 37.55 kB / 0.6523 GB, free: 0.6406 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001127/0.1073, allocations: 392.6 kB / 0.6526 GB, free: 188 kB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001054/0.1074, allocations: 173.2 kB / 0.6528 GB, free: 8 kB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 2.385e-05/0.1074, allocations: 25.7 kB / 0.6528 GB, free: 15.98 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.103e-05/0.1075, allocations: 147.3 kB / 0.653 GB, free: 15.83 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.685e-06/0.1075, allocations: 0 / 0.653 GB, free: 15.83 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.578e-06/0.1075, allocations: 6.219 kB / 0.653 GB, free: 15.82 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 7.877e-05/0.1076, allocations: 322.9 kB / 0.6533 GB, free: 15.5 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.591e-05/0.1077, allocations: 32.34 kB / 0.6533 GB, free: 15.47 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001275/0.1078, allocations: 217.9 kB / 0.6535 GB, free: 15.17 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.322e-05/0.1079, allocations: 58.64 kB / 0.6536 GB, free: 15.12 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.984e-06/0.1079, allocations: 4 kB / 0.6536 GB, free: 15.11 MB / 462.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0002413/0.1081, allocations: 193.6 kB / 0.6538 GB, free: 14.92 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.112e-05/0.1081, allocations: 12.12 kB / 0.6538 GB, free: 14.91 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.612e-06/0.1082, allocations: 8 kB / 0.6538 GB, free: 14.9 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.173e-05/0.1082, allocations: 8 kB / 0.6538 GB, free: 14.89 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001085/0.1083, allocations: 35.92 kB / 0.6538 GB, free: 14.86 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.248e-05/0.1083, allocations: 15.97 kB / 0.6538 GB, free: 14.84 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.746e-05/0.1084, allocations: 23.75 kB / 0.6539 GB, free: 14.82 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.25e-05/0.1084, allocations: 16 kB / 0.6539 GB, free: 14.8 MB / 462.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 21 * 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 (21): * Single equations (assignments): 21 * 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.443e-05/0.1085, allocations: 213 kB / 0.6541 GB, free: 14.58 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.171e-05/0.1086, allocations: 120.8 kB / 0.6542 GB, free: 14.46 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.847e-05/0.1086, allocations: 112.9 kB / 0.6543 GB, free: 14.34 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.1e-05/0.1086, allocations: 188.1 kB / 0.6545 GB, free: 14.15 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.212e-05/0.1087, allocations: 180.3 kB / 0.6547 GB, free: 13.96 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.008e-05/0.1087, allocations: 176.3 kB / 0.6548 GB, free: 13.79 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001782/0.1089, allocations: 429.1 kB / 0.6552 GB, free: 13.31 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.382e-05/0.109, allocations: 101 kB / 0.6553 GB, free: 13.2 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.649e-05/0.109, allocations: 104.9 kB / 0.6554 GB, free: 13.09 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.237e-05/0.109, allocations: 180.2 kB / 0.6556 GB, free: 12.91 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.222e-05/0.1091, allocations: 188.3 kB / 0.6558 GB, free: 12.72 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.189e-05/0.1091, allocations: 180.4 kB / 0.656 GB, free: 12.54 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.414e-05/0.1092, allocations: 184.2 kB / 0.6561 GB, free: 12.35 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.567e-05/0.1093, allocations: 311.8 kB / 0.6564 GB, free: 12.02 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.633e-05/0.1093, allocations: 189.9 kB / 0.6566 GB, free: 11.81 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.881e-05/0.1094, allocations: 184.2 kB / 0.6568 GB, free: 11.62 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.174e-05/0.1095, allocations: 109 kB / 0.6569 GB, free: 11.51 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.566e-05/0.1095, allocations: 184.2 kB / 0.6571 GB, free: 11.32 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.677e-05/0.1096, allocations: 105 kB / 0.6572 GB, free: 11.21 MB / 462.1 MB Notification: Performance of sorting global known variables: time 6.025e-05/0.1096, allocations: 116.3 kB / 0.6573 GB, free: 11.1 MB / 462.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1096, allocations: 0 / 0.6573 GB, free: 11.1 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.0002705/0.1099, allocations: 28 kB / 0.6573 GB, free: 11.07 MB / 462.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 (0): * Single equations (assignments): 0 * 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.0003221/0.1102, allocations: 0.8282 MB / 0.6581 GB, free: 10.22 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.0001143/0.1104, allocations: 72.78 kB / 0.6582 GB, free: 10.15 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 1.863e-06/0.1104, allocations: 320 / 0.6582 GB, free: 10.15 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 1.273e-06/0.1104, allocations: 4 kB / 0.6582 GB, free: 10.14 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002249/0.1106, allocations: 0.538 MB / 0.6587 GB, free: 9.602 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00039/0.111, allocations: 292 kB / 0.659 GB, free: 9.273 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00019/0.1112, allocations: 0.6971 MB / 0.6597 GB, free: 8.551 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.0001563/0.1114, allocations: 52.59 kB / 0.6597 GB, free: 8.5 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.497e-05/0.1114, allocations: 23.42 kB / 0.6597 GB, free: 8.477 MB / 462.1 MB Notification: Performance of SimCode: time 2.51e-07/0.1114, allocations: 4 kB / 0.6597 GB, free: 8.473 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.18/1.291, allocations: 2.763 MB / 0.6624 GB, free: 5.891 MB / 462.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003012/1.291, allocations: 196.3 kB / 0.6626 GB, free: 5.652 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.863/3.154, allocations: 64 / 0.6626 GB, free: 5.652 MB / 462.1 MB (rm -f BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.IsMonotonic.pipe ; mkfifo BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.IsMonotonic.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.IsMonotonic.pipe >> ../files/BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.IsMonotonic.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Utilities_Math_Functions_Examples_IsMonotonic_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Utilities_Math_Functions_Examples_IsMonotonic.fmu > BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.IsMonotonic.pipe 2>&1) Environment - environmentSimulation: