Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_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_cpp_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_cpp_Modelica_Media_Examples_SolveOneNonlinearEquation_Inverse_sh_T",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001571/0.001571, allocations: 185.3 kB / 16.4 MB, free: 5.75 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.104/2.104, allocations: 205.4 MB / 222.5 MB, free: 9.105 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.00111/0.00111, allocations: 96.92 kB / 270.9 MB, free: 8.363 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000396/0.000396, allocations: 12 kB / 327.1 MB, free: 104 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3497/0.3502, allocations: 47.57 MB / 374.6 MB, free: 45.38 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_T): time 0.001562/0.3518, allocations: 1.038 MB / 375.7 MB, free: 44.57 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.2049/0.5567, allocations: 127.1 MB / 0.491 GB, free: 384 kB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.302e-05/0.5568, allocations: 0 / 0.491 GB, free: 384 kB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 2.826e-05/0.5569, allocations: 7.938 kB / 0.491 GB, free: 376 kB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001079/0.558, allocations: 191.4 kB / 0.4912 GB, free: 184 kB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.318/0.8759, allocations: 472.3 kB / 0.4916 GB, free: 2.035 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001161/0.8761, allocations: 41.66 kB / 0.4917 GB, free: 2.035 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 6.067e-05/0.8761, allocations: 3.844 kB / 0.4917 GB, free: 2.035 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 5.735e-05/0.8762, allocations: 24.64 kB / 0.4917 GB, free: 2.035 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 8.39e-05/0.8763, allocations: 31.03 kB / 0.4917 GB, free: 2.031 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 1.484e-05/0.8763, allocations: 2.812 kB / 0.4917 GB, free: 2.031 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002137/0.8785, allocations: 0.6336 MB / 0.4923 GB, free: 2.031 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 2.296e-05/0.8785, allocations: 9.156 kB / 0.4923 GB, free: 2.031 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 4.331e-05/0.8786, allocations: 37.3 kB / 0.4924 GB, free: 2 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001078/0.8797, allocations: 341 kB / 0.4927 GB, free: 1.98 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.15e-06/0.8797, allocations: 6.688 kB / 0.4927 GB, free: 1.98 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.184e-06/0.8797, allocations: 0 / 0.4927 GB, free: 1.98 MB / 378.7 MB Notification: Performance of Transformations before backend: time 6.111e-06/0.8797, allocations: 0 / 0.4927 GB, free: 1.98 MB / 378.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.0008472/0.8806, allocations: 438.7 kB / 0.4931 GB, free: 17.57 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.745e-05/0.8807, allocations: 8.125 kB / 0.4931 GB, free: 17.57 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.457e-05/0.8807, allocations: 33.94 kB / 0.4932 GB, free: 17.53 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001715/0.8824, allocations: 98.75 kB / 0.4933 GB, free: 17.52 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004146/0.8829, allocations: 222.2 kB / 0.4935 GB, free: 17.32 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.994e-05/0.8829, allocations: 2.406 kB / 0.4935 GB, free: 17.32 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.026e-05/0.883, allocations: 2.5 kB / 0.4935 GB, free: 17.32 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003047/0.8833, allocations: 91.56 kB / 0.4936 GB, free: 17.27 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.024e-05/0.8833, allocations: 0 / 0.4936 GB, free: 17.27 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.055e-05/0.8833, allocations: 2.938 kB / 0.4936 GB, free: 17.27 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.214e-06/0.8834, allocations: 7.969 kB / 0.4936 GB, free: 17.27 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002643/0.8836, allocations: 46.05 kB / 0.4936 GB, free: 17.27 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003372/0.884, allocations: 220.2 kB / 0.4938 GB, free: 17.05 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007011/0.8847, allocations: 123.4 kB / 0.4939 GB, free: 17.01 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0009175/0.8856, allocations: 0.9734 MB / 0.4949 GB, free: 15.88 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.791e-05/0.8857, allocations: 41.34 kB / 0.4949 GB, free: 15.84 MB / 394.7 MB Notification: Performance of pre-optimization done (n=6): time 2.765e-06/0.8857, allocations: 0 / 0.4949 GB, free: 15.84 MB / 394.7 MB Notification: Performance of matching and sorting (n=6): time 0.0007679/0.8865, allocations: 132 kB / 0.4951 GB, free: 15.8 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.104e-05/0.8866, allocations: 79.61 kB / 0.4951 GB, free: 15.71 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003173/0.8869, allocations: 153 kB / 0.4953 GB, free: 15.61 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 3.131e-05/0.887, allocations: 28.08 kB / 0.4953 GB, free: 15.58 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.685e-05/0.887, allocations: 154.6 kB / 0.4955 GB, free: 15.43 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.82e-05/0.8871, allocations: 21.22 kB / 0.4955 GB, free: 15.41 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.63e-05/0.8871, allocations: 5.719 kB / 0.4955 GB, free: 15.41 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001368/0.8873, allocations: 313.9 kB / 0.4958 GB, free: 15.1 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001664/0.8875, allocations: 27.06 kB / 0.4958 GB, free: 15.1 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000177/0.8876, allocations: 51.59 kB / 0.4959 GB, free: 15.07 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001855/0.8878, allocations: 34.17 kB / 0.4959 GB, free: 15.06 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.94e-06/0.8879, allocations: 3.953 kB / 0.4959 GB, free: 15.06 MB / 394.7 MB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0005044/0.8884, allocations: 117.8 kB / 0.496 GB, free: 15.03 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.964e-05/0.8884, allocations: 8.422 kB / 0.496 GB, free: 15.03 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.605e-06/0.8884, allocations: 2.625 kB / 0.496 GB, free: 15.03 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.735e-05/0.8885, allocations: 0 / 0.496 GB, free: 15.03 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002445/0.8887, allocations: 32.25 kB / 0.4961 GB, free: 15.02 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.775e-06/0.8887, allocations: 0 / 0.4961 GB, free: 15.02 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000326/0.8891, allocations: 13.69 kB / 0.4961 GB, free: 15.02 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.357e-05/0.8891, allocations: 5.594 kB / 0.4961 GB, free: 15.02 MB / 394.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 () * Number of clocked 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 0.0001279/0.8892, allocations: 117 kB / 0.4962 GB, free: 14.91 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5e-05/0.8893, allocations: 6.797 kB / 0.4962 GB, free: 14.9 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008657/0.8902, allocations: 239.1 kB / 0.4964 GB, free: 14.86 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.037e-06/0.8902, allocations: 4.594 kB / 0.4964 GB, free: 14.86 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.763e-06/0.8902, allocations: 3.188 kB / 0.4964 GB, free: 14.86 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.16e-06/0.8902, allocations: 0 / 0.4964 GB, free: 14.86 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002625/0.8905, allocations: 214.4 kB / 0.4966 GB, free: 14.67 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.992e-06/0.8905, allocations: 3.953 kB / 0.4966 GB, free: 14.66 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003061/0.8908, allocations: 30.44 kB / 0.4967 GB, free: 14.66 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.712e-06/0.8909, allocations: 0 / 0.4967 GB, free: 14.66 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.92e-05/0.8909, allocations: 3 kB / 0.4967 GB, free: 14.66 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.477e-06/0.8909, allocations: 0 / 0.4967 GB, free: 14.66 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.166e-06/0.8909, allocations: 3 kB / 0.4967 GB, free: 14.66 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006471/0.8916, allocations: 193.2 kB / 0.4968 GB, free: 14.56 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001167/0.8917, allocations: 97.12 kB / 0.4969 GB, free: 14.46 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.422e-05/0.8918, allocations: 2.031 kB / 0.4969 GB, free: 14.46 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002906/0.8921, allocations: 8.625 kB / 0.497 GB, free: 14.46 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.482e-05/0.8921, allocations: 8.859 kB / 0.497 GB, free: 14.46 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.871e-05/0.8922, allocations: 6.172 kB / 0.497 GB, free: 14.46 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.000259/0.8924, allocations: 134.9 kB / 0.4971 GB, free: 14.38 MB / 394.7 MB Notification: Performance of sort global known variables: time 3.61e-07/0.8925, allocations: 0 / 0.4971 GB, free: 14.38 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0007844/0.8933, allocations: 167.9 kB / 0.4973 GB, free: 14.36 MB / 394.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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (8): * Single equations (assignments): 7 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * 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.002203/0.8955, allocations: 1.071 MB / 0.4983 GB, free: 13.61 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0004526/0.896, allocations: 79.81 kB / 0.4984 GB, free: 13.61 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 3.437e-06/0.896, allocations: 0 / 0.4984 GB, free: 13.61 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000184/0.8962, allocations: 38.03 kB / 0.4984 GB, free: 13.61 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002414/0.8964, allocations: 15.97 kB / 0.4984 GB, free: 13.61 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00273/0.8992, allocations: 1.384 MB / 0.4998 GB, free: 12.62 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003192/0.8995, allocations: 0.694 MB / 0.5005 GB, free: 11.92 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002744/0.8998, allocations: 49.12 kB / 0.5005 GB, free: 11.91 MB / 394.7 MB Notification: Performance of SimCode: time 1.042e-06/0.8998, allocations: 0 / 0.5005 GB, free: 11.91 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.056/3.956, allocations: 5.269 MB / 0.5057 GB, free: 11.18 MB / 394.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_T.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_T.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_T.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_T.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_T_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Media_Examples_SolveOneNonlinearEquation_Inverse_sh_T_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Media_Examples_SolveOneNonlinearEquation_Inverse_sh_T.fmu > Modelica_3.2.3_cpp_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_cpp_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_T_res.mat does not exist to compare? outputFormat=mat