Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IBPSA_latest_IBPSA.Utilities.Math.Functions.Examples.InverseXDerivativeCheck.conf.json 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/IBPSA 4.0.0-master/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) 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 IBPSA with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/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) Running command: "" <> buildModelFMU(IBPSA.Utilities.Math.Functions.Examples.InverseXDerivativeCheck,fileNamePrefix="IBPSA_latest_IBPSA_Utilities_Math_Functions_Examples_InverseXDerivativeCheck",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IBPSA.Utilities.Math.Functions.Examples.InverseXDerivativeCheck,fileNamePrefix="IBPSA_latest_IBPSA_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/Complex 4.0.0+maint.om/package.mo): time 0.001154/0.001154, allocations: 186.2 kB / 7.801 MB, free: 2.5 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.4806/0.4806, allocations: 90.85 MB / 99.06 MB, free: 14.93 MB / 90.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.335/1.335, allocations: 221.4 MB / 342.7 MB, free: 5.133 MB / 282.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001011/0.001011, allocations: 100.6 kB / 415.5 MB, free: 6.395 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 0.176/0.177, allocations: 78.46 MB / 494 MB, free: 7.949 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.402/0.5791, allocations: 72.3 MB / 0.553 GB, free: 73.29 MB / 442.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1256/0.7047, allocations: 101.5 MB / 0.6521 GB, free: 8.516 MB / 474.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002619/0.705, allocations: 76.55 kB / 0.6522 GB, free: 8.441 MB / 474.7 MB 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.01349/0.7186, allocations: 4.163 MB / 0.6562 GB, free: 4.293 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.172e-05/0.7186, allocations: 8 kB / 0.6562 GB, free: 4.285 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004169/0.719, allocations: 71.92 kB / 0.6563 GB, free: 4.215 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001293/0.7192, allocations: 167 kB / 0.6565 GB, free: 4.012 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.682e-05/0.7192, allocations: 4 kB / 0.6565 GB, free: 4.008 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.586e-05/0.7192, allocations: 3.906 kB / 0.6565 GB, free: 4.004 MB / 474.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 9.562e-05/0.7193, allocations: 16 kB / 0.6565 GB, free: 3.988 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001213/0.7195, allocations: 53.66 kB / 0.6565 GB, free: 3.93 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.045e-06/0.7195, allocations: 4 kB / 0.6565 GB, free: 3.926 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.546e-05/0.7195, allocations: 0 / 0.6565 GB, free: 3.926 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.042e-06/0.7195, allocations: 2.188 kB / 0.6565 GB, free: 3.926 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001962/0.7197, allocations: 138.2 kB / 0.6567 GB, free: 3.754 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002666/0.72, allocations: 54.58 kB / 0.6567 GB, free: 3.691 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.133e-05/0.7201, allocations: 31.3 kB / 0.6568 GB, free: 3.66 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.403e-05/0.7202, allocations: 85.11 kB / 0.6568 GB, free: 3.559 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.577e-05/0.7202, allocations: 35.09 kB / 0.6569 GB, free: 3.516 MB / 474.7 MB Notification: Performance of pre-optimization done (n=4): time 1.252e-06/0.7202, allocations: 0 / 0.6569 GB, free: 3.516 MB / 474.7 MB Notification: Performance of matching and sorting (n=5): time 0.001423/0.7216, allocations: 442 kB / 0.6573 GB, free: 3.031 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.987e-05/0.7217, allocations: 55.34 kB / 0.6573 GB, free: 2.965 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.355e-05/0.7218, allocations: 93 kB / 0.6574 GB, free: 2.867 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 1.941e-05/0.7218, allocations: 25.7 kB / 0.6575 GB, free: 2.836 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.321e-05/0.7218, allocations: 80.14 kB / 0.6575 GB, free: 2.754 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.405e-05/0.7219, allocations: 23.73 kB / 0.6576 GB, free: 2.73 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.654e-06/0.7219, allocations: 0 / 0.6576 GB, free: 2.73 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0001311/0.722, allocations: 310.8 kB / 0.6579 GB, free: 2.418 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.74e-05/0.7221, allocations: 16.12 kB / 0.6579 GB, free: 2.402 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.502e-05/0.7221, allocations: 12 kB / 0.6579 GB, free: 2.391 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003104/0.7224, allocations: 67.89 kB / 0.6579 GB, free: 2.324 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.965e-06/0.7224, allocations: 3.906 kB / 0.658 GB, free: 2.32 MB / 474.7 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0004067/0.7228, allocations: 121.6 kB / 0.6581 GB, free: 2.195 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.62e-05/0.7229, allocations: 8 kB / 0.6581 GB, free: 2.188 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.172e-06/0.7229, allocations: 0 / 0.6581 GB, free: 2.188 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.336e-05/0.7229, allocations: 2.125 kB / 0.6581 GB, free: 2.188 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001735/0.7231, allocations: 35.91 kB / 0.6581 GB, free: 2.152 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.827e-06/0.7231, allocations: 0 / 0.6581 GB, free: 2.152 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001117/0.7232, allocations: 15.98 kB / 0.6581 GB, free: 2.137 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.269e-05/0.7232, allocations: 4 kB / 0.6581 GB, free: 2.133 MB / 474.7 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 () * 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 7.786e-05/0.7233, allocations: 108.9 kB / 0.6582 GB, free: 2.02 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.409e-05/0.7233, allocations: 0 / 0.6582 GB, free: 2.02 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005005/0.7239, allocations: 148.6 kB / 0.6584 GB, free: 1.871 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.186e-06/0.7239, allocations: 0 / 0.6584 GB, free: 1.871 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.508e-06/0.7239, allocations: 0 / 0.6584 GB, free: 1.871 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.158e-06/0.7239, allocations: 0 / 0.6584 GB, free: 1.871 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001232/0.724, allocations: 154.1 kB / 0.6585 GB, free: 1.684 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.132e-06/0.724, allocations: 0 / 0.6585 GB, free: 1.684 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001738/0.7242, allocations: 35.91 kB / 0.6586 GB, free: 1.648 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.556e-06/0.7242, allocations: 0 / 0.6586 GB, free: 1.648 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.742e-05/0.7242, allocations: 0.9375 kB / 0.6586 GB, free: 1.648 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.245e-06/0.7242, allocations: 0 / 0.6586 GB, free: 1.648 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.254e-06/0.7243, allocations: 0 / 0.6586 GB, free: 1.648 MB / 474.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0004749/0.7247, allocations: 174.3 kB / 0.6587 GB, free: 1.461 MB / 474.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0006198/0.7254, allocations: 0.5639 MB / 0.6593 GB, free: 0.875 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001062/0.7255, allocations: 89.03 kB / 0.6594 GB, free: 0.7695 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.734e-05/0.7255, allocations: 7.891 kB / 0.6594 GB, free: 0.7617 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001502/0.7257, allocations: 20.05 kB / 0.6594 GB, free: 0.7422 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.298e-05/0.7257, allocations: 8.062 kB / 0.6594 GB, free: 0.7344 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.394e-05/0.7257, allocations: 1.062 kB / 0.6594 GB, free: 0.7344 MB / 474.7 MB Notification: Performance of sort global known variables: time 3.381e-05/0.7258, allocations: 79.28 kB / 0.6595 GB, free: 0.6562 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.0008319/0.7266, allocations: 43.92 kB / 0.6595 GB, free: 0.6133 MB / 474.7 MB 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.0002354/0.7269, allocations: 132.8 kB / 0.6596 GB, free: 484 kB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.0001356/0.727, allocations: 44.08 kB / 0.6597 GB, free: 440 kB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 2.154e-06/0.727, allocations: 0 / 0.6597 GB, free: 440 kB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 4.792e-05/0.7271, allocations: 23.94 kB / 0.6597 GB, free: 416 kB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001278/0.7272, allocations: 5.031 kB / 0.6597 GB, free: 416 kB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005909/0.7278, allocations: 136 kB / 0.6598 GB, free: 256 kB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003988/0.7282, allocations: 0.7075 MB / 0.6605 GB, free: 15.52 MB / 490.7 MB Notification: Performance of SimCode: time 2.6e-07/0.7282, allocations: 0 / 0.6605 GB, free: 15.52 MB / 490.7 MB (rm -f IBPSA_latest_IBPSA.Utilities.Math.Functions.Examples.InverseXDerivativeCheck.pipe ; mkfifo IBPSA_latest_IBPSA.Utilities.Math.Functions.Examples.InverseXDerivativeCheck.pipe ; head -c 1048576 < IBPSA_latest_IBPSA.Utilities.Math.Functions.Examples.InverseXDerivativeCheck.pipe >> ../files/IBPSA_latest_IBPSA.Utilities.Math.Functions.Examples.InverseXDerivativeCheck.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_IBPSA_latest_IBPSA_Utilities_Math_Functions_Examples_InverseXDerivativeCheck_fmu --startTime=-1 --stopTime=1 --timeout=50 --tolerance=1e-08 IBPSA_latest_IBPSA_Utilities_Math_Functions_Examples_InverseXDerivativeCheck.fmu > IBPSA_latest_IBPSA.Utilities.Math.Functions.Examples.InverseXDerivativeCheck.pipe 2>&1)