Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_T.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_T,fileNamePrefix="Modelica_3_2_3_Modelica_Media_Examples_SolveOneNonlinearEquation_Inverse_sh_T",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_T,fileNamePrefix="Modelica_3_2_3_Modelica_Media_Examples_SolveOneNonlinearEquation_Inverse_sh_T",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 3.2.3+maint.om/package.mo): time 0.001193/0.001193, allocations: 183.8 kB / 8.48 MB, free: 1.785 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.287/1.287, allocations: 205.2 MB / 214.1 MB, free: 13.91 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009646/0.0009645, allocations: 90.36 kB / 262.1 MB, free: 13.55 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1242/0.1253, allocations: 52.98 MB / 315.1 MB, free: 8.531 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2322/0.3575, allocations: 47.56 MB / 362.6 MB, free: 45.93 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.8988/1.256, allocations: 0.5809 GB / 0.935 GB, free: 67.38 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001936/1.257, allocations: 71.97 kB / 0.9351 GB, free: 67.3 MB / 426.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.09481/1.351, allocations: 41.33 MB / 0.9754 GB, free: 25.91 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.125e-05/1.352, allocations: 12 kB / 0.9754 GB, free: 25.9 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009933/1.353, allocations: 119.8 kB / 0.9755 GB, free: 25.78 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001963/1.353, allocations: 198.8 kB / 0.9757 GB, free: 25.55 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.867e-05/1.353, allocations: 0 / 0.9757 GB, free: 25.55 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.649e-05/1.353, allocations: 0 / 0.9757 GB, free: 25.55 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 8.254e-05/1.353, allocations: 27.98 kB / 0.9758 GB, free: 25.52 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001033/1.353, allocations: 71.38 kB / 0.9758 GB, free: 25.44 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.215e-06/1.353, allocations: 0 / 0.9758 GB, free: 25.44 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.317e-05/1.353, allocations: 0 / 0.9758 GB, free: 25.44 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.905e-06/1.353, allocations: 10.16 kB / 0.9758 GB, free: 25.43 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001882/1.353, allocations: 152.2 kB / 0.976 GB, free: 25.24 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003154/1.354, allocations: 97.06 kB / 0.9761 GB, free: 25.13 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.723e-05/1.354, allocations: 33.95 kB / 0.9761 GB, free: 25.09 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0006737/1.354, allocations: 1.371 MB / 0.9774 GB, free: 23.42 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.582e-05/1.354, allocations: 34.56 kB / 0.9775 GB, free: 23.38 MB / 426.7 MB Notification: Performance of pre-optimization done (n=6): time 1.633e-06/1.354, allocations: 0 / 0.9775 GB, free: 23.38 MB / 426.7 MB Notification: Performance of matching and sorting (n=6): time 0.0006951/1.355, allocations: 161.4 kB / 0.9776 GB, free: 23.21 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.064e-05/1.355, allocations: 77.11 kB / 0.9777 GB, free: 23.12 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001094/1.355, allocations: 125 kB / 0.9778 GB, free: 22.99 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 1.1e-05/1.355, allocations: 25.7 kB / 0.9778 GB, free: 22.96 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.402e-05/1.355, allocations: 80.14 kB / 0.9779 GB, free: 22.88 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.22e-05/1.355, allocations: 23.66 kB / 0.9779 GB, free: 22.86 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.113e-06/1.355, allocations: 0 / 0.9779 GB, free: 22.86 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 6.303e-05/1.355, allocations: 318.8 kB / 0.9782 GB, free: 22.54 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.283e-05/1.355, allocations: 12 kB / 0.9783 GB, free: 22.52 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.384e-05/1.355, allocations: 57.55 kB / 0.9783 GB, free: 22.46 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004595/1.356, allocations: 99.86 kB / 0.9784 GB, free: 22.36 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.314e-06/1.356, allocations: 0 / 0.9784 GB, free: 22.36 MB / 426.7 MB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0005476/1.357, allocations: 165.4 kB / 0.9786 GB, free: 22.19 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.348e-05/1.357, allocations: 4 kB / 0.9786 GB, free: 22.19 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.572e-06/1.357, allocations: 4 kB / 0.9786 GB, free: 22.18 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.406e-05/1.357, allocations: 0 / 0.9786 GB, free: 22.18 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001427/1.357, allocations: 19.98 kB / 0.9786 GB, free: 22.16 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.885e-06/1.357, allocations: 8.719 kB / 0.9786 GB, free: 22.16 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001809/1.357, allocations: 7.891 kB / 0.9786 GB, free: 22.15 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.701e-05/1.357, allocations: 4.188 kB / 0.9786 GB, free: 22.14 MB / 426.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 5.933e-05/1.357, allocations: 108.9 kB / 0.9787 GB, free: 22.03 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.602e-05/1.357, allocations: 3.906 kB / 0.9787 GB, free: 22.03 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007219/1.358, allocations: 201.4 kB / 0.9789 GB, free: 21.82 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.801e-06/1.358, allocations: 4 kB / 0.9789 GB, free: 21.82 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.751e-06/1.358, allocations: 1.406 kB / 0.9789 GB, free: 21.82 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.021e-06/1.358, allocations: 3.984 kB / 0.9789 GB, free: 21.82 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000122/1.358, allocations: 156.4 kB / 0.9791 GB, free: 21.63 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.427e-06/1.358, allocations: 4 kB / 0.9791 GB, free: 21.62 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001482/1.358, allocations: 19.92 kB / 0.9791 GB, free: 21.61 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.19e-06/1.358, allocations: 0 / 0.9791 GB, free: 21.61 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.561e-05/1.358, allocations: 15.92 kB / 0.9791 GB, free: 21.59 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.164e-06/1.358, allocations: 0 / 0.9791 GB, free: 21.59 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.254e-06/1.358, allocations: 0 / 0.9791 GB, free: 21.59 MB / 426.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0006039/1.359, allocations: 219.4 kB / 0.9793 GB, free: 21.35 MB / 426.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.000696/1.359, allocations: 0.6328 MB / 0.9799 GB, free: 20.68 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.864e-05/1.36, allocations: 92.98 kB / 0.98 GB, free: 20.57 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.878e-05/1.36, allocations: 0 / 0.98 GB, free: 20.57 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001732/1.36, allocations: 4 kB / 0.98 GB, free: 20.57 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.787e-05/1.36, allocations: 11.98 kB / 0.98 GB, free: 20.56 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.043e-05/1.36, allocations: 2.812 kB / 0.98 GB, free: 20.56 MB / 426.7 MB Notification: Performance of sort global known variables: time 6.017e-05/1.36, allocations: 107.3 kB / 0.9801 GB, free: 20.45 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.00143/1.361, allocations: 283.6 kB / 0.9804 GB, free: 20.18 MB / 426.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.001703/1.363, allocations: 0.9229 MB / 0.9813 GB, free: 19.25 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.0001507/1.363, allocations: 43.92 kB / 0.9814 GB, free: 19.2 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 2.555e-06/1.363, allocations: 128 / 0.9814 GB, free: 19.2 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 4.464e-05/1.363, allocations: 31.98 kB / 0.9814 GB, free: 19.17 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001865/1.363, allocations: 5.125 kB / 0.9814 GB, free: 19.17 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005509/1.364, allocations: 226.4 kB / 0.9816 GB, free: 18.92 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000259/1.364, allocations: 0.7344 MB / 0.9823 GB, free: 18.16 MB / 426.7 MB Notification: Performance of SimCode: time 3.21e-07/1.364, allocations: 0 / 0.9823 GB, free: 18.16 MB / 426.7 MB (rm -f Modelica_3.2.3_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_T.pipe ; mkfifo Modelica_3.2.3_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_T.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_T.pipe >> ../files/Modelica_3.2.3_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_T.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_T_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Media_Examples_SolveOneNonlinearEquation_Inverse_sh_T_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Media_Examples_SolveOneNonlinearEquation_Inverse_sh_T.fmu > Modelica_3.2.3_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_T.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_T_res.mat does not exist to compare? outputFormat=mat