Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_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.Inverse_sh_T,fileNamePrefix="Modelica_trunk_Modelica_Media_Examples_SolveOneNonlinearEquation_Inverse_sh_T",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_T,fileNamePrefix="Modelica_trunk_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/ModelicaServices trunk/package.mo): time 0.0008469/0.000847, allocations: 93.7 kB / 17 MB, free: 6.375 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009879/0.0009879, allocations: 198 kB / 17.9 MB, free: 5.91 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.391/1.391, allocations: 227.4 MB / 246 MB, free: 12 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002277/0.0002277, allocations: 4 kB / 306.8 MB, free: 1.508 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1079/0.1081, allocations: 51.48 MB / 358.3 MB, free: 14.02 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_T): time 0.00135/0.1095, allocations: 1.076 MB / 359.4 MB, free: 12.93 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.3726/0.4822, allocations: 135.1 MB / 494.5 MB, free: 4.738 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.795e-05/0.4823, allocations: 0 / 494.5 MB, free: 4.738 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 2.51e-05/0.4823, allocations: 0 / 494.5 MB, free: 4.738 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008909/0.4832, allocations: 191.6 kB / 494.7 MB, free: 4.555 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001022/0.4842, allocations: 286.9 kB / 495 MB, free: 4.281 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001023/0.4844, allocations: 47.73 kB / 495 MB, free: 4.234 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.253e-05/0.4844, allocations: 4 kB / 495 MB, free: 4.23 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.306e-05/0.4845, allocations: 27.84 kB / 495.1 MB, free: 4.203 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.242e-05/0.4846, allocations: 27.91 kB / 495.1 MB, free: 4.176 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 1.476e-05/0.4846, allocations: 4 kB / 495.1 MB, free: 4.172 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001068/0.4857, allocations: 475.1 kB / 495.5 MB, free: 3.707 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 2.039e-05/0.4857, allocations: 15.92 kB / 495.6 MB, free: 3.691 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.873e-05/0.4857, allocations: 29.7 kB / 495.6 MB, free: 3.656 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006484/0.4864, allocations: 297.1 kB / 495.9 MB, free: 3.367 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.04e-06/0.4864, allocations: 0 / 495.9 MB, free: 3.367 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.034e-06/0.4864, allocations: 0 / 495.9 MB, free: 3.367 MB / 398.1 MB Notification: Performance of Transformations before backend: time 4.057e-06/0.4864, allocations: 0 / 495.9 MB, free: 3.367 MB / 398.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.0005403/0.487, allocations: 411.9 kB / 496.3 MB, free: 2.918 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.353e-05/0.487, allocations: 12.03 kB / 496.3 MB, free: 2.906 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.451e-05/0.4871, allocations: 34.5 kB / 496.3 MB, free: 2.863 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001171/0.4882, allocations: 115.7 kB / 496.4 MB, free: 2.75 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003735/0.4887, allocations: 226.8 kB / 496.7 MB, free: 2.488 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.35e-05/0.4887, allocations: 0 / 496.7 MB, free: 2.488 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.429e-05/0.4887, allocations: 4 kB / 496.7 MB, free: 2.484 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002499/0.489, allocations: 91.33 kB / 496.8 MB, free: 2.383 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.965e-06/0.489, allocations: 0 / 496.8 MB, free: 2.383 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.303e-05/0.489, allocations: 4 kB / 496.8 MB, free: 2.379 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.629e-06/0.489, allocations: 0 / 496.8 MB, free: 2.379 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001517/0.4892, allocations: 47.88 kB / 496.8 MB, free: 2.332 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003558/0.4895, allocations: 218.8 kB / 497 MB, free: 2.066 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004303/0.49, allocations: 121.2 kB / 497.1 MB, free: 1.93 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001025/0.4901, allocations: 33.69 kB / 497.2 MB, free: 1.891 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0007645/0.4909, allocations: 0.9901 MB / 498.2 MB, free: 0.6797 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.766e-05/0.4909, allocations: 30.56 kB / 498.2 MB, free: 0.6406 MB / 398.1 MB Notification: Performance of pre-optimization done (n=6): time 1.433e-06/0.4909, allocations: 4 kB / 498.2 MB, free: 0.6367 MB / 398.1 MB Notification: Performance of matching and sorting (n=6): time 0.0004339/0.4913, allocations: 137.5 kB / 498.3 MB, free: 0.4961 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.906e-05/0.4914, allocations: 77.11 kB / 498.4 MB, free: 412 kB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000197/0.4916, allocations: 149.8 kB / 498.6 MB, free: 252 kB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.794e-05/0.4916, allocations: 33.64 kB / 498.6 MB, free: 212 kB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.806e-05/0.4917, allocations: 84.14 kB / 498.7 MB, free: 124 kB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.921e-05/0.4917, allocations: 23.64 kB / 498.7 MB, free: 100 kB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.426e-06/0.4917, allocations: 4 kB / 498.7 MB, free: 96 kB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001327/0.4919, allocations: 322.8 kB / 499 MB, free: 15.77 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.249e-05/0.492, allocations: 23.97 kB / 499 MB, free: 15.75 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001003/0.4921, allocations: 52.19 kB / 499.1 MB, free: 15.68 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001039/0.4922, allocations: 35.92 kB / 499.1 MB, free: 15.65 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.104e-06/0.4922, allocations: 0 / 499.1 MB, free: 15.65 MB / 414.1 MB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0003671/0.4926, allocations: 121.5 kB / 499.2 MB, free: 15.52 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.577e-05/0.4926, allocations: 4 kB / 499.2 MB, free: 15.52 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.38e-06/0.4926, allocations: 4 kB / 499.2 MB, free: 15.52 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.175e-05/0.4926, allocations: 0 / 499.2 MB, free: 15.52 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001589/0.4928, allocations: 27.97 kB / 499.3 MB, free: 15.49 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.612e-05/0.4928, allocations: 0 / 499.3 MB, free: 15.49 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000169/0.493, allocations: 8.062 kB / 499.3 MB, free: 15.48 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.204e-05/0.493, allocations: 7.984 kB / 499.3 MB, free: 15.47 MB / 414.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.331e-05/0.4931, allocations: 121.7 kB / 499.4 MB, free: 15.34 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.148e-05/0.4932, allocations: 11.89 kB / 499.4 MB, free: 15.33 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005382/0.4937, allocations: 239.9 kB / 499.7 MB, free: 15.09 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.021e-06/0.4937, allocations: 0 / 499.7 MB, free: 15.09 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.949e-06/0.4938, allocations: 0 / 499.7 MB, free: 15.09 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.078e-06/0.4938, allocations: 0 / 499.7 MB, free: 15.09 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002811/0.494, allocations: 226.9 kB / 499.9 MB, free: 14.82 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.246e-06/0.4941, allocations: 0 / 499.9 MB, free: 14.82 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001632/0.4942, allocations: 24.53 kB / 499.9 MB, free: 14.8 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.597e-06/0.4942, allocations: 4 kB / 499.9 MB, free: 14.8 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.329e-05/0.4943, allocations: 0 / 499.9 MB, free: 14.8 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.735e-06/0.4943, allocations: 4.469 kB / 499.9 MB, free: 14.79 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.947e-06/0.4943, allocations: 4.688 kB / 499.9 MB, free: 14.79 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004435/0.4947, allocations: 174.3 kB / 0.4884 GB, free: 14.6 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.558e-05/0.4948, allocations: 101 kB / 0.4885 GB, free: 14.48 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.76e-05/0.4949, allocations: 4 kB / 0.4885 GB, free: 14.48 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002142/0.4951, allocations: 16 kB / 0.4885 GB, free: 14.46 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.362e-05/0.4951, allocations: 11.91 kB / 0.4885 GB, free: 14.45 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.223e-05/0.4952, allocations: 4 kB / 0.4885 GB, free: 14.45 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0001628/0.4953, allocations: 139.3 kB / 0.4886 GB, free: 14.31 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4953, allocations: 0 / 0.4886 GB, free: 14.31 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0004937/0.4958, allocations: 127.9 kB / 0.4887 GB, free: 14.19 MB / 414.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 (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.00136/0.4972, allocations: 0.9049 MB / 0.4896 GB, free: 13.25 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0003087/0.4976, allocations: 79.94 kB / 0.4897 GB, free: 13.18 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.304e-06/0.4976, allocations: 0 / 0.4897 GB, free: 13.18 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001118/0.4977, allocations: 35.92 kB / 0.4897 GB, free: 13.14 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002266/0.4979, allocations: 18.36 kB / 0.4898 GB, free: 13.13 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001819/0.4998, allocations: 0.9075 MB / 0.4906 GB, free: 12.17 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002761/0.5, allocations: 0.6887 MB / 0.4913 GB, free: 11.45 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0007464/0.5008, allocations: 427 kB / 0.4917 GB, free: 11.04 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001491/0.501, allocations: 51.38 kB / 0.4918 GB, free: 10.98 MB / 414.1 MB Notification: Performance of SimCode: time 3.2e-07/0.501, allocations: 0 / 0.4918 GB, free: 10.98 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02089/0.5219, allocations: 6.183 MB / 0.4978 GB, free: 4.953 MB / 414.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001779/0.5221, allocations: 248.7 kB / 0.498 GB, free: 4.699 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.991/2.513, allocations: 0 / 0.498 GB, free: 4.699 MB / 414.1 MB (rm -f Modelica_trunk_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_T.pipe ; mkfifo Modelica_trunk_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_T.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_T.pipe >> ../files/Modelica_trunk_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_T.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_T_res.mat --tempDir=temp_Modelica_trunk_Modelica_Media_Examples_SolveOneNonlinearEquation_Inverse_sh_T_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Media_Examples_SolveOneNonlinearEquation_Inverse_sh_T.fmu > Modelica_trunk_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_T.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_T_res.mat does not exist to compare? outputFormat=mat