Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_TX.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_TX,fileNamePrefix="Modelica_3_2_3_Modelica_Media_Examples_SolveOneNonlinearEquation_Inverse_sh_TX",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_TX,fileNamePrefix="Modelica_3_2_3_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 4.0.0+maint.om/package.mo): time 0.001095/0.001095, allocations: 102.5 kB / 17.73 MB, free: 5.371 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001161/0.001161, allocations: 191 kB / 18.66 MB, free: 4.445 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.262/1.262, allocations: 205.1 MB / 224.5 MB, free: 12.25 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001267/0.001267, allocations: 51.92 kB / 328 MB, free: 3.824 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08112/0.0824, allocations: 46.62 MB / 374.6 MB, free: 5.098 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_TX): time 0.002225/0.08465, allocations: 1.376 MB / 376 MB, free: 3.711 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.3066/0.3913, allocations: 150.8 MB / 0.5144 GB, free: 7.262 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.264e-05/0.3914, allocations: 7.938 kB / 0.5144 GB, free: 7.254 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 4.599e-05/0.3915, allocations: 7.922 kB / 0.5144 GB, free: 7.246 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001026/0.3925, allocations: 352.3 kB / 0.5148 GB, free: 6.902 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001798/0.3943, allocations: 0.8063 MB / 0.5156 GB, free: 6.094 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001106/0.3944, allocations: 67.72 kB / 0.5156 GB, free: 6.027 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.711e-05/0.3945, allocations: 11.92 kB / 0.5156 GB, free: 6.016 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.604e-05/0.3946, allocations: 36.59 kB / 0.5157 GB, free: 5.98 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.134e-05/0.3946, allocations: 27.91 kB / 0.5157 GB, free: 5.953 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 1.434e-05/0.3947, allocations: 4 kB / 0.5157 GB, free: 5.949 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002203/0.3969, allocations: 1.411 MB / 0.5171 GB, free: 4.535 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 3.781e-05/0.3969, allocations: 15.92 kB / 0.5171 GB, free: 4.52 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 3.629e-05/0.397, allocations: 23.88 kB / 0.5171 GB, free: 4.496 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001177/0.3982, allocations: 0.8536 MB / 0.5179 GB, free: 3.641 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.677e-06/0.3982, allocations: 0 / 0.5179 GB, free: 3.641 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.403e-06/0.3982, allocations: 1.594 kB / 0.5179 GB, free: 3.641 MB / 446.1 MB Notification: Performance of Transformations before backend: time 5.07e-06/0.3982, allocations: 0 / 0.5179 GB, free: 3.641 MB / 446.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.0006035/0.3988, allocations: 475.7 kB / 0.5184 GB, free: 3.129 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.554e-05/0.3988, allocations: 8.031 kB / 0.5184 GB, free: 3.121 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.016e-05/0.3989, allocations: 38.75 kB / 0.5184 GB, free: 3.074 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002871/0.3992, allocations: 32.89 kB / 0.5185 GB, free: 3.043 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001687/0.3993, allocations: 208.1 kB / 0.5187 GB, free: 2.801 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.258e-05/0.3994, allocations: 4.375 kB / 0.5187 GB, free: 2.797 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.203e-05/0.3994, allocations: 7.844 kB / 0.5187 GB, free: 2.789 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001703/0.3996, allocations: 75.38 kB / 0.5188 GB, free: 2.703 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.985e-06/0.3996, allocations: 0 / 0.5188 GB, free: 2.703 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.939e-06/0.3996, allocations: 4 kB / 0.5188 GB, free: 2.699 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.579e-06/0.3996, allocations: 4 kB / 0.5188 GB, free: 2.695 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.979e-05/0.3997, allocations: 43.91 kB / 0.5188 GB, free: 2.652 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000197/0.3999, allocations: 190.6 kB / 0.519 GB, free: 2.414 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002999/0.4002, allocations: 113 kB / 0.5191 GB, free: 2.285 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.813e-05/0.4003, allocations: 41.77 kB / 0.5191 GB, free: 2.238 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000525/0.4009, allocations: 144.9 kB / 0.5193 GB, free: 2.078 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.217e-05/0.4009, allocations: 34.56 kB / 0.5193 GB, free: 2.035 MB / 446.1 MB Notification: Performance of pre-optimization done (n=6): time 1.242e-06/0.4009, allocations: 4 kB / 0.5193 GB, free: 2.031 MB / 446.1 MB Notification: Performance of matching and sorting (n=6): time 0.0003558/0.4013, allocations: 113.6 kB / 0.5194 GB, free: 1.914 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.644e-05/0.4013, allocations: 77.11 kB / 0.5195 GB, free: 1.82 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001133/0.4014, allocations: 141.8 kB / 0.5196 GB, free: 1.672 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 1.981e-05/0.4015, allocations: 25.7 kB / 0.5197 GB, free: 1.641 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.214e-05/0.4015, allocations: 92.12 kB / 0.5197 GB, free: 1.547 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.373e-05/0.4016, allocations: 23.66 kB / 0.5198 GB, free: 1.523 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.755e-05/0.4016, allocations: 21.72 kB / 0.5198 GB, free: 1.496 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.00011/0.4017, allocations: 318.8 kB / 0.5201 GB, free: 1.176 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.329e-05/0.4018, allocations: 19.98 kB / 0.5201 GB, free: 1.156 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.9e-05/0.4019, allocations: 55.41 kB / 0.5202 GB, free: 1.09 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001471/0.402, allocations: 83.34 kB / 0.5202 GB, free: 0.9961 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.967e-06/0.402, allocations: 4 kB / 0.5202 GB, free: 0.9922 MB / 446.1 MB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0002519/0.4023, allocations: 117.8 kB / 0.5204 GB, free: 0.8711 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.631e-05/0.4023, allocations: 8 kB / 0.5204 GB, free: 0.8633 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.068e-06/0.4023, allocations: 0 / 0.5204 GB, free: 0.8633 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.211e-05/0.4024, allocations: 4.062 kB / 0.5204 GB, free: 0.8594 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.954e-05/0.4024, allocations: 19.98 kB / 0.5204 GB, free: 0.8398 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.103e-06/0.4024, allocations: 0.875 kB / 0.5204 GB, free: 0.8398 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.845e-05/0.4025, allocations: 7.906 kB / 0.5204 GB, free: 0.832 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.063e-06/0.4025, allocations: 0 / 0.5204 GB, free: 0.832 MB / 446.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 8.753e-05/0.4026, allocations: 121.7 kB / 0.5205 GB, free: 0.7031 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.982e-05/0.4027, allocations: 4 kB / 0.5205 GB, free: 0.6992 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002573/0.4029, allocations: 124.7 kB / 0.5206 GB, free: 0.5703 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.234e-06/0.4029, allocations: 0 / 0.5206 GB, free: 0.5703 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.301e-06/0.403, allocations: 4 kB / 0.5206 GB, free: 0.5664 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.228e-06/0.403, allocations: 0 / 0.5206 GB, free: 0.5664 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001554/0.4031, allocations: 192.2 kB / 0.5208 GB, free: 340 kB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.193e-06/0.4031, allocations: 0 / 0.5208 GB, free: 340 kB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.184e-05/0.4032, allocations: 15.98 kB / 0.5208 GB, free: 324 kB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.586e-06/0.4032, allocations: 0 / 0.5208 GB, free: 324 kB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.018e-05/0.4032, allocations: 3.938 kB / 0.5208 GB, free: 320 kB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.543e-06/0.4033, allocations: 0 / 0.5208 GB, free: 320 kB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.625e-06/0.4033, allocations: 4 kB / 0.5208 GB, free: 316 kB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003547/0.4036, allocations: 169.7 kB / 0.521 GB, free: 124 kB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.134e-05/0.4037, allocations: 85.14 kB / 0.5211 GB, free: 20 kB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.817e-05/0.4037, allocations: 3.984 kB / 0.5211 GB, free: 16 kB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.283e-05/0.4038, allocations: 4 kB / 0.5211 GB, free: 12 kB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.82e-05/0.4038, allocations: 3.938 kB / 0.5211 GB, free: 8 kB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.05e-06/0.4038, allocations: 8.062 kB / 0.5211 GB, free: 0 / 446.1 MB Notification: Performance of sorting global known variables: time 9.707e-05/0.4039, allocations: 119.6 kB / 0.5212 GB, free: 15.88 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4039, allocations: 0 / 0.5212 GB, free: 15.88 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.0006106/0.4046, allocations: 199.8 kB / 0.5214 GB, free: 15.69 MB / 462.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.001697/0.4063, allocations: 1.111 MB / 0.5225 GB, free: 14.55 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.0002089/0.4065, allocations: 59.91 kB / 0.5226 GB, free: 14.49 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 1.813e-06/0.4065, allocations: 0 / 0.5226 GB, free: 14.49 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 8.29e-05/0.4066, allocations: 36.25 kB / 0.5226 GB, free: 14.46 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002483/0.4068, allocations: 22.03 kB / 0.5226 GB, free: 14.44 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001824/0.4087, allocations: 1.761 MB / 0.5243 GB, free: 12.57 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002371/0.4089, allocations: 0.6885 MB / 0.525 GB, free: 11.86 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 5.983e-05/0.409, allocations: 26.34 kB / 0.525 GB, free: 11.83 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.952e-05/0.4091, allocations: 23.44 kB / 0.525 GB, free: 11.81 MB / 462.1 MB Notification: Performance of SimCode: time 2.2e-07/0.4091, allocations: 0 / 0.525 GB, free: 11.81 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02995/0.439, allocations: 7.781 MB / 0.5326 GB, free: 3.977 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.412/8.851, allocations: 15.92 kB / 0.5327 GB, free: 3.961 MB / 462.1 MB (rm -f Modelica_3.2.3_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_TX.pipe ; mkfifo Modelica_3.2.3_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_TX.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_TX.pipe >> ../files/Modelica_3.2.3_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_TX.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_TX_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Media_Examples_SolveOneNonlinearEquation_Inverse_sh_TX_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Media_Examples_SolveOneNonlinearEquation_Inverse_sh_TX.fmu > Modelica_3.2.3_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_TX.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_TX_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Media/Examples/SolveOneNonlinearEquation/Inverse_sh_TX/Inverse_sh_TX.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_TX.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches