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.001372/0.001372, allocations: 104.1 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.001616/0.001616, 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.352/1.352, allocations: 227.4 MB / 246.8 MB, free: 10.54 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00125/0.00125, allocations: 59.47 kB / 307 MB, free: 0.5039 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08179/0.08306, allocations: 50.53 MB / 357.6 MB, free: 13.98 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_TX): time 0.002311/0.08541, allocations: 1.385 MB / 359 MB, free: 12.59 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.2958/0.3812, allocations: 151.9 MB / 0.4989 GB, free: 1.934 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.302e-05/0.3813, allocations: 0 / 0.4989 GB, free: 1.934 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 3.605e-05/0.3814, allocations: 3.938 kB / 0.4989 GB, free: 1.93 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00115/0.3825, allocations: 384.6 kB / 0.4993 GB, free: 1.562 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001146/0.3837, allocations: 0.4995 MB / 0.4998 GB, free: 1.066 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001136/0.3838, allocations: 71.7 kB / 0.4998 GB, free: 0.9961 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.037e-05/0.3839, allocations: 3.938 kB / 0.4998 GB, free: 0.9922 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.816e-05/0.3839, allocations: 47.83 kB / 0.4999 GB, free: 0.9453 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.755e-05/0.384, allocations: 27.92 kB / 0.4999 GB, free: 0.918 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 1.722e-05/0.384, allocations: 7.984 kB / 0.4999 GB, free: 0.9102 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001998/0.3861, allocations: 1.061 MB / 0.5009 GB, free: 15.85 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 4.779e-05/0.3861, allocations: 19.84 kB / 0.501 GB, free: 15.83 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 4.443e-05/0.3862, allocations: 23.88 kB / 0.501 GB, free: 15.8 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001478/0.3877, allocations: 0.6977 MB / 0.5017 GB, free: 15.11 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.117e-06/0.3877, allocations: 0 / 0.5017 GB, free: 15.11 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.583e-06/0.3877, allocations: 0 / 0.5017 GB, free: 15.11 MB / 430.1 MB Notification: Performance of Transformations before backend: time 8.215e-06/0.3877, allocations: 8 kB / 0.5017 GB, free: 15.1 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.0007196/0.3884, allocations: 455.8 kB / 0.5021 GB, free: 14.61 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.13e-05/0.3885, allocations: 12.03 kB / 0.5021 GB, free: 14.59 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.797e-05/0.3885, allocations: 34.73 kB / 0.5022 GB, free: 14.55 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004996/0.389, allocations: 72.75 kB / 0.5022 GB, free: 14.48 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001832/0.3892, allocations: 192.3 kB / 0.5024 GB, free: 14.25 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.02e-05/0.3893, allocations: 7.219 kB / 0.5024 GB, free: 14.25 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.828e-05/0.3893, allocations: 7.938 kB / 0.5024 GB, free: 14.24 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001653/0.3895, allocations: 75.39 kB / 0.5025 GB, free: 14.16 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.805e-06/0.3895, allocations: 0 / 0.5025 GB, free: 14.16 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.006e-06/0.3895, allocations: 0 / 0.5025 GB, free: 14.16 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.312e-06/0.3895, allocations: 4 kB / 0.5025 GB, free: 14.15 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001048/0.3896, allocations: 39.95 kB / 0.5025 GB, free: 14.11 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002032/0.3898, allocations: 206.4 kB / 0.5027 GB, free: 13.86 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003306/0.3902, allocations: 117.1 kB / 0.5028 GB, free: 13.73 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.551e-05/0.3902, allocations: 33.77 kB / 0.5029 GB, free: 13.69 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005633/0.3908, allocations: 141 kB / 0.503 GB, free: 13.53 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.237e-05/0.3909, allocations: 38.5 kB / 0.503 GB, free: 13.48 MB / 430.1 MB Notification: Performance of pre-optimization done (n=6): time 1.162e-06/0.3909, allocations: 0 / 0.503 GB, free: 13.48 MB / 430.1 MB Notification: Performance of matching and sorting (n=6): time 0.0003905/0.3913, allocations: 117.5 kB / 0.5032 GB, free: 13.36 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.691e-05/0.3913, allocations: 81.11 kB / 0.5032 GB, free: 13.27 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001193/0.3914, allocations: 141.8 kB / 0.5034 GB, free: 13.12 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 1.362e-05/0.3915, allocations: 25.7 kB / 0.5034 GB, free: 13.09 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.141e-05/0.3915, allocations: 96.11 kB / 0.5035 GB, free: 12.99 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.452e-05/0.3915, allocations: 15.72 kB / 0.5035 GB, free: 12.97 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.151e-05/0.3916, allocations: 21.72 kB / 0.5035 GB, free: 12.95 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001116/0.3917, allocations: 314.8 kB / 0.5038 GB, free: 12.63 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.348e-05/0.3918, allocations: 27.98 kB / 0.5039 GB, free: 12.6 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.734e-05/0.3919, allocations: 55.41 kB / 0.5039 GB, free: 12.54 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001482/0.392, allocations: 83.28 kB / 0.504 GB, free: 12.44 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.034e-06/0.392, allocations: 0 / 0.504 GB, free: 12.44 MB / 430.1 MB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0002505/0.3923, allocations: 113.9 kB / 0.5041 GB, free: 12.32 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.431e-05/0.3923, allocations: 4 kB / 0.5041 GB, free: 12.32 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.879e-06/0.3923, allocations: 3.938 kB / 0.5041 GB, free: 12.32 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.331e-05/0.3923, allocations: 4 kB / 0.5041 GB, free: 12.31 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001072/0.3925, allocations: 18.98 kB / 0.5041 GB, free: 12.3 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.212e-06/0.3925, allocations: 0 / 0.5041 GB, free: 12.3 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.534e-05/0.3925, allocations: 11.94 kB / 0.5041 GB, free: 12.29 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.175e-06/0.3926, allocations: 4 kB / 0.5041 GB, free: 12.28 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.882e-05/0.3926, allocations: 121.7 kB / 0.5043 GB, free: 12.15 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.596e-05/0.3927, allocations: 11.91 kB / 0.5043 GB, free: 12.14 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000241/0.393, allocations: 111.4 kB / 0.5044 GB, free: 12.03 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.928e-06/0.393, allocations: 4 kB / 0.5044 GB, free: 12.02 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.398e-06/0.393, allocations: 0 / 0.5044 GB, free: 12.02 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.777e-06/0.393, allocations: 0 / 0.5044 GB, free: 12.02 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001544/0.3931, allocations: 181.6 kB / 0.5045 GB, free: 11.8 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.396e-06/0.3932, allocations: 0 / 0.5045 GB, free: 11.8 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.496e-05/0.3932, allocations: 23.86 kB / 0.5046 GB, free: 11.77 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.175e-06/0.3933, allocations: 0 / 0.5046 GB, free: 11.77 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.318e-06/0.3933, allocations: 4 kB / 0.5046 GB, free: 11.77 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.526e-06/0.3933, allocations: 4 kB / 0.5046 GB, free: 11.77 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.142e-06/0.3933, allocations: 0 / 0.5046 GB, free: 11.77 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003382/0.3936, allocations: 157.8 kB / 0.5047 GB, free: 11.59 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.706e-05/0.3937, allocations: 93.03 kB / 0.5048 GB, free: 11.48 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.634e-05/0.3937, allocations: 3.984 kB / 0.5048 GB, free: 11.48 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.515e-05/0.3938, allocations: 8.062 kB / 0.5048 GB, free: 11.47 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.405e-05/0.3938, allocations: 4 kB / 0.5048 GB, free: 11.46 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.075e-06/0.3939, allocations: 8.938 kB / 0.5048 GB, free: 11.46 MB / 430.1 MB Notification: Performance of sorting global known variables: time 8.784e-05/0.394, allocations: 115.8 kB / 0.505 GB, free: 11.34 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.394, allocations: 0 / 0.505 GB, free: 11.34 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0007342/0.3947, allocations: 163.8 kB / 0.5051 GB, free: 11.18 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.001832/0.3965, allocations: 1.025 MB / 0.5061 GB, free: 10.14 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.0002287/0.3968, allocations: 63.89 kB / 0.5062 GB, free: 10.07 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 3.486e-06/0.3968, allocations: 3.938 kB / 0.5062 GB, free: 10.07 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 8.446e-05/0.3969, allocations: 35.92 kB / 0.5062 GB, free: 10.04 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003173/0.3972, allocations: 31.11 kB / 0.5062 GB, free: 10.01 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002098/0.3993, allocations: 1.711 MB / 0.5079 GB, free: 8.195 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002184/0.3996, allocations: 0.6969 MB / 0.5086 GB, free: 7.473 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 6.822e-05/0.3996, allocations: 23.92 kB / 0.5086 GB, free: 7.449 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.543e-05/0.3997, allocations: 19.44 kB / 0.5086 GB, free: 7.43 MB / 430.1 MB Notification: Performance of SimCode: time 4.11e-07/0.3997, allocations: 0 / 0.5086 GB, free: 7.43 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02301/0.4227, allocations: 6.18 MB / 0.5147 GB, free: 1.359 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.364/7.787, allocations: 7.125 kB / 0.5147 GB, free: 1.355 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 & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_TX_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 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.csv","/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