Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_TX.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/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 Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_TX,fileNamePrefix="Modelica_4_0_0_Modelica_Media_Examples_SolveOneNonlinearEquation_Inverse_sh_TX",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_TX,fileNamePrefix="Modelica_4_0_0_Modelica_Media_Examples_SolveOneNonlinearEquation_Inverse_sh_TX",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.0009317/0.0009317, allocations: 186.8 kB / 8.137 MB, free: 2.137 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.061/1.061, allocations: 221.4 MB / 229.9 MB, free: 3.008 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008358/0.0008358, allocations: 106 kB / 280.8 MB, free: 1.289 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.08888/0.08974, allocations: 55.81 MB / 336.6 MB, free: 9.457 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1709/0.2606, allocations: 50.39 MB / 387 MB, free: 37.93 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.9756/1.236, allocations: 0.7142 GB / 1.092 GB, free: 51.08 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001773/1.236, allocations: 77.11 kB / 1.092 GB, free: 51.04 MB / 442.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 6 * Number of variables: 6 Notification: Performance of Generate backend data structure: time 0.2514/1.488, allocations: 68.14 MB / 1.159 GB, free: 146.8 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.221e-05/1.488, allocations: 10.94 kB / 1.159 GB, free: 146.8 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003497/1.488, allocations: 55.92 kB / 1.159 GB, free: 146.8 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001396/1.488, allocations: 191.1 kB / 1.159 GB, free: 146.6 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.334e-05/1.488, allocations: 0 / 1.159 GB, free: 146.6 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.863e-05/1.488, allocations: 7.5 kB / 1.159 GB, free: 146.6 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 8.178e-05/1.489, allocations: 45.19 kB / 1.159 GB, free: 146.6 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.865e-05/1.489, allocations: 76.88 kB / 1.159 GB, free: 146.5 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.322e-06/1.489, allocations: 0 / 1.159 GB, free: 146.5 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.086e-05/1.489, allocations: 3.562 kB / 1.159 GB, free: 146.5 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.948e-06/1.489, allocations: 3.938 kB / 1.159 GB, free: 146.5 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001485/1.489, allocations: 171.1 kB / 1.159 GB, free: 146.4 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000245/1.489, allocations: 117.5 kB / 1.159 GB, free: 146.3 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.16e-05/1.489, allocations: 32.88 kB / 1.159 GB, free: 146.3 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00039/1.49, allocations: 227.8 kB / 1.16 GB, free: 146.1 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.325e-05/1.49, allocations: 34.53 kB / 1.16 GB, free: 146.1 MB / 442.7 MB Notification: Performance of pre-optimization done (n=6): time 1.192e-06/1.49, allocations: 0 / 1.16 GB, free: 146.1 MB / 442.7 MB Notification: Performance of matching and sorting (n=6): time 0.001096/1.491, allocations: 305 kB / 1.16 GB, free: 146 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.804e-05/1.491, allocations: 83.52 kB / 1.16 GB, free: 145.9 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.979e-05/1.491, allocations: 125.2 kB / 1.16 GB, free: 145.9 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 8.687e-06/1.491, allocations: 31.47 kB / 1.16 GB, free: 145.8 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.084e-05/1.491, allocations: 84.05 kB / 1.16 GB, free: 145.7 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.637e-05/1.491, allocations: 18.58 kB / 1.16 GB, free: 145.7 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.33e-06/1.491, allocations: 0 / 1.16 GB, free: 145.7 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 3.842e-05/1.491, allocations: 321.5 kB / 1.161 GB, free: 145.4 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.367e-05/1.491, allocations: 24.47 kB / 1.161 GB, free: 145.4 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.805e-05/1.491, allocations: 50.17 kB / 1.161 GB, free: 145.4 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007428/1.492, allocations: 218.3 kB / 1.161 GB, free: 145.4 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.054e-06/1.492, allocations: 2.469 kB / 1.161 GB, free: 145.4 MB / 442.7 MB Notification: Performance of matching and sorting (n=8) (initialization): time 0.000884/1.493, allocations: 291.2 kB / 1.161 GB, free: 145.4 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.082e-05/1.493, allocations: 6.625 kB / 1.161 GB, free: 145.4 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.42e-06/1.493, allocations: 6.547 kB / 1.161 GB, free: 145.4 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.11e-05/1.493, allocations: 0 / 1.161 GB, free: 145.4 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.686e-05/1.493, allocations: 17.12 kB / 1.161 GB, free: 145.4 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.23e-06/1.493, allocations: 8.062 kB / 1.161 GB, free: 145.4 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.248e-05/1.493, allocations: 9.203 kB / 1.161 GB, free: 145.4 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.665e-05/1.493, allocations: 5.438 kB / 1.161 GB, free: 145.4 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (8): * Single equations (assignments): 8 * 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 4.263e-05/1.493, allocations: 104.5 kB / 1.161 GB, free: 145.2 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.177e-05/1.493, allocations: 6.844 kB / 1.161 GB, free: 145.2 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008947/1.494, allocations: 321.4 kB / 1.162 GB, free: 145.2 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.655e-06/1.494, allocations: 0 / 1.162 GB, free: 145.2 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.018e-06/1.494, allocations: 7.125 kB / 1.162 GB, free: 145.2 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.977e-06/1.494, allocations: 0 / 1.162 GB, free: 145.2 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.826e-05/1.494, allocations: 160.5 kB / 1.162 GB, free: 145 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.132e-06/1.494, allocations: 2.281 kB / 1.162 GB, free: 145 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.262e-05/1.494, allocations: 16.23 kB / 1.162 GB, free: 145 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.856e-06/1.494, allocations: 2.688 kB / 1.162 GB, free: 145 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.13e-05/1.494, allocations: 6.422 kB / 1.162 GB, free: 145 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.673e-06/1.494, allocations: 0 / 1.162 GB, free: 145 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.494e-06/1.494, allocations: 3.75 kB / 1.162 GB, free: 145 MB / 442.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0009019/1.495, allocations: 364.5 kB / 1.162 GB, free: 144.9 MB / 442.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0009906/1.496, allocations: 0.7844 MB / 1.163 GB, free: 144.5 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.417e-05/1.496, allocations: 103.9 kB / 1.163 GB, free: 144.4 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.345e-05/1.496, allocations: 3.969 kB / 1.163 GB, free: 144.4 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.546e-05/1.496, allocations: 6.375 kB / 1.163 GB, free: 144.4 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.687e-05/1.496, allocations: 3.281 kB / 1.163 GB, free: 144.4 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.041e-05/1.496, allocations: 12.12 kB / 1.163 GB, free: 144.4 MB / 442.7 MB Notification: Performance of sort global known variables: time 4.406e-05/1.496, allocations: 110.8 kB / 1.163 GB, free: 144.3 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.00122/1.498, allocations: 279 kB / 1.163 GB, free: 144.3 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (s1,h1) * 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.001388/1.499, allocations: 0.9152 MB / 1.164 GB, free: 144.1 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.0001015/1.499, allocations: 56.56 kB / 1.164 GB, free: 144.1 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 1.653e-06/1.499, allocations: 0 / 1.164 GB, free: 144.1 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 2.992e-05/1.499, allocations: 34.36 kB / 1.164 GB, free: 144.1 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001898/1.499, allocations: 20.72 kB / 1.164 GB, free: 144.1 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003494/1.5, allocations: 228 kB / 1.165 GB, free: 144 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001459/1.5, allocations: 0.7103 MB / 1.165 GB, free: 143.3 MB / 442.7 MB Notification: Performance of SimCode: time 2.3e-07/1.5, allocations: 3.906 kB / 1.165 GB, free: 143.3 MB / 442.7 MB (rm -f Modelica_4.0.0_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_TX.pipe ; mkfifo Modelica_4.0.0_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_TX.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_TX.pipe >> ../files/Modelica_4.0.0_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_TX.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_TX_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Media_Examples_SolveOneNonlinearEquation_Inverse_sh_TX_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Media_Examples_SolveOneNonlinearEquation_Inverse_sh_TX.fmu > Modelica_4.0.0_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_TX.pipe 2>&1)