Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Media.Examples.SolveOneNonlinearEquation.InverseIncompressible_sh_T.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Media.Examples.SolveOneNonlinearEquation.InverseIncompressible_sh_T,fileNamePrefix="Modelica_trunk_cpp_Modelica_Media_Examples_SolveOneNonlinearEquation_InverseIncompressible_sh_T",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Media.Examples.SolveOneNonlinearEquation.InverseIncompressible_sh_T,fileNamePrefix="Modelica_trunk_cpp_Modelica_Media_Examples_SolveOneNonlinearEquation_InverseIncompressible_sh_T",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001349/0.001349, allocations: 194 kB / 17.38 MB, free: 4.41 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.185/1.185, allocations: 226.5 MB / 244.7 MB, free: 8.199 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007477/0.0007477, allocations: 92.62 kB / 296.7 MB, free: 6.898 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000219/0.000219, allocations: 8 kB / 356.8 MB, free: 10.82 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1745/0.1747, allocations: 51.29 MB / 408.1 MB, free: 27.7 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.SolveOneNonlinearEquation.InverseIncompressible_sh_T): time 0.0009938/0.1758, allocations: 1.08 MB / 409.2 MB, free: 26.62 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.003191/0.179, allocations: 3.761 MB / 413 MB, free: 22.85 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.712e-05/0.179, allocations: 1.688 kB / 413 MB, free: 22.85 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 1.383e-05/0.179, allocations: 3.938 kB / 413 MB, free: 22.84 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0006906/0.1797, allocations: 235.2 kB / 413.2 MB, free: 22.61 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007745/0.1805, allocations: 426 kB / 413.6 MB, free: 22.2 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 5.883e-05/0.1806, allocations: 51.7 kB / 413.7 MB, free: 22.15 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.308e-05/0.1806, allocations: 4 kB / 413.7 MB, free: 22.14 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 8.13e-05/0.1807, allocations: 35.86 kB / 413.7 MB, free: 22.11 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005599/0.1813, allocations: 391.5 kB / 414.1 MB, free: 21.73 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.015e-05/0.1813, allocations: 0 / 414.1 MB, free: 21.73 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006656/0.182, allocations: 0.534 MB / 414.6 MB, free: 21.19 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 9.708e-06/0.182, allocations: 3.984 kB / 414.6 MB, free: 21.19 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 3.309e-05/0.182, allocations: 49.58 kB / 414.7 MB, free: 21.13 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003644/0.1824, allocations: 316.7 kB / 415 MB, free: 20.82 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.839e-06/0.1824, allocations: 0 / 415 MB, free: 20.82 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.223e-06/0.1824, allocations: 0 / 415 MB, free: 20.82 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.629e-06/0.1825, allocations: 4 kB / 415 MB, free: 20.82 MB / 298.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.0004036/0.1829, allocations: 427.2 kB / 415.4 MB, free: 20.36 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.22e-05/0.1829, allocations: 8.031 kB / 415.4 MB, free: 20.35 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.159e-05/0.1829, allocations: 38.75 kB / 415.4 MB, free: 20.3 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.226e-05/0.183, allocations: 8.844 kB / 415.5 MB, free: 20.29 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001491/0.1831, allocations: 188.2 kB / 415.6 MB, free: 20.07 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.16e-05/0.1832, allocations: 4.125 kB / 415.6 MB, free: 20.07 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.38e-05/0.1832, allocations: 4 kB / 415.6 MB, free: 20.06 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001119/0.1833, allocations: 71.33 kB / 415.7 MB, free: 19.98 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.045e-06/0.1833, allocations: 3.984 kB / 415.7 MB, free: 19.98 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.055e-06/0.1833, allocations: 0 / 415.7 MB, free: 19.98 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.428e-06/0.1833, allocations: 4 kB / 415.7 MB, free: 19.97 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.624e-05/0.1834, allocations: 19.98 kB / 415.7 MB, free: 19.95 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001133/0.1835, allocations: 170.6 kB / 415.9 MB, free: 19.73 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002184/0.1837, allocations: 77.06 kB / 416 MB, free: 19.64 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.451e-05/0.1838, allocations: 29.77 kB / 416 MB, free: 19.61 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005692/0.1844, allocations: 1.54 MB / 417.6 MB, free: 17.71 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.443e-05/0.1844, allocations: 42.48 kB / 417.6 MB, free: 17.66 MB / 298.7 MB Notification: Performance of pre-optimization done (n=6): time 1.203e-06/0.1844, allocations: 0 / 417.6 MB, free: 17.66 MB / 298.7 MB Notification: Performance of matching and sorting (n=6): time 0.0002511/0.1847, allocations: 77.59 kB / 417.7 MB, free: 17.58 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.601e-05/0.1847, allocations: 85.11 kB / 417.8 MB, free: 17.48 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.432e-05/0.1848, allocations: 113.8 kB / 417.9 MB, free: 17.36 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 7.383e-06/0.1848, allocations: 29.7 kB / 417.9 MB, free: 17.32 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.798e-05/0.1848, allocations: 80.14 kB / 418 MB, free: 17.24 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.12e-05/0.1848, allocations: 23.66 kB / 418 MB, free: 17.22 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.638e-06/0.1849, allocations: 0 / 418 MB, free: 17.22 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.758e-05/0.1849, allocations: 318.8 kB / 418.3 MB, free: 16.9 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.913e-05/0.185, allocations: 15.98 kB / 418.3 MB, free: 16.88 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.128e-05/0.185, allocations: 43.42 kB / 418.4 MB, free: 16.83 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001022/0.1851, allocations: 59.36 kB / 418.4 MB, free: 16.76 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.394e-06/0.1851, allocations: 3.938 kB / 418.4 MB, free: 16.75 MB / 298.7 MB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0001485/0.1853, allocations: 85.98 kB / 418.5 MB, free: 16.66 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.179e-05/0.1853, allocations: 4 kB / 418.5 MB, free: 16.66 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.279e-06/0.1853, allocations: 0 / 418.5 MB, free: 16.66 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.371e-05/0.1853, allocations: 7.938 kB / 418.5 MB, free: 16.65 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.278e-05/0.1854, allocations: 19.92 kB / 418.5 MB, free: 16.63 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.32e-06/0.1854, allocations: 0 / 418.5 MB, free: 16.63 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.939e-05/0.1855, allocations: 4 kB / 418.5 MB, free: 16.63 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.223e-05/0.1855, allocations: 7.984 kB / 418.6 MB, free: 16.62 MB / 298.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 4.498e-05/0.1856, allocations: 117.8 kB / 418.7 MB, free: 16.5 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.181e-05/0.1856, allocations: 7.906 kB / 418.7 MB, free: 16.49 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002635/0.1858, allocations: 124.8 kB / 418.8 MB, free: 16.36 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.97e-06/0.1859, allocations: 0 / 418.8 MB, free: 16.36 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.326e-06/0.1859, allocations: 4 kB / 418.8 MB, free: 16.36 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.056e-06/0.1859, allocations: 0 / 418.8 MB, free: 16.36 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.003e-05/0.186, allocations: 173.6 kB / 419 MB, free: 16.14 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.033e-06/0.186, allocations: 4 kB / 419 MB, free: 16.13 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.158e-05/0.186, allocations: 11.98 kB / 419 MB, free: 16.12 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.384e-06/0.1861, allocations: 4 kB / 419 MB, free: 16.12 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.646e-06/0.1861, allocations: 0 / 419 MB, free: 16.12 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.283e-06/0.1861, allocations: 0 / 419 MB, free: 16.12 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.92e-07/0.1861, allocations: 0 / 419 MB, free: 16.12 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002187/0.1863, allocations: 153.7 kB / 419.1 MB, free: 15.95 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.143e-05/0.1863, allocations: 96.97 kB / 419.2 MB, free: 15.83 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.564e-05/0.1864, allocations: 8 kB / 419.2 MB, free: 15.82 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.839e-05/0.1864, allocations: 4 kB / 419.3 MB, free: 15.82 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.499e-05/0.1864, allocations: 3.984 kB / 419.3 MB, free: 15.82 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.612e-06/0.1865, allocations: 7.938 kB / 419.3 MB, free: 15.81 MB / 298.7 MB Notification: Performance of sorting global known variables: time 2.547e-05/0.1865, allocations: 91.27 kB / 419.4 MB, free: 15.72 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.21e-07/0.1865, allocations: 0 / 419.4 MB, free: 15.72 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0003296/0.1868, allocations: 127.9 kB / 419.5 MB, free: 15.59 MB / 298.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 (7): * Single equations (assignments): 6 * 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.0007449/0.1876, allocations: 0.8771 MB / 420.4 MB, free: 14.7 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001461/0.1877, allocations: 51.91 kB / 420.4 MB, free: 14.64 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.442e-06/0.1877, allocations: 0 / 420.4 MB, free: 14.64 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 6.505e-05/0.1878, allocations: 27.97 kB / 420.4 MB, free: 14.62 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001732/0.188, allocations: 13.78 kB / 420.4 MB, free: 14.61 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007957/0.1888, allocations: 0.756 MB / 421.2 MB, free: 13.79 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.598e-05/0.1889, allocations: 0.6964 MB / 421.9 MB, free: 13.06 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.949e-05/0.189, allocations: 27.42 kB / 421.9 MB, free: 13.04 MB / 298.7 MB Notification: Performance of SimCode: time 2.3e-07/0.189, allocations: 0 / 421.9 MB, free: 13.04 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.735/2.924, allocations: 3.115 MB / 425 MB, free: 9.938 MB / 298.7 MB (rm -f Modelica_trunk_cpp_Modelica.Media.Examples.SolveOneNonlinearEquation.InverseIncompressible_sh_T.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Media.Examples.SolveOneNonlinearEquation.InverseIncompressible_sh_T.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Media.Examples.SolveOneNonlinearEquation.InverseIncompressible_sh_T.pipe >> ../files/Modelica_trunk_cpp_Modelica.Media.Examples.SolveOneNonlinearEquation.InverseIncompressible_sh_T.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_cpp_Modelica.Media.Examples.SolveOneNonlinearEquation.InverseIncompressible_sh_T_res.mat --tempDir=temp_Modelica_trunk_cpp_Modelica_Media_Examples_SolveOneNonlinearEquation_InverseIncompressible_sh_T_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_trunk_cpp_Modelica_Media_Examples_SolveOneNonlinearEquation_InverseIncompressible_sh_T.fmu > Modelica_trunk_cpp_Modelica.Media.Examples.SolveOneNonlinearEquation.InverseIncompressible_sh_T.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_cpp_Modelica.Media.Examples.SolveOneNonlinearEquation.InverseIncompressible_sh_T_res.mat does not exist to compare? outputFormat=mat