Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check.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.InverseXDerivative_2_Check,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Math_Functions_Examples_InverseXDerivative_2_Check",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Math_Functions_Examples_InverseXDerivative_2_Check",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.7378/0.7378, allocations: 141.8 MB / 149.1 MB, free: 1.906 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.001058/0.001058, allocations: 189.2 kB / 182 MB, free: 1.355 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.228/1.228, allocations: 221.3 MB / 436 MB, free: 5.941 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.0009095/0.0009095, allocations: 111.9 kB / 0.507 GB, free: 2.621 MB / 410.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001736/0.001736, allocations: 278.4 kB / 0.5884 GB, free: 47.65 MB / 410.9 MB Notification: Performance of FrontEnd - loaded program: time 0.3062/0.3079, allocations: 89.64 MB / 0.676 GB, free: 59.89 MB / 442.9 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1424/0.4503, allocations: 82.79 MB / 0.7568 GB, free: 0.9883 MB / 442.9 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1698/0.6202, allocations: 109.4 MB / 0.8636 GB, free: 3.457 MB / 0.5419 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002927/0.6206, allocations: 77.98 kB / 0.8637 GB, free: 3.383 MB / 0.5419 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 13 * Number of variables: 13 Notification: Performance of Generate backend data structure: time 0.2687/0.8894, allocations: 5.568 MB / 0.8691 GB, free: 110 MB / 0.5419 GB Notification: Performance of prepare preOptimizeDAE: time 3.333e-05/0.8894, allocations: 11.69 kB / 0.8692 GB, free: 110 MB / 0.5419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003573/0.8898, allocations: 76.91 kB / 0.8692 GB, free: 110 MB / 0.5419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.131e-05/0.8899, allocations: 168.1 kB / 0.8694 GB, free: 109.8 MB / 0.5419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.284e-05/0.8899, allocations: 3.656 kB / 0.8694 GB, free: 109.8 MB / 0.5419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.067e-05/0.8899, allocations: 4.125 kB / 0.8694 GB, free: 109.8 MB / 0.5419 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001044/0.89, allocations: 35.42 kB / 0.8694 GB, free: 109.8 MB / 0.5419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000108/0.8901, allocations: 80.02 kB / 0.8695 GB, free: 109.7 MB / 0.5419 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.628e-06/0.8902, allocations: 3.938 kB / 0.8695 GB, free: 109.7 MB / 0.5419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.398e-05/0.8902, allocations: 3.906 kB / 0.8695 GB, free: 109.7 MB / 0.5419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.25e-06/0.8902, allocations: 0 / 0.8695 GB, free: 109.7 MB / 0.5419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004308/0.8906, allocations: 304.2 kB / 0.8698 GB, free: 109.5 MB / 0.5419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001029/0.8907, allocations: 50.12 kB / 0.8699 GB, free: 109.5 MB / 0.5419 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.959e-05/0.8908, allocations: 32.09 kB / 0.8699 GB, free: 109.5 MB / 0.5419 GB Notification: Performance of preOpt evalFunc (simulation): time 1.517e-05/0.8908, allocations: 4.938 kB / 0.8699 GB, free: 109.5 MB / 0.5419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.42e-05/0.8908, allocations: 31.62 kB / 0.8699 GB, free: 109.4 MB / 0.5419 GB Notification: Performance of pre-optimization done (n=7): time 1.153e-06/0.8908, allocations: 0.5938 kB / 0.8699 GB, free: 109.4 MB / 0.5419 GB Notification: Performance of matching and sorting (n=11): time 0.01479/0.9056, allocations: 2.167 MB / 0.872 GB, free: 108.9 MB / 0.5419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.053e-05/0.9057, allocations: 57.08 kB / 0.8721 GB, free: 108.9 MB / 0.5419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.108e-05/0.9058, allocations: 94.5 kB / 0.8722 GB, free: 108.8 MB / 0.5419 GB Notification: Performance of collectPreVariables (initialization): time 4.283e-05/0.9058, allocations: 25.7 kB / 0.8722 GB, free: 108.7 MB / 0.5419 GB Notification: Performance of collectInitialEqns (initialization): time 1.94e-05/0.9058, allocations: 91.27 kB / 0.8723 GB, free: 108.7 MB / 0.5419 GB Notification: Performance of collectInitialBindings (initialization): time 6.821e-05/0.9059, allocations: 35.56 kB / 0.8723 GB, free: 108.6 MB / 0.5419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.072e-05/0.9059, allocations: 1.344 kB / 0.8723 GB, free: 108.6 MB / 0.5419 GB Notification: Performance of setup shared object (initialization): time 4.235e-05/0.906, allocations: 318.2 kB / 0.8726 GB, free: 108.3 MB / 0.5419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002322/0.9062, allocations: 119.8 kB / 0.8727 GB, free: 108.3 MB / 0.5419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002317/0.9065, allocations: 114.6 kB / 0.8729 GB, free: 108.3 MB / 0.5419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003647/0.9068, allocations: 135.9 kB / 0.873 GB, free: 108.3 MB / 0.5419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.152e-06/0.9069, allocations: 3.938 kB / 0.873 GB, free: 108.3 MB / 0.5419 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.000839/0.9077, allocations: 331.7 kB / 0.8733 GB, free: 108.3 MB / 0.5419 GB Notification: Performance of prepare postOptimizeDAE: time 1.153e-05/0.9077, allocations: 4.281 kB / 0.8733 GB, free: 108.3 MB / 0.5419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.781e-06/0.9077, allocations: 1.5 kB / 0.8733 GB, free: 108.3 MB / 0.5419 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.244e-05/0.9077, allocations: 1.562 kB / 0.8733 GB, free: 108.3 MB / 0.5419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009684/0.9087, allocations: 124.1 kB / 0.8734 GB, free: 108.3 MB / 0.5419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.272e-06/0.9087, allocations: 5.422 kB / 0.8734 GB, free: 108.3 MB / 0.5419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007088/0.9095, allocations: 63.95 kB / 0.8735 GB, free: 108.2 MB / 0.5419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.039e-05/0.9095, allocations: 26.2 kB / 0.8735 GB, free: 108.2 MB / 0.5419 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 (13): * Single equations (assignments): 13 * 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.0001111/0.9097, allocations: 106.3 kB / 0.8736 GB, free: 108.1 MB / 0.5419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.052e-05/0.9097, allocations: 8.531 kB / 0.8736 GB, free: 108.1 MB / 0.5419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.468e-05/0.9098, allocations: 8.641 kB / 0.8736 GB, free: 108.1 MB / 0.5419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.776e-06/0.9098, allocations: 5.344 kB / 0.8736 GB, free: 108.1 MB / 0.5419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.269e-06/0.9098, allocations: 0.8438 kB / 0.8736 GB, free: 108.1 MB / 0.5419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.646e-06/0.9098, allocations: 0.7031 kB / 0.8736 GB, free: 108.1 MB / 0.5419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00141/0.9112, allocations: 0.8852 MB / 0.8745 GB, free: 107.6 MB / 0.5419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.425e-06/0.9112, allocations: 4.5 kB / 0.8745 GB, free: 107.6 MB / 0.5419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009828/0.9122, allocations: 124.1 kB / 0.8746 GB, free: 107.6 MB / 0.5419 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.206e-06/0.9122, allocations: 1.219 kB / 0.8746 GB, free: 107.6 MB / 0.5419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.255e-05/0.9123, allocations: 21.61 kB / 0.8747 GB, free: 107.6 MB / 0.5419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.624e-06/0.9123, allocations: 2.969 kB / 0.8747 GB, free: 107.6 MB / 0.5419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.923e-06/0.9123, allocations: 0 / 0.8747 GB, free: 107.6 MB / 0.5419 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001206/0.9135, allocations: 0.5759 MB / 0.8752 GB, free: 107.5 MB / 0.5419 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001474/0.915, allocations: 1.117 MB / 0.8763 GB, free: 106.9 MB / 0.5419 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001321/0.9152, allocations: 113.1 kB / 0.8764 GB, free: 106.8 MB / 0.5419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.579e-05/0.9153, allocations: 10.08 kB / 0.8764 GB, free: 106.8 MB / 0.5419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007664/0.916, allocations: 60.61 kB / 0.8765 GB, free: 106.8 MB / 0.5419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.919e-05/0.9161, allocations: 24.73 kB / 0.8765 GB, free: 106.8 MB / 0.5419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.569e-05/0.9162, allocations: 24.02 kB / 0.8765 GB, free: 106.8 MB / 0.5419 GB Notification: Performance of sort global known variables: time 1.903e-05/0.9163, allocations: 89.77 kB / 0.8766 GB, free: 106.8 MB / 0.5419 GB Notification: Performance of remove unused functions: time 0.0009374/0.9172, allocations: 57.05 kB / 0.8767 GB, free: 106.7 MB / 0.5419 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (y_comp,der_y_comp) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (11): * Single equations (assignments): 11 * 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.0001802/0.9174, allocations: 114.1 kB / 0.8768 GB, free: 106.7 MB / 0.5419 GB Notification: Performance of simCode: created initialization part: time 0.0005713/0.918, allocations: 268.7 kB / 0.877 GB, free: 106.6 MB / 0.5419 GB Notification: Performance of simCode: created event and clocks part: time 1.793e-06/0.918, allocations: 1.406 kB / 0.877 GB, free: 106.6 MB / 0.5419 GB Notification: Performance of simCode: created simulation system equations: time 0.0003092/0.9183, allocations: 147.1 kB / 0.8772 GB, free: 106.6 MB / 0.5419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002049/0.9185, allocations: 8.797 kB / 0.8772 GB, free: 106.6 MB / 0.5419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004419/0.9229, allocations: 0.8074 MB / 0.878 GB, free: 106.5 MB / 0.5419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005711/0.9235, allocations: 0.818 MB / 0.8788 GB, free: 105.8 MB / 0.5419 GB Notification: Performance of SimCode: time 4.4e-07/0.9235, allocations: 0 / 0.8788 GB, free: 105.8 MB / 0.5419 GB (rm -f BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check.pipe ; mkfifo BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check.pipe >> ../files/BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Utilities_Math_Functions_Examples_InverseXDerivative_2_Check_fmu --startTime=-1.5 --stopTime=1.5 --timeout=50 --tolerance=1e-08 BuildingSystems_BuildingSystems_Utilities_Math_Functions_Examples_InverseXDerivative_2_Check.fmu > BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check.pipe 2>&1)