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.001192/0.001192, allocations: 103.9 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001477/0.001477, allocations: 206.4 kB / 18.58 MB, free: 4.582 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.232/1.232, allocations: 227.4 MB / 246.8 MB, free: 10.62 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001208/0.001208, allocations: 59.39 kB / 307 MB, free: 0.5508 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08235/0.08358, allocations: 50.53 MB / 357.6 MB, free: 14.02 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_TX): time 0.001946/0.08555, allocations: 1.388 MB / 359 MB, free: 12.62 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.2761/0.3617, allocations: 151.9 MB / 0.4989 GB, free: 1.973 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.37e-05/0.3618, allocations: 0 / 0.4989 GB, free: 1.973 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 4.54e-05/0.3619, allocations: 7.922 kB / 0.4989 GB, free: 1.965 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001175/0.363, allocations: 380.6 kB / 0.4993 GB, free: 1.602 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001129/0.3642, allocations: 0.5033 MB / 0.4998 GB, free: 1.102 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 9.927e-05/0.3643, allocations: 63.72 kB / 0.4998 GB, free: 1.039 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.987e-05/0.3644, allocations: 11.94 kB / 0.4998 GB, free: 1.027 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.58e-05/0.3644, allocations: 35.84 kB / 0.4999 GB, free: 0.9922 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.558e-05/0.3645, allocations: 35.89 kB / 0.4999 GB, free: 0.957 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 1.288e-05/0.3645, allocations: 0 / 0.4999 GB, free: 0.957 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00174/0.3663, allocations: 1.061 MB / 0.5009 GB, free: 15.89 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 3.967e-05/0.3663, allocations: 19.73 kB / 0.501 GB, free: 15.88 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 4.535e-05/0.3664, allocations: 27.88 kB / 0.501 GB, free: 15.85 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001263/0.3676, allocations: 0.7055 MB / 0.5017 GB, free: 15.14 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.497e-06/0.3677, allocations: 0 / 0.5017 GB, free: 15.14 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.192e-06/0.3677, allocations: 0 / 0.5017 GB, free: 15.14 MB / 430.1 MB Notification: Performance of Transformations before backend: time 5.691e-06/0.3677, allocations: 0 / 0.5017 GB, free: 15.14 MB / 430.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.0006788/0.3684, allocations: 459.8 kB / 0.5021 GB, free: 14.64 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.108e-05/0.3684, allocations: 8.031 kB / 0.5021 GB, free: 14.64 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.059e-05/0.3684, allocations: 34.75 kB / 0.5022 GB, free: 14.59 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004641/0.3689, allocations: 72.75 kB / 0.5022 GB, free: 14.52 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001471/0.3691, allocations: 192.3 kB / 0.5024 GB, free: 14.3 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.394e-05/0.3691, allocations: 7.219 kB / 0.5024 GB, free: 14.29 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.869e-05/0.3691, allocations: 0 / 0.5024 GB, free: 14.29 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001533/0.3693, allocations: 87.25 kB / 0.5025 GB, free: 14.2 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.384e-06/0.3693, allocations: 0 / 0.5025 GB, free: 14.2 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.486e-06/0.3693, allocations: 0 / 0.5025 GB, free: 14.2 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.188e-06/0.3693, allocations: 0 / 0.5025 GB, free: 14.2 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.673e-05/0.3694, allocations: 43.97 kB / 0.5025 GB, free: 14.15 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001844/0.3696, allocations: 198.5 kB / 0.5027 GB, free: 13.91 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002805/0.3699, allocations: 117.1 kB / 0.5028 GB, free: 13.77 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.176e-05/0.37, allocations: 33.77 kB / 0.5029 GB, free: 13.73 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004746/0.3705, allocations: 145 kB / 0.503 GB, free: 13.57 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.38e-05/0.3705, allocations: 34.5 kB / 0.503 GB, free: 13.53 MB / 430.1 MB Notification: Performance of pre-optimization done (n=6): time 1.152e-06/0.3705, allocations: 4 kB / 0.5031 GB, free: 13.53 MB / 430.1 MB Notification: Performance of matching and sorting (n=6): time 0.0003416/0.3709, allocations: 125.5 kB / 0.5032 GB, free: 13.4 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.346e-05/0.3709, allocations: 77.11 kB / 0.5032 GB, free: 13.3 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001115/0.371, allocations: 141.8 kB / 0.5034 GB, free: 13.16 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 1.332e-05/0.371, allocations: 25.7 kB / 0.5034 GB, free: 13.12 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.093e-05/0.3711, allocations: 84.14 kB / 0.5035 GB, free: 13.04 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.497e-05/0.3712, allocations: 23.7 kB / 0.5035 GB, free: 13.02 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.407e-05/0.3712, allocations: 17.72 kB / 0.5035 GB, free: 12.99 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 9.26e-05/0.3713, allocations: 326.8 kB / 0.5038 GB, free: 12.66 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.544e-05/0.3714, allocations: 19.98 kB / 0.5039 GB, free: 12.64 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.52e-05/0.3715, allocations: 47.42 kB / 0.5039 GB, free: 12.59 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001454/0.3716, allocations: 87.28 kB / 0.504 GB, free: 12.49 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.623e-06/0.3716, allocations: 0 / 0.504 GB, free: 12.49 MB / 430.1 MB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0002312/0.3719, allocations: 109.5 kB / 0.5041 GB, free: 12.38 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.811e-05/0.3719, allocations: 10.97 kB / 0.5041 GB, free: 12.37 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.318e-06/0.3719, allocations: 0 / 0.5041 GB, free: 12.37 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.375e-05/0.3719, allocations: 3.125 kB / 0.5041 GB, free: 12.37 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.849e-05/0.372, allocations: 19.94 kB / 0.5041 GB, free: 12.35 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.143e-06/0.372, allocations: 4 kB / 0.5041 GB, free: 12.34 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.605e-05/0.3721, allocations: 11.98 kB / 0.5041 GB, free: 12.33 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.905e-06/0.3721, allocations: 4 kB / 0.5041 GB, free: 12.33 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 7.263e-05/0.3722, allocations: 125.7 kB / 0.5043 GB, free: 12.2 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.031e-05/0.3722, allocations: 7.906 kB / 0.5043 GB, free: 12.19 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00023/0.3725, allocations: 111.8 kB / 0.5044 GB, free: 12.07 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.555e-06/0.3725, allocations: 0.5625 kB / 0.5044 GB, free: 12.07 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.867e-06/0.3725, allocations: 0 / 0.5044 GB, free: 12.07 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.839e-06/0.3725, allocations: 3.984 kB / 0.5044 GB, free: 12.07 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001317/0.3726, allocations: 189.6 kB / 0.5046 GB, free: 11.84 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.412e-06/0.3726, allocations: 0 / 0.5046 GB, free: 11.84 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.46e-05/0.3727, allocations: 15.92 kB / 0.5046 GB, free: 11.82 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.456e-06/0.3727, allocations: 4 kB / 0.5046 GB, free: 11.82 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.558e-06/0.3727, allocations: 4 kB / 0.5046 GB, free: 11.81 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.623e-06/0.3727, allocations: 0 / 0.5046 GB, free: 11.81 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.206e-06/0.3728, allocations: 3.984 kB / 0.5046 GB, free: 11.81 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003071/0.3731, allocations: 161.8 kB / 0.5047 GB, free: 11.63 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.737e-05/0.3731, allocations: 93.03 kB / 0.5048 GB, free: 11.52 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.775e-05/0.3732, allocations: 0 / 0.5048 GB, free: 11.52 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.933e-05/0.3732, allocations: 0 / 0.5048 GB, free: 11.52 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.99e-05/0.3732, allocations: 11.98 kB / 0.5048 GB, free: 11.51 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.422e-06/0.3733, allocations: 4.875 kB / 0.5048 GB, free: 11.5 MB / 430.1 MB Notification: Performance of sorting global known variables: time 7.004e-05/0.3733, allocations: 115.6 kB / 0.505 GB, free: 11.39 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.473e-06/0.3733, allocations: 0 / 0.505 GB, free: 11.39 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0005058/0.3739, allocations: 171.9 kB / 0.5051 GB, free: 11.22 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.001451/0.3753, allocations: 1.016 MB / 0.5061 GB, free: 10.18 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.000192/0.3755, allocations: 67.89 kB / 0.5062 GB, free: 10.11 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 1.824e-06/0.3755, allocations: 3.938 kB / 0.5062 GB, free: 10.11 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 7.158e-05/0.3756, allocations: 31.92 kB / 0.5062 GB, free: 10.08 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002367/0.3759, allocations: 22.95 kB / 0.5062 GB, free: 10.06 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001779/0.3777, allocations: 1.723 MB / 0.5079 GB, free: 8.234 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002054/0.3779, allocations: 0.6929 MB / 0.5086 GB, free: 7.516 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 5.635e-05/0.3779, allocations: 20.83 kB / 0.5086 GB, free: 7.496 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.864e-05/0.378, allocations: 27.42 kB / 0.5086 GB, free: 7.469 MB / 430.1 MB Notification: Performance of SimCode: time 2.3e-07/0.378, allocations: 0 / 0.5086 GB, free: 7.469 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4947/0.8727, allocations: 6.175 MB / 0.5147 GB, free: 1.402 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.31/11.18, allocations: 10.73 kB / 0.5147 GB, free: 1.395 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