Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Media.Examples.SolveOneNonlinearEquation.InverseIncompressible_sh_T.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) 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) 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Media.Examples.SolveOneNonlinearEquation.InverseIncompressible_sh_T,fileNamePrefix="Modelica_trunk_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_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/ModelicaServices trunk/package.mo): time 0.001643/0.001643, allocations: 105.2 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002047/0.002048, allocations: 214.4 kB / 18.58 MB, free: 4.406 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.246/1.246, allocations: 227.4 MB / 246.8 MB, free: 10.54 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001068/0.001068, allocations: 64.36 kB / 307 MB, free: 0.5156 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07637/0.07745, allocations: 50.52 MB / 357.6 MB, free: 14 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.SolveOneNonlinearEquation.InverseIncompressible_sh_T): time 0.002105/0.07958, allocations: 1.373 MB / 358.9 MB, free: 12.61 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.004376/0.08397, allocations: 4.038 MB / 363 MB, free: 8.551 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.862e-05/0.08403, allocations: 0 / 363 MB, free: 8.551 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 2.095e-05/0.08406, allocations: 3.938 kB / 363 MB, free: 8.547 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009346/0.08502, allocations: 275 kB / 363.2 MB, free: 8.277 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001076/0.08611, allocations: 0.4903 MB / 363.7 MB, free: 7.789 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 8.061e-05/0.0862, allocations: 59.66 kB / 363.8 MB, free: 7.73 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.474e-05/0.08624, allocations: 7.938 kB / 363.8 MB, free: 7.723 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.478e-05/0.08634, allocations: 35.84 kB / 363.8 MB, free: 7.688 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005797/0.08693, allocations: 359.3 kB / 364.2 MB, free: 7.336 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 1.09e-05/0.08696, allocations: 0 / 364.2 MB, free: 7.336 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008503/0.08781, allocations: 0.5615 MB / 364.8 MB, free: 6.773 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 1.135e-05/0.08783, allocations: 0 / 364.8 MB, free: 6.773 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 3.441e-05/0.08787, allocations: 23.86 kB / 364.8 MB, free: 6.75 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007503/0.08863, allocations: 459.1 kB / 365.2 MB, free: 6.301 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.256e-06/0.08864, allocations: 4 kB / 365.2 MB, free: 6.297 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.102e-06/0.08865, allocations: 0 / 365.2 MB, free: 6.297 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.36e-06/0.08866, allocations: 0 / 365.2 MB, free: 6.297 MB / 302.1 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.0005151/0.08918, allocations: 443.1 kB / 365.7 MB, free: 5.816 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.495e-05/0.08922, allocations: 8.031 kB / 365.7 MB, free: 5.809 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.86e-05/0.08926, allocations: 30.75 kB / 365.7 MB, free: 5.77 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.008e-05/0.08929, allocations: 4.938 kB / 365.7 MB, free: 5.766 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001765/0.08947, allocations: 196.2 kB / 365.9 MB, free: 5.535 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.243e-05/0.08949, allocations: 4.125 kB / 365.9 MB, free: 5.531 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.451e-05/0.08951, allocations: 8 kB / 365.9 MB, free: 5.523 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001329/0.08965, allocations: 67.33 kB / 366 MB, free: 5.445 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.382e-06/0.08967, allocations: 0 / 366 MB, free: 5.445 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.534e-06/0.08968, allocations: 0 / 366 MB, free: 5.445 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.807e-06/0.08969, allocations: 0 / 366 MB, free: 5.445 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.062e-05/0.08977, allocations: 19.97 kB / 366 MB, free: 5.426 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001577/0.08994, allocations: 174.6 kB / 366.2 MB, free: 5.203 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000239/0.09018, allocations: 81.06 kB / 366.2 MB, free: 5.105 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.92e-05/0.09025, allocations: 25.77 kB / 366.3 MB, free: 5.074 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0008431/0.0911, allocations: 1.54 MB / 367.8 MB, free: 3.184 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.965e-05/0.09114, allocations: 42.48 kB / 367.8 MB, free: 3.133 MB / 302.1 MB Notification: Performance of pre-optimization done (n=6): time 1.172e-06/0.09114, allocations: 0 / 367.8 MB, free: 3.133 MB / 302.1 MB Notification: Performance of matching and sorting (n=6): time 0.0002615/0.09141, allocations: 81.56 kB / 367.9 MB, free: 3.047 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.651e-05/0.09145, allocations: 81.05 kB / 368 MB, free: 2.949 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.638e-05/0.09154, allocations: 109.8 kB / 368.1 MB, free: 2.832 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.1e-05/0.09155, allocations: 25.7 kB / 368.1 MB, free: 2.801 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.038e-05/0.09159, allocations: 88.14 kB / 368.2 MB, free: 2.711 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.265e-05/0.09163, allocations: 23.7 kB / 368.2 MB, free: 2.688 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.264e-05/0.09166, allocations: 17.72 kB / 368.3 MB, free: 2.664 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 8.861e-05/0.09176, allocations: 326.8 kB / 368.6 MB, free: 2.336 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.266e-05/0.09182, allocations: 8 kB / 368.6 MB, free: 2.328 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.946e-05/0.09189, allocations: 39.36 kB / 368.6 MB, free: 2.277 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001185/0.09201, allocations: 63.73 kB / 368.7 MB, free: 2.203 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.497e-06/0.09202, allocations: 3.938 kB / 368.7 MB, free: 2.199 MB / 302.1 MB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0001811/0.09221, allocations: 93.48 kB / 368.8 MB, free: 2.102 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.432e-05/0.09223, allocations: 6.812 kB / 368.8 MB, free: 2.098 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.038e-06/0.09224, allocations: 3.938 kB / 368.8 MB, free: 2.094 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.279e-05/0.09226, allocations: 8.062 kB / 368.8 MB, free: 2.086 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.359e-05/0.09233, allocations: 19.92 kB / 368.8 MB, free: 2.066 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.909e-06/0.09235, allocations: 480 / 368.8 MB, free: 2.066 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.206e-05/0.09239, allocations: 7.938 kB / 368.8 MB, free: 2.059 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.418e-06/0.09241, allocations: 0 / 368.8 MB, free: 2.059 MB / 302.1 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 6.63e-05/0.09248, allocations: 121.7 kB / 369 MB, free: 1.93 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.746e-05/0.0925, allocations: 4 kB / 369 MB, free: 1.926 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003082/0.09282, allocations: 133.2 kB / 369.1 MB, free: 1.793 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.143e-06/0.09283, allocations: 4 kB / 369.1 MB, free: 1.789 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.176e-06/0.09284, allocations: 0 / 369.1 MB, free: 1.789 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.256e-06/0.09285, allocations: 0 / 369.1 MB, free: 1.789 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001167/0.09297, allocations: 177.6 kB / 369.3 MB, free: 1.566 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.214e-06/0.09298, allocations: 0 / 369.3 MB, free: 1.566 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.894e-05/0.09305, allocations: 8 kB / 369.3 MB, free: 1.559 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.164e-06/0.09306, allocations: 4 kB / 369.3 MB, free: 1.555 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.132e-05/0.09308, allocations: 11.98 kB / 369.3 MB, free: 1.543 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.453e-06/0.09309, allocations: 0 / 369.3 MB, free: 1.543 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.82e-07/0.09309, allocations: 0 / 369.3 MB, free: 1.543 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002599/0.09336, allocations: 145.7 kB / 369.4 MB, free: 1.379 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.448e-05/0.09341, allocations: 89.06 kB / 369.5 MB, free: 1.273 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.798e-05/0.09343, allocations: 4 kB / 369.5 MB, free: 1.27 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.997e-05/0.09348, allocations: 8.062 kB / 369.5 MB, free: 1.262 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.061e-05/0.09352, allocations: 7.984 kB / 369.5 MB, free: 1.254 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.861e-06/0.09353, allocations: 0 / 369.5 MB, free: 1.254 MB / 302.1 MB Notification: Performance of sorting global known variables: time 4.63e-05/0.09358, allocations: 91.27 kB / 369.6 MB, free: 1.164 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.09358, allocations: 0 / 369.6 MB, free: 1.164 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003719/0.09396, allocations: 131.9 kB / 369.8 MB, free: 1.035 MB / 302.1 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0008805/0.09485, allocations: 0.8728 MB / 370.6 MB, free: 140 kB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0001736/0.09503, allocations: 47.91 kB / 370.7 MB, free: 92 kB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.983e-06/0.09504, allocations: 0 / 370.7 MB, free: 92 kB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 8.018e-05/0.09513, allocations: 35.97 kB / 370.7 MB, free: 56 kB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001716/0.09531, allocations: 19.69 kB / 370.7 MB, free: 40 kB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.12/0.2153, allocations: 1.493 MB / 372.2 MB, free: 19.19 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.842e-05/0.2154, allocations: 0.6864 MB / 372.9 MB, free: 18.5 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 7.275e-05/0.2155, allocations: 28.67 kB / 372.9 MB, free: 18.5 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.565e-05/0.2155, allocations: 30.25 kB / 373 MB, free: 18.48 MB / 302.1 MB Notification: Performance of SimCode: time 3.8e-07/0.2156, allocations: 0 / 373 MB, free: 18.48 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 2.088/2.304, allocations: 4.402 MB / 377.4 MB, free: 17.78 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.721/12.03, allocations: 5.641 kB / 377.4 MB, free: 17.77 MB / 302.1 MB (rm -f Modelica_trunk_Modelica.Media.Examples.SolveOneNonlinearEquation.InverseIncompressible_sh_T.pipe ; mkfifo Modelica_trunk_Modelica.Media.Examples.SolveOneNonlinearEquation.InverseIncompressible_sh_T.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Media.Examples.SolveOneNonlinearEquation.InverseIncompressible_sh_T.pipe >> ../files/Modelica_trunk_Modelica.Media.Examples.SolveOneNonlinearEquation.InverseIncompressible_sh_T.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Media.Examples.SolveOneNonlinearEquation.InverseIncompressible_sh_T_res.mat --tempDir=temp_Modelica_trunk_Modelica_Media_Examples_SolveOneNonlinearEquation_InverseIncompressible_sh_T_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Media_Examples_SolveOneNonlinearEquation_InverseIncompressible_sh_T.fmu > Modelica_trunk_Modelica.Media.Examples.SolveOneNonlinearEquation.InverseIncompressible_sh_T.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Media.Examples.SolveOneNonlinearEquation.InverseIncompressible_sh_T_res.mat does not exist to compare? outputFormat=mat