Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.InverseXDerivativeCheck.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.InverseXDerivativeCheck,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Math_Functions_Examples_InverseXDerivativeCheck",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Utilities.Math.Functions.Examples.InverseXDerivativeCheck,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Math_Functions_Examples_InverseXDerivativeCheck",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.7095/0.7095, allocations: 141.8 MB / 149.1 MB, free: 4.488 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.001037/0.001037, allocations: 190.7 kB / 182 MB, free: 152 kB / 138.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.306/1.306, allocations: 221.3 MB / 436 MB, free: 9.367 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.0009277/0.0009277, allocations: 101.1 kB / 0.507 GB, free: 24.1 MB / 394.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001757/0.001757, allocations: 266.5 kB / 0.5884 GB, free: 12.34 MB / 442.9 MB Notification: Performance of FrontEnd - loaded program: time 0.1581/0.1599, allocations: 89.68 MB / 0.676 GB, free: 2.586 MB / 0.5107 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3388/0.4986, allocations: 82.76 MB / 0.7568 GB, free: 112.9 MB / 0.5263 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1079/0.6066, allocations: 108.6 MB / 0.8629 GB, free: 4.211 MB / 0.5263 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002075/0.6068, allocations: 87.88 kB / 0.863 GB, free: 4.129 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: 4 * Number of variables: 4 Notification: Performance of Generate backend data structure: time 0.01193/0.6188, allocations: 4.153 MB / 0.867 GB, free: 15.98 MB / 0.5419 GB Notification: Performance of prepare preOptimizeDAE: time 3.713e-05/0.6188, allocations: 13.25 kB / 0.867 GB, free: 15.96 MB / 0.5419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003937/0.6192, allocations: 67.92 kB / 0.8671 GB, free: 15.9 MB / 0.5419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000121/0.6194, allocations: 167 kB / 0.8673 GB, free: 15.7 MB / 0.5419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.448e-05/0.6194, allocations: 4 kB / 0.8673 GB, free: 15.69 MB / 0.5419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.382e-05/0.6194, allocations: 4 kB / 0.8673 GB, free: 15.69 MB / 0.5419 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 8.811e-05/0.6195, allocations: 23.92 kB / 0.8673 GB, free: 15.66 MB / 0.5419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001076/0.6196, allocations: 53.61 kB / 0.8673 GB, free: 15.61 MB / 0.5419 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.993e-06/0.6196, allocations: 0 / 0.8673 GB, free: 15.61 MB / 0.5419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.362e-05/0.6197, allocations: 0 / 0.8673 GB, free: 15.61 MB / 0.5419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.358e-06/0.6197, allocations: 0 / 0.8673 GB, free: 15.61 MB / 0.5419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000173/0.6198, allocations: 146.1 kB / 0.8675 GB, free: 15.43 MB / 0.5419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002725/0.6201, allocations: 54.67 kB / 0.8675 GB, free: 15.36 MB / 0.5419 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.071e-05/0.6202, allocations: 20.84 kB / 0.8675 GB, free: 15.34 MB / 0.5419 GB Notification: Performance of preOpt evalFunc (simulation): time 8.461e-05/0.6203, allocations: 85.11 kB / 0.8676 GB, free: 15.23 MB / 0.5419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.366e-05/0.6203, allocations: 31.09 kB / 0.8677 GB, free: 15.2 MB / 0.5419 GB Notification: Performance of pre-optimization done (n=4): time 1.754e-06/0.6203, allocations: 2.625 kB / 0.8677 GB, free: 15.2 MB / 0.5419 GB Notification: Performance of matching and sorting (n=5): time 0.00132/0.6217, allocations: 442.1 kB / 0.8681 GB, free: 14.71 MB / 0.5419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.69e-05/0.6217, allocations: 55.41 kB / 0.8681 GB, free: 14.64 MB / 0.5419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.742e-05/0.6218, allocations: 92.98 kB / 0.8682 GB, free: 14.55 MB / 0.5419 GB Notification: Performance of collectPreVariables (initialization): time 1.699e-05/0.6218, allocations: 25.7 kB / 0.8682 GB, free: 14.52 MB / 0.5419 GB Notification: Performance of collectInitialEqns (initialization): time 2.333e-05/0.6218, allocations: 80.14 kB / 0.8683 GB, free: 14.43 MB / 0.5419 GB Notification: Performance of collectInitialBindings (initialization): time 2.783e-05/0.6218, allocations: 23.78 kB / 0.8683 GB, free: 14.41 MB / 0.5419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.973e-06/0.6219, allocations: 0 / 0.8683 GB, free: 14.41 MB / 0.5419 GB Notification: Performance of setup shared object (initialization): time 9.222e-05/0.622, allocations: 314.8 kB / 0.8686 GB, free: 14.09 MB / 0.5419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.361e-05/0.622, allocations: 8 kB / 0.8687 GB, free: 14.09 MB / 0.5419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.24e-05/0.622, allocations: 19.92 kB / 0.8687 GB, free: 14.07 MB / 0.5419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002967/0.6223, allocations: 72.09 kB / 0.8687 GB, free: 14 MB / 0.5419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.012e-06/0.6223, allocations: 0 / 0.8687 GB, free: 14 MB / 0.5419 GB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0003691/0.6227, allocations: 117.6 kB / 0.8689 GB, free: 13.88 MB / 0.5419 GB Notification: Performance of prepare postOptimizeDAE: time 1.348e-05/0.6227, allocations: 8 kB / 0.8689 GB, free: 13.87 MB / 0.5419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.989e-06/0.6228, allocations: 0 / 0.8689 GB, free: 13.87 MB / 0.5419 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.297e-05/0.6228, allocations: 7.906 kB / 0.8689 GB, free: 13.86 MB / 0.5419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001692/0.623, allocations: 27.97 kB / 0.8689 GB, free: 13.83 MB / 0.5419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.859e-06/0.623, allocations: 0 / 0.8689 GB, free: 13.83 MB / 0.5419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001103/0.6231, allocations: 19.98 kB / 0.8689 GB, free: 13.81 MB / 0.5419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.304e-05/0.6231, allocations: 4 kB / 0.8689 GB, free: 13.81 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 (6): * Single equations (assignments): 6 * 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 6.747e-05/0.6232, allocations: 105 kB / 0.869 GB, free: 13.7 MB / 0.5419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.639e-05/0.6232, allocations: 3.906 kB / 0.869 GB, free: 13.7 MB / 0.5419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004869/0.6237, allocations: 146.5 kB / 0.8692 GB, free: 13.55 MB / 0.5419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.837e-06/0.6237, allocations: 7.922 kB / 0.8692 GB, free: 13.54 MB / 0.5419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.607e-06/0.6237, allocations: 0 / 0.8692 GB, free: 13.54 MB / 0.5419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.551e-06/0.6237, allocations: 4 kB / 0.8692 GB, free: 13.54 MB / 0.5419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001203/0.6239, allocations: 142.2 kB / 0.8693 GB, free: 13.36 MB / 0.5419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.373e-06/0.6239, allocations: 0 / 0.8693 GB, free: 13.36 MB / 0.5419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001794/0.624, allocations: 27.97 kB / 0.8693 GB, free: 13.34 MB / 0.5419 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.975e-06/0.6241, allocations: 0 / 0.8693 GB, free: 13.34 MB / 0.5419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.2e-05/0.6241, allocations: 10.34 kB / 0.8693 GB, free: 13.33 MB / 0.5419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.673e-06/0.6241, allocations: 4 kB / 0.8693 GB, free: 13.32 MB / 0.5419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.376e-06/0.6241, allocations: 4 kB / 0.8694 GB, free: 13.32 MB / 0.5419 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0005092/0.6246, allocations: 168.9 kB / 0.8695 GB, free: 13.14 MB / 0.5419 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0005809/0.6252, allocations: 0.5682 MB / 0.8701 GB, free: 12.55 MB / 0.5419 GB Notification: Performance of postOpt removeConstants (simulation): time 7.747e-05/0.6253, allocations: 85 kB / 0.8701 GB, free: 12.45 MB / 0.5419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.215e-05/0.6253, allocations: 4.062 kB / 0.8702 GB, free: 12.44 MB / 0.5419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001413/0.6255, allocations: 15.98 kB / 0.8702 GB, free: 12.43 MB / 0.5419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.524e-05/0.6255, allocations: 4 kB / 0.8702 GB, free: 12.42 MB / 0.5419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.372e-05/0.6255, allocations: 3.984 kB / 0.8702 GB, free: 12.42 MB / 0.5419 GB Notification: Performance of sort global known variables: time 3.214e-05/0.6256, allocations: 87.28 kB / 0.8703 GB, free: 12.33 MB / 0.5419 GB Notification: Performance of remove unused functions: time 0.0008203/0.6264, allocations: 39.94 kB / 0.8703 GB, free: 12.29 MB / 0.5419 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (y_comp) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (6): * Single equations (assignments): 6 * 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.0002459/0.6267, allocations: 143 kB / 0.8704 GB, free: 12.14 MB / 0.5419 GB Notification: Performance of simCode: created initialization part: time 0.0001304/0.6268, allocations: 35.98 kB / 0.8705 GB, free: 12.11 MB / 0.5419 GB Notification: Performance of simCode: created event and clocks part: time 2.154e-06/0.6268, allocations: 0 / 0.8705 GB, free: 12.11 MB / 0.5419 GB Notification: Performance of simCode: created simulation system equations: time 4.388e-05/0.6269, allocations: 20 kB / 0.8705 GB, free: 12.09 MB / 0.5419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001086/0.627, allocations: 0 / 0.8705 GB, free: 12.09 MB / 0.5419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005458/0.6275, allocations: 140.2 kB / 0.8706 GB, free: 11.92 MB / 0.5419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003375/0.6279, allocations: 0.7114 MB / 0.8713 GB, free: 11.18 MB / 0.5419 GB Notification: Performance of SimCode: time 2.4e-07/0.6279, allocations: 0 / 0.8713 GB, free: 11.18 MB / 0.5419 GB (rm -f BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.InverseXDerivativeCheck.pipe ; mkfifo BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.InverseXDerivativeCheck.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.InverseXDerivativeCheck.pipe >> ../files/BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.InverseXDerivativeCheck.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Utilities_Math_Functions_Examples_InverseXDerivativeCheck_fmu --startTime=-1 --stopTime=1 --timeout=50 --tolerance=1e-08 BuildingSystems_BuildingSystems_Utilities_Math_Functions_Examples_InverseXDerivativeCheck.fmu > BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.InverseXDerivativeCheck.pipe 2>&1)