Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IDEAS_IDEAS.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/IDEAS 3.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 IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.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(IDEAS.Utilities.Math.Functions.Examples.InverseXDerivativeCheck,fileNamePrefix="IDEAS_IDEAS_Utilities_Math_Functions_Examples_InverseXDerivativeCheck",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Utilities.Math.Functions.Examples.InverseXDerivativeCheck,fileNamePrefix="IDEAS_IDEAS_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.001593/0.001593, allocations: 178.8 kB / 7.455 MB, free: 1.531 MB / 6.77 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.7316/0.7316, allocations: 133.5 MB / 141.4 MB, free: 4.859 MB / 114.8 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.545/1.545, allocations: 221.3 MB / 395 MB, free: 13.9 MB / 322.8 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001138/0.001138, allocations: 97.67 kB / 477.8 MB, free: 11.19 MB / 402.8 MB Notification: Performance of FrontEnd - loaded program: time 0.4141/0.4153, allocations: 88.44 MB / 0.5529 GB, free: 49.91 MB / 402.8 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6256/1.041, allocations: 82.31 MB / 0.6333 GB, free: 5.625 MB / 434.8 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1953/1.236, allocations: 111.3 MB / 0.742 GB, free: 10.22 MB / 0.5183 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004797/1.237, allocations: 75.94 kB / 0.742 GB, free: 10.14 MB / 0.5183 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.01447/1.251, allocations: 4.156 MB / 0.7461 GB, free: 5.953 MB / 0.5183 GB Notification: Performance of prepare preOptimizeDAE: time 7.49e-05/1.252, allocations: 8 kB / 0.7461 GB, free: 5.945 MB / 0.5183 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004975/1.252, allocations: 79.83 kB / 0.7462 GB, free: 5.867 MB / 0.5183 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002493/1.252, allocations: 159.1 kB / 0.7463 GB, free: 5.672 MB / 0.5183 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.805e-05/1.252, allocations: 4 kB / 0.7463 GB, free: 5.668 MB / 0.5183 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.126e-05/1.252, allocations: 0 / 0.7463 GB, free: 5.668 MB / 0.5183 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001395/1.253, allocations: 23.89 kB / 0.7464 GB, free: 5.645 MB / 0.5183 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001632/1.253, allocations: 45.67 kB / 0.7464 GB, free: 5.594 MB / 0.5183 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.608e-05/1.253, allocations: 4.734 kB / 0.7464 GB, free: 5.59 MB / 0.5183 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.258e-05/1.253, allocations: 0 / 0.7464 GB, free: 5.59 MB / 0.5183 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.205e-06/1.253, allocations: 0 / 0.7464 GB, free: 5.59 MB / 0.5183 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003176/1.253, allocations: 150.2 kB / 0.7466 GB, free: 5.406 MB / 0.5183 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003253/1.253, allocations: 50.61 kB / 0.7466 GB, free: 5.348 MB / 0.5183 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.382e-05/1.254, allocations: 20.86 kB / 0.7466 GB, free: 5.324 MB / 0.5183 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002388/1.254, allocations: 85.11 kB / 0.7467 GB, free: 5.223 MB / 0.5183 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.101e-05/1.254, allocations: 35.09 kB / 0.7467 GB, free: 5.18 MB / 0.5183 GB Notification: Performance of pre-optimization done (n=4): time 3.407e-06/1.254, allocations: 7.938 kB / 0.7467 GB, free: 5.172 MB / 0.5183 GB Notification: Performance of matching and sorting (n=5): time 0.001698/1.256, allocations: 442 kB / 0.7472 GB, free: 4.688 MB / 0.5183 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.502e-05/1.256, allocations: 51.41 kB / 0.7472 GB, free: 4.625 MB / 0.5183 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.024e-05/1.256, allocations: 93 kB / 0.7473 GB, free: 4.527 MB / 0.5183 GB Notification: Performance of collectPreVariables (initialization): time 2.114e-05/1.256, allocations: 29.64 kB / 0.7473 GB, free: 4.492 MB / 0.5183 GB Notification: Performance of collectInitialEqns (initialization): time 4.386e-05/1.256, allocations: 80.14 kB / 0.7474 GB, free: 4.41 MB / 0.5183 GB Notification: Performance of collectInitialBindings (initialization): time 3.942e-05/1.256, allocations: 19.75 kB / 0.7474 GB, free: 4.391 MB / 0.5183 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.737e-06/1.256, allocations: 0 / 0.7474 GB, free: 4.391 MB / 0.5183 GB Notification: Performance of setup shared object (initialization): time 0.0001564/1.256, allocations: 314.8 kB / 0.7477 GB, free: 4.074 MB / 0.5183 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.578e-05/1.256, allocations: 12 kB / 0.7477 GB, free: 4.062 MB / 0.5183 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.373e-05/1.256, allocations: 12 kB / 0.7478 GB, free: 4.051 MB / 0.5183 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000288/1.256, allocations: 68.03 kB / 0.7478 GB, free: 3.984 MB / 0.5183 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.11e-07/1.256, allocations: 0 / 0.7478 GB, free: 3.984 MB / 0.5183 GB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0003817/1.257, allocations: 129.4 kB / 0.7479 GB, free: 3.852 MB / 0.5183 GB Notification: Performance of prepare postOptimizeDAE: time 2.583e-05/1.257, allocations: 8 kB / 0.748 GB, free: 3.844 MB / 0.5183 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.29e-06/1.257, allocations: 256 / 0.748 GB, free: 3.844 MB / 0.5183 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.272e-05/1.257, allocations: 3.984 kB / 0.748 GB, free: 3.84 MB / 0.5183 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001684/1.257, allocations: 31.98 kB / 0.748 GB, free: 3.809 MB / 0.5183 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.459e-06/1.257, allocations: 0 / 0.748 GB, free: 3.809 MB / 0.5183 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000106/1.257, allocations: 15.98 kB / 0.748 GB, free: 3.793 MB / 0.5183 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.189e-05/1.257, allocations: 0 / 0.748 GB, free: 3.793 MB / 0.5183 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 9.354e-05/1.257, allocations: 111.7 kB / 0.7481 GB, free: 3.68 MB / 0.5183 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.973e-05/1.257, allocations: 7.891 kB / 0.7481 GB, free: 3.672 MB / 0.5183 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005066/1.258, allocations: 149.2 kB / 0.7483 GB, free: 3.512 MB / 0.5183 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.497e-06/1.258, allocations: 0 / 0.7483 GB, free: 3.512 MB / 0.5183 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.631e-06/1.258, allocations: 0 / 0.7483 GB, free: 3.512 MB / 0.5183 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.64e-06/1.258, allocations: 0 / 0.7483 GB, free: 3.512 MB / 0.5183 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001657/1.258, allocations: 150.1 kB / 0.7484 GB, free: 3.328 MB / 0.5183 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.803e-06/1.258, allocations: 0 / 0.7484 GB, free: 3.328 MB / 0.5183 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001747/1.258, allocations: 27.98 kB / 0.7484 GB, free: 3.301 MB / 0.5183 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.736e-06/1.258, allocations: 0 / 0.7484 GB, free: 3.301 MB / 0.5183 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.379e-05/1.258, allocations: 0 / 0.7484 GB, free: 3.301 MB / 0.5183 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.183e-06/1.258, allocations: 0 / 0.7484 GB, free: 3.301 MB / 0.5183 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.667e-06/1.258, allocations: 0 / 0.7484 GB, free: 3.301 MB / 0.5183 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0004869/1.259, allocations: 176.9 kB / 0.7486 GB, free: 3.109 MB / 0.5183 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0006196/1.259, allocations: 0.5757 MB / 0.7492 GB, free: 2.512 MB / 0.5183 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001052/1.259, allocations: 85.09 kB / 0.7492 GB, free: 2.41 MB / 0.5183 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.369e-05/1.26, allocations: 192 / 0.7492 GB, free: 2.41 MB / 0.5183 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001293/1.26, allocations: 23.92 kB / 0.7493 GB, free: 2.387 MB / 0.5183 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.363e-05/1.26, allocations: 15.95 kB / 0.7493 GB, free: 2.371 MB / 0.5183 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.04e-05/1.26, allocations: 0 / 0.7493 GB, free: 2.371 MB / 0.5183 GB Notification: Performance of sort global known variables: time 3.144e-05/1.26, allocations: 79.28 kB / 0.7494 GB, free: 2.293 MB / 0.5183 GB Notification: Performance of remove unused functions: time 0.000816/1.261, allocations: 47.92 kB / 0.7494 GB, free: 2.246 MB / 0.5183 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.0002581/1.261, allocations: 131.2 kB / 0.7495 GB, free: 2.109 MB / 0.5183 GB Notification: Performance of simCode: created initialization part: time 0.0001308/1.261, allocations: 35.94 kB / 0.7496 GB, free: 2.074 MB / 0.5183 GB Notification: Performance of simCode: created event and clocks part: time 2.956e-06/1.261, allocations: 0 / 0.7496 GB, free: 2.074 MB / 0.5183 GB Notification: Performance of simCode: created simulation system equations: time 4.548e-05/1.261, allocations: 28.08 kB / 0.7496 GB, free: 2.047 MB / 0.5183 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001085/1.261, allocations: 0 / 0.7496 GB, free: 2.047 MB / 0.5183 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005393/1.262, allocations: 144.1 kB / 0.7497 GB, free: 1.883 MB / 0.5183 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003804/1.262, allocations: 0.7036 MB / 0.7504 GB, free: 1.152 MB / 0.5183 GB Notification: Performance of SimCode: time 4.11e-07/1.262, allocations: 0 / 0.7504 GB, free: 1.152 MB / 0.5183 GB (rm -f IDEAS_IDEAS.Utilities.Math.Functions.Examples.InverseXDerivativeCheck.pipe ; mkfifo IDEAS_IDEAS.Utilities.Math.Functions.Examples.InverseXDerivativeCheck.pipe ; head -c 1048576 < IDEAS_IDEAS.Utilities.Math.Functions.Examples.InverseXDerivativeCheck.pipe >> ../files/IDEAS_IDEAS.Utilities.Math.Functions.Examples.InverseXDerivativeCheck.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_IDEAS_IDEAS_Utilities_Math_Functions_Examples_InverseXDerivativeCheck_fmu --startTime=-1 --stopTime=1 --timeout=50 --tolerance=1e-08 IDEAS_IDEAS_Utilities_Math_Functions_Examples_InverseXDerivativeCheck.fmu > IDEAS_IDEAS.Utilities.Math.Functions.Examples.InverseXDerivativeCheck.pipe 2>&1)