Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_TX.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_TX,fileNamePrefix="Modelica_trunk_Modelica_Media_Examples_SolveOneNonlinearEquation_Inverse_sh_TX",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_TX,fileNamePrefix="Modelica_trunk_Modelica_Media_Examples_SolveOneNonlinearEquation_Inverse_sh_TX",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00117/0.00117, allocations: 114.2 kB / 17.33 MB, free: 6.016 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001338/0.001338, allocations: 205.8 kB / 18.26 MB, free: 5.102 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.258/1.258, allocations: 227.4 MB / 246.4 MB, free: 10.78 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001103/0.001103, allocations: 59.47 kB / 306.5 MB, free: 0.8594 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07701/0.07813, allocations: 50.53 MB / 357.1 MB, free: 14.33 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_TX): time 0.002285/0.08045, allocations: 1.443 MB / 358.5 MB, free: 12.87 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.2753/0.3558, allocations: 149.8 MB / 0.4964 GB, free: 4.449 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.381e-05/0.3559, allocations: 0 / 0.4964 GB, free: 4.449 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 3.527e-05/0.356, allocations: 3.984 kB / 0.4964 GB, free: 4.445 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001115/0.3571, allocations: 344.7 kB / 0.4967 GB, free: 4.117 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001106/0.3582, allocations: 487.7 kB / 0.4972 GB, free: 3.645 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001032/0.3583, allocations: 71.66 kB / 0.4972 GB, free: 3.574 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.257e-05/0.3584, allocations: 19.91 kB / 0.4973 GB, free: 3.555 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.219e-05/0.3584, allocations: 31.86 kB / 0.4973 GB, free: 3.523 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.763e-05/0.3585, allocations: 35.84 kB / 0.4973 GB, free: 3.488 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 1.374e-05/0.3585, allocations: 4 kB / 0.4973 GB, free: 3.484 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001673/0.3602, allocations: 1.142 MB / 0.4984 GB, free: 2.34 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 3.59e-05/0.3603, allocations: 15.97 kB / 0.4985 GB, free: 2.324 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 3.521e-05/0.3603, allocations: 23.88 kB / 0.4985 GB, free: 2.301 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001138/0.3614, allocations: 0.7677 MB / 0.4992 GB, free: 1.531 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.646e-06/0.3615, allocations: 0 / 0.4992 GB, free: 1.531 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.282e-06/0.3615, allocations: 0 / 0.4992 GB, free: 1.531 MB / 414.1 MB Notification: Performance of Transformations before backend: time 5.721e-06/0.3615, allocations: 0 / 0.4992 GB, free: 1.531 MB / 414.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.0006363/0.3621, allocations: 455.9 kB / 0.4997 GB, free: 1.039 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.714e-05/0.3622, allocations: 8.031 kB / 0.4997 GB, free: 1.031 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.18e-05/0.3622, allocations: 46.73 kB / 0.4997 GB, free: 0.9766 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004427/0.3627, allocations: 68.7 kB / 0.4998 GB, free: 0.9102 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001429/0.3628, allocations: 196.2 kB / 0.5 GB, free: 0.6797 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.682e-05/0.3628, allocations: 9.656 kB / 0.5 GB, free: 0.6719 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.715e-05/0.3629, allocations: 4 kB / 0.5 GB, free: 0.668 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001434/0.363, allocations: 67.39 kB / 0.5001 GB, free: 0.5898 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.893e-06/0.363, allocations: 0 / 0.5001 GB, free: 0.5898 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.077e-06/0.363, allocations: 4 kB / 0.5001 GB, free: 0.5859 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.767e-06/0.363, allocations: 4 kB / 0.5001 GB, free: 0.582 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.796e-05/0.3631, allocations: 43.91 kB / 0.5001 GB, free: 0.5391 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001791/0.3633, allocations: 206.4 kB / 0.5003 GB, free: 296 kB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002799/0.3636, allocations: 105.2 kB / 0.5004 GB, free: 172 kB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.121e-05/0.3637, allocations: 45.42 kB / 0.5004 GB, free: 124 kB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004872/0.3642, allocations: 137 kB / 0.5006 GB, free: 15.97 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.008e-05/0.3642, allocations: 42.56 kB / 0.5006 GB, free: 15.92 MB / 430.1 MB Notification: Performance of pre-optimization done (n=6): time 1.353e-06/0.3642, allocations: 0 / 0.5006 GB, free: 15.92 MB / 430.1 MB Notification: Performance of matching and sorting (n=6): time 0.0003207/0.3646, allocations: 113.9 kB / 0.5007 GB, free: 15.8 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.235e-05/0.3646, allocations: 81.11 kB / 0.5008 GB, free: 15.7 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001021/0.3647, allocations: 137.8 kB / 0.5009 GB, free: 15.56 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 1.253e-05/0.3647, allocations: 25.7 kB / 0.501 GB, free: 15.53 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.739e-05/0.3648, allocations: 88.12 kB / 0.501 GB, free: 15.44 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.022e-05/0.3648, allocations: 23.72 kB / 0.5011 GB, free: 15.41 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.803e-05/0.3649, allocations: 25.7 kB / 0.5011 GB, free: 15.38 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 8.955e-05/0.365, allocations: 318.8 kB / 0.5014 GB, free: 15.06 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.528e-05/0.365, allocations: 23.98 kB / 0.5014 GB, free: 15.04 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.668e-05/0.3651, allocations: 51.41 kB / 0.5015 GB, free: 14.98 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000141/0.3653, allocations: 91.27 kB / 0.5015 GB, free: 14.88 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.813e-06/0.3653, allocations: 0 / 0.5015 GB, free: 14.88 MB / 430.1 MB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0002346/0.3655, allocations: 109.4 kB / 0.5017 GB, free: 14.76 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.428e-05/0.3655, allocations: 8 kB / 0.5017 GB, free: 14.75 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.399e-06/0.3655, allocations: 0 / 0.5017 GB, free: 14.75 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.007e-05/0.3656, allocations: 0 / 0.5017 GB, free: 14.75 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.843e-05/0.3656, allocations: 24.05 kB / 0.5017 GB, free: 14.73 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.889e-06/0.3656, allocations: 0 / 0.5017 GB, free: 14.73 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.845e-05/0.3657, allocations: 7.938 kB / 0.5017 GB, free: 14.72 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.141e-06/0.3657, allocations: 0 / 0.5017 GB, free: 14.72 MB / 430.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.732e-05/0.3658, allocations: 121.7 kB / 0.5018 GB, free: 14.59 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.203e-05/0.3658, allocations: 11.89 kB / 0.5018 GB, free: 14.58 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002319/0.3661, allocations: 111.5 kB / 0.5019 GB, free: 14.47 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.334e-06/0.3661, allocations: 4 kB / 0.5019 GB, free: 14.46 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.366e-06/0.3661, allocations: 0 / 0.5019 GB, free: 14.46 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.118e-06/0.3661, allocations: 4 kB / 0.5019 GB, free: 14.46 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001236/0.3662, allocations: 181.6 kB / 0.5021 GB, free: 14.23 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.565e-06/0.3662, allocations: 3.984 kB / 0.5021 GB, free: 14.23 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.542e-05/0.3663, allocations: 11.94 kB / 0.5021 GB, free: 14.22 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.958e-06/0.3663, allocations: 4 kB / 0.5021 GB, free: 14.21 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.225e-06/0.3664, allocations: 0 / 0.5021 GB, free: 14.21 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.463e-06/0.3664, allocations: 0 / 0.5021 GB, free: 14.21 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.062e-06/0.3664, allocations: 0 / 0.5021 GB, free: 14.21 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003028/0.3667, allocations: 177.7 kB / 0.5023 GB, free: 14.02 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.201e-05/0.3667, allocations: 89.03 kB / 0.5024 GB, free: 13.91 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.069e-05/0.3668, allocations: 4.812 kB / 0.5024 GB, free: 13.91 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.243e-05/0.3668, allocations: 4 kB / 0.5024 GB, free: 13.91 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.917e-05/0.3668, allocations: 4.125 kB / 0.5024 GB, free: 13.9 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.883e-06/0.3669, allocations: 7.984 kB / 0.5024 GB, free: 13.89 MB / 430.1 MB Notification: Performance of sorting global known variables: time 6.735e-05/0.3669, allocations: 111.9 kB / 0.5025 GB, free: 13.79 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.3669, allocations: 3.938 kB / 0.5025 GB, free: 13.78 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0004914/0.3674, allocations: 167.8 kB / 0.5027 GB, free: 13.62 MB / 430.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 (6): * Single equations (assignments): 6 * 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 Backend phase and start with SimCode phase: time 0.00143/0.3689, allocations: 1.013 MB / 0.5037 GB, free: 12.58 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.0001885/0.3691, allocations: 77.44 kB / 0.5037 GB, free: 12.51 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 1.572e-06/0.3691, allocations: 0 / 0.5037 GB, free: 12.51 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 7.31e-05/0.3692, allocations: 35.91 kB / 0.5038 GB, free: 12.47 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002326/0.3694, allocations: 20.77 kB / 0.5038 GB, free: 12.45 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001684/0.3711, allocations: 1.736 MB / 0.5055 GB, free: 10.61 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001995/0.3713, allocations: 0.6929 MB / 0.5062 GB, free: 9.895 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 6.162e-05/0.3714, allocations: 33.34 kB / 0.5062 GB, free: 9.863 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.614e-05/0.3714, allocations: 15.44 kB / 0.5062 GB, free: 9.848 MB / 430.1 MB Notification: Performance of SimCode: time 2.51e-07/0.3714, allocations: 0 / 0.5062 GB, free: 9.848 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 2.571/2.942, allocations: 6.077 MB / 0.5121 GB, free: 3.93 MB / 430.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002038/2.942, allocations: 253.2 kB / 0.5124 GB, free: 3.676 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.022/4.965, allocations: 0 / 0.5124 GB, free: 3.676 MB / 430.1 MB (rm -f Modelica_trunk_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_TX.pipe ; mkfifo Modelica_trunk_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_TX.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_TX.pipe >> ../files/Modelica_trunk_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_TX.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_TX_res.mat --tempDir=temp_Modelica_trunk_Modelica_Media_Examples_SolveOneNonlinearEquation_Inverse_sh_TX_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Media_Examples_SolveOneNonlinearEquation_Inverse_sh_TX.fmu > Modelica_trunk_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_TX.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_TX_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Media/Examples/SolveOneNonlinearEquation/Inverse_sh_TX/Inverse_sh_TX.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_TX.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches