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/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.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"}) [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.7243/0.7243, allocations: 141.8 MB / 149.1 MB, free: 3.156 MB / 122.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001494/0.001494, allocations: 182 kB / 181.9 MB, free: 15 MB / 154.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.242/1.242, allocations: 221.4 MB / 436 MB, free: 8.125 MB / 330.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001001/0.001001, allocations: 90.64 kB / 0.507 GB, free: 24.43 MB / 394.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001806/0.001806, allocations: 280.4 kB / 0.5884 GB, free: 11.23 MB / 442.9 MB Notification: Performance of FrontEnd - loaded program: time 0.1723/0.1742, allocations: 89.66 MB / 0.676 GB, free: 1.488 MB / 0.5107 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3454/0.5196, allocations: 82.76 MB / 0.7568 GB, free: 111.8 MB / 0.5263 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1065/0.6261, allocations: 107.6 MB / 0.8619 GB, free: 4.051 MB / 0.5263 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002282/0.6264, allocations: 75.94 kB / 0.8619 GB, free: 3.98 MB / 0.5263 GB 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.002997/0.6294, allocations: 1.204 MB / 0.8631 GB, free: 2.75 MB / 0.5263 GB Notification: Performance of prepare preOptimizeDAE: time 3.719e-05/0.6294, allocations: 9.562 kB / 0.8631 GB, free: 2.742 MB / 0.5263 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.411e-05/0.6295, allocations: 8.406 kB / 0.8631 GB, free: 2.734 MB / 0.5263 GB Notification: Performance of preOpt evaluateParameters (simulation): time 6.583e-05/0.6296, allocations: 168 kB / 0.8633 GB, free: 2.531 MB / 0.5263 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.288e-06/0.6296, allocations: 0 / 0.8633 GB, free: 2.531 MB / 0.5263 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.388e-06/0.6296, allocations: 3.938 kB / 0.8633 GB, free: 2.527 MB / 0.5263 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 7.662e-05/0.6297, allocations: 37.64 kB / 0.8633 GB, free: 2.488 MB / 0.5263 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001409/0.6298, allocations: 152.9 kB / 0.8635 GB, free: 2.316 MB / 0.5263 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.556e-06/0.6298, allocations: 4.625 kB / 0.8635 GB, free: 2.312 MB / 0.5263 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.775e-05/0.6299, allocations: 4.562 kB / 0.8635 GB, free: 2.309 MB / 0.5263 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.015e-05/0.6299, allocations: 24.53 kB / 0.8635 GB, free: 2.285 MB / 0.5263 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000429/0.6303, allocations: 0.8751 MB / 0.8644 GB, free: 1.355 MB / 0.5263 GB Notification: Performance of preOpt comSubExp (simulation): time 4.381e-05/0.6304, allocations: 166.3 kB / 0.8645 GB, free: 1.184 MB / 0.5263 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.7e-05/0.6304, allocations: 81.92 kB / 0.8646 GB, free: 1.102 MB / 0.5263 GB Notification: Performance of preOpt evalFunc (simulation): time 1.261e-05/0.6304, allocations: 76 kB / 0.8647 GB, free: 1.027 MB / 0.5263 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.566e-05/0.6305, allocations: 115 kB / 0.8648 GB, free: 0.9062 MB / 0.5263 GB Notification: Performance of pre-optimization done (n=0): time 1.312e-06/0.6305, allocations: 1.219 kB / 0.8648 GB, free: 0.9062 MB / 0.5263 GB Notification: Performance of matching and sorting (n=0): time 7.283e-05/0.6306, allocations: 37.55 kB / 0.8648 GB, free: 0.8633 MB / 0.5263 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.077e-05/0.6306, allocations: 312.4 kB / 0.8651 GB, free: 496 kB / 0.5263 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.361e-05/0.6307, allocations: 153.6 kB / 0.8653 GB, free: 340 kB / 0.5263 GB Notification: Performance of collectPreVariables (initialization): time 1.016e-05/0.6307, allocations: 26.42 kB / 0.8653 GB, free: 308 kB / 0.5263 GB Notification: Performance of collectInitialEqns (initialization): time 5.82e-05/0.6308, allocations: 147.2 kB / 0.8654 GB, free: 156 kB / 0.5263 GB Notification: Performance of collectInitialBindings (initialization): time 6.122e-06/0.6308, allocations: 8.656 kB / 0.8654 GB, free: 148 kB / 0.5263 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.959e-06/0.6308, allocations: 0 / 0.8654 GB, free: 148 kB / 0.5263 GB Notification: Performance of setup shared object (initialization): time 0.0001076/0.6309, allocations: 323.6 kB / 0.8658 GB, free: 15.82 MB / 0.5419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.698e-05/0.631, allocations: 21.77 kB / 0.8658 GB, free: 15.8 MB / 0.5419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001731/0.6312, allocations: 215.7 kB / 0.866 GB, free: 15.5 MB / 0.5419 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.32e-05/0.6313, allocations: 59.84 kB / 0.866 GB, free: 15.44 MB / 0.5419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.104e-06/0.6313, allocations: 0 / 0.866 GB, free: 15.44 MB / 0.5419 GB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003116/0.6316, allocations: 169.7 kB / 0.8662 GB, free: 15.27 MB / 0.5419 GB Notification: Performance of prepare postOptimizeDAE: time 1.479e-05/0.6316, allocations: 4 kB / 0.8662 GB, free: 15.26 MB / 0.5419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.576e-06/0.6316, allocations: 4 kB / 0.8662 GB, free: 15.26 MB / 0.5419 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.926e-05/0.6317, allocations: 8.844 kB / 0.8662 GB, free: 15.25 MB / 0.5419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001286/0.6318, allocations: 35.92 kB / 0.8663 GB, free: 15.21 MB / 0.5419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.912e-05/0.6318, allocations: 11.94 kB / 0.8663 GB, free: 15.2 MB / 0.5419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.836e-05/0.6319, allocations: 19.75 kB / 0.8663 GB, free: 15.18 MB / 0.5419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.715e-05/0.6319, allocations: 16 kB / 0.8663 GB, free: 15.17 MB / 0.5419 GB 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 () * 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 0.0001167/0.6321, allocations: 192.3 kB / 0.8665 GB, free: 14.97 MB / 0.5419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.007e-05/0.6322, allocations: 116.9 kB / 0.8666 GB, free: 14.85 MB / 0.5419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.344e-05/0.6322, allocations: 112.6 kB / 0.8667 GB, free: 14.73 MB / 0.5419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.043e-05/0.6323, allocations: 180.2 kB / 0.8669 GB, free: 14.54 MB / 0.5419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.541e-05/0.6324, allocations: 185.4 kB / 0.867 GB, free: 14.36 MB / 0.5419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.086e-05/0.6325, allocations: 184.3 kB / 0.8672 GB, free: 14.17 MB / 0.5419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00026/0.6327, allocations: 401.7 kB / 0.8676 GB, free: 13.73 MB / 0.5419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.31e-05/0.6328, allocations: 105 kB / 0.8677 GB, free: 13.62 MB / 0.5419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.371e-05/0.6328, allocations: 106.2 kB / 0.8678 GB, free: 13.51 MB / 0.5419 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.387e-05/0.6329, allocations: 184.2 kB / 0.868 GB, free: 13.32 MB / 0.5419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.437e-05/0.6329, allocations: 176.3 kB / 0.8682 GB, free: 13.14 MB / 0.5419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.372e-05/0.633, allocations: 180.3 kB / 0.8683 GB, free: 12.96 MB / 0.5419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.582e-05/0.6331, allocations: 180.2 kB / 0.8685 GB, free: 12.78 MB / 0.5419 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001386/0.6332, allocations: 315.6 kB / 0.8688 GB, free: 12.45 MB / 0.5419 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0002374/0.6335, allocations: 0.6843 MB / 0.8695 GB, free: 11.74 MB / 0.5419 GB Notification: Performance of postOpt removeConstants (simulation): time 6.632e-05/0.6335, allocations: 190 kB / 0.8696 GB, free: 11.53 MB / 0.5419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.93e-05/0.6336, allocations: 184.2 kB / 0.8698 GB, free: 11.34 MB / 0.5419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.546e-05/0.6337, allocations: 105 kB / 0.8699 GB, free: 11.23 MB / 0.5419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.074e-05/0.6338, allocations: 180.2 kB / 0.8701 GB, free: 11.05 MB / 0.5419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.384e-05/0.6338, allocations: 104.9 kB / 0.8702 GB, free: 10.94 MB / 0.5419 GB Notification: Performance of sort global known variables: time 7.078e-05/0.6339, allocations: 119 kB / 0.8703 GB, free: 10.82 MB / 0.5419 GB Notification: Performance of remove unused functions: time 0.0009302/0.6349, allocations: 29.88 kB / 0.8703 GB, free: 10.8 MB / 0.5419 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 (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.0002237/0.6351, allocations: 178.5 kB / 0.8705 GB, free: 10.61 MB / 0.5419 GB Notification: Performance of simCode: created initialization part: time 0.0001364/0.6352, allocations: 68.72 kB / 0.8706 GB, free: 10.55 MB / 0.5419 GB Notification: Performance of simCode: created event and clocks part: time 2.254e-06/0.6352, allocations: 8.312 kB / 0.8706 GB, free: 10.54 MB / 0.5419 GB Notification: Performance of simCode: created simulation system equations: time 1.533e-06/0.6353, allocations: 4 kB / 0.8706 GB, free: 10.54 MB / 0.5419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003007/0.6356, allocations: 0.5224 MB / 0.8711 GB, free: 10.01 MB / 0.5419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003044/0.6359, allocations: 186.5 kB / 0.8713 GB, free: 9.805 MB / 0.5419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003147/0.6362, allocations: 0.7129 MB / 0.872 GB, free: 9.066 MB / 0.5419 GB Notification: Performance of SimCode: time 2.51e-07/0.6362, allocations: 0 / 0.872 GB, free: 9.066 MB / 0.5419 GB (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)