Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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_4_0_0_Modelica_Media_Examples_SolveOneNonlinearEquation_Inverse_sh_TX",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_TX,fileNamePrefix="Modelica_4_0_0_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.0008393/0.0008394, allocations: 89.61 kB / 16.65 MB, free: 6.59 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.0008899/0.0008898, allocations: 182.8 kB / 17.56 MB, free: 6.203 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.184/1.184, allocations: 223.3 MB / 241.6 MB, free: 108 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002811/0.0002812, allocations: 4 kB / 301.5 MB, free: 6.016 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07942/0.07972, allocations: 50.4 MB / 351.9 MB, free: 3.605 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_TX): time 0.001084/0.08082, allocations: 1.106 MB / 353 MB, free: 2.488 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.2469/0.3278, allocations: 145.2 MB / 498.3 MB, free: 3.277 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.212e-05/0.3278, allocations: 0 / 498.3 MB, free: 3.277 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 2.854e-05/0.3279, allocations: 0 / 498.3 MB, free: 3.277 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009033/0.3288, allocations: 336.2 kB / 498.6 MB, free: 2.957 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009037/0.3297, allocations: 462.7 kB / 499.1 MB, free: 2.508 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 9.885e-05/0.3298, allocations: 87.69 kB / 499.1 MB, free: 2.422 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.172e-05/0.3298, allocations: 11.97 kB / 499.2 MB, free: 2.41 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.909e-05/0.3299, allocations: 31.86 kB / 499.2 MB, free: 2.379 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.232e-05/0.33, allocations: 39.84 kB / 499.2 MB, free: 2.34 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 1.193e-05/0.33, allocations: 4 kB / 499.2 MB, free: 2.336 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001648/0.3316, allocations: 1.229 MB / 0.4887 GB, free: 1.105 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 3.088e-05/0.3317, allocations: 15.92 kB / 0.4887 GB, free: 1.09 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 4.066e-05/0.3317, allocations: 53.56 kB / 0.4888 GB, free: 1.031 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009273/0.3327, allocations: 0.7755 MB / 0.4896 GB, free: 260 kB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.164e-06/0.3327, allocations: 0 / 0.4896 GB, free: 260 kB / 398.1 MB Notification: Performance of FrontEnd: time 1.513e-06/0.3327, allocations: 0 / 0.4896 GB, free: 260 kB / 398.1 MB Notification: Performance of Transformations before backend: time 3.326e-06/0.3327, allocations: 0 / 0.4896 GB, free: 260 kB / 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.0004653/0.3332, allocations: 443.9 kB / 0.49 GB, free: 15.77 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.219e-05/0.3332, allocations: 12.03 kB / 0.49 GB, free: 15.76 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.507e-05/0.3332, allocations: 34.75 kB / 0.49 GB, free: 15.72 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004006/0.3336, allocations: 64.84 kB / 0.4901 GB, free: 15.66 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001397/0.3338, allocations: 204.1 kB / 0.4903 GB, free: 15.42 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.149e-05/0.3338, allocations: 11.88 kB / 0.4903 GB, free: 15.41 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.722e-05/0.3338, allocations: 11.91 kB / 0.4903 GB, free: 15.39 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001245/0.334, allocations: 67.39 kB / 0.4904 GB, free: 15.32 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.68e-06/0.334, allocations: 0 / 0.4904 GB, free: 15.32 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.853e-06/0.334, allocations: 0 / 0.4904 GB, free: 15.32 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.24e-06/0.334, allocations: 4 kB / 0.4904 GB, free: 15.31 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.596e-05/0.3341, allocations: 43.91 kB / 0.4904 GB, free: 15.27 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000166/0.3343, allocations: 198.5 kB / 0.4906 GB, free: 15.02 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002395/0.3345, allocations: 109.2 kB / 0.4907 GB, free: 14.9 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.744e-05/0.3346, allocations: 41.7 kB / 0.4907 GB, free: 14.85 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003982/0.335, allocations: 137 kB / 0.4909 GB, free: 14.7 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.956e-05/0.335, allocations: 34.5 kB / 0.4909 GB, free: 14.66 MB / 414.1 MB Notification: Performance of pre-optimization done (n=6): time 1.052e-06/0.335, allocations: 0 / 0.4909 GB, free: 14.66 MB / 414.1 MB Notification: Performance of matching and sorting (n=6): time 0.0002956/0.3353, allocations: 113.6 kB / 0.491 GB, free: 14.54 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.549e-05/0.3354, allocations: 85.11 kB / 0.4911 GB, free: 14.44 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001002/0.3355, allocations: 139.8 kB / 0.4912 GB, free: 14.29 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 1.322e-05/0.3355, allocations: 29.7 kB / 0.4913 GB, free: 14.26 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.135e-05/0.3356, allocations: 88.12 kB / 0.4913 GB, free: 14.17 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.302e-05/0.3356, allocations: 23.66 kB / 0.4914 GB, free: 14.14 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.053e-05/0.3356, allocations: 9.719 kB / 0.4914 GB, free: 14.13 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 9.304e-05/0.3357, allocations: 322.8 kB / 0.4917 GB, free: 13.8 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.481e-05/0.3358, allocations: 23.98 kB / 0.4917 GB, free: 13.78 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.491e-05/0.3359, allocations: 51.42 kB / 0.4918 GB, free: 13.72 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000136/0.336, allocations: 91.62 kB / 0.4918 GB, free: 13.62 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.693e-06/0.336, allocations: 0 / 0.4918 GB, free: 13.62 MB / 414.1 MB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0002103/0.3362, allocations: 113.4 kB / 0.492 GB, free: 13.5 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.109e-05/0.3362, allocations: 6.344 kB / 0.492 GB, free: 13.5 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.06e-06/0.3363, allocations: 4 kB / 0.492 GB, free: 13.49 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.955e-06/0.3363, allocations: 0 / 0.492 GB, free: 13.49 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.884e-05/0.3363, allocations: 12.88 kB / 0.492 GB, free: 13.48 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.522e-06/0.3363, allocations: 7.984 kB / 0.492 GB, free: 13.47 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.245e-05/0.3364, allocations: 3.906 kB / 0.492 GB, free: 13.47 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.083e-06/0.3364, allocations: 4 kB / 0.492 GB, free: 13.46 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 7.021e-05/0.3365, allocations: 121.8 kB / 0.4921 GB, free: 13.34 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.313e-05/0.3365, allocations: 7.938 kB / 0.4921 GB, free: 13.33 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002071/0.3367, allocations: 113.9 kB / 0.4922 GB, free: 13.21 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.843e-06/0.3367, allocations: 0 / 0.4922 GB, free: 13.21 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.03e-06/0.3368, allocations: 0.625 kB / 0.4922 GB, free: 13.21 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.515e-06/0.3368, allocations: 3.938 kB / 0.4922 GB, free: 13.21 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001212/0.3369, allocations: 193.4 kB / 0.4924 GB, free: 12.97 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.72e-07/0.3369, allocations: 4 kB / 0.4924 GB, free: 12.96 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.862e-05/0.337, allocations: 15.92 kB / 0.4924 GB, free: 12.95 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.663e-06/0.337, allocations: 7.938 kB / 0.4924 GB, free: 12.95 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.051e-05/0.337, allocations: 4 kB / 0.4924 GB, free: 12.94 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.122e-06/0.337, allocations: 3.938 kB / 0.4924 GB, free: 12.94 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.31e-07/0.337, allocations: 0 / 0.4924 GB, free: 12.94 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002777/0.3373, allocations: 161.8 kB / 0.4926 GB, free: 12.76 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.887e-05/0.3374, allocations: 93.11 kB / 0.4927 GB, free: 12.65 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.464e-05/0.3374, allocations: 8 kB / 0.4927 GB, free: 12.64 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.788e-05/0.3374, allocations: 0 / 0.4927 GB, free: 12.64 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.601e-05/0.3375, allocations: 7.984 kB / 0.4927 GB, free: 12.63 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.162e-06/0.3375, allocations: 8 kB / 0.4927 GB, free: 12.62 MB / 414.1 MB Notification: Performance of sorting global known variables: time 6.115e-05/0.3375, allocations: 107.3 kB / 0.4928 GB, free: 12.52 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3375, allocations: 0 / 0.4928 GB, free: 12.52 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0003912/0.3379, allocations: 167.8 kB / 0.493 GB, free: 12.36 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 (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.001241/0.3392, allocations: 1.003 MB / 0.494 GB, free: 11.33 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0001629/0.3393, allocations: 63.89 kB / 0.494 GB, free: 11.27 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.533e-06/0.3394, allocations: 7.938 kB / 0.494 GB, free: 11.26 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 6.687e-05/0.3394, allocations: 32.05 kB / 0.4941 GB, free: 11.23 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000211/0.3397, allocations: 23.98 kB / 0.4941 GB, free: 11.2 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001591/0.3413, allocations: 1.792 MB / 0.4958 GB, free: 9.305 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001954/0.3415, allocations: 0.6888 MB / 0.4965 GB, free: 8.59 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 5.166e-05/0.3415, allocations: 19.97 kB / 0.4965 GB, free: 8.57 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.648e-05/0.3416, allocations: 19.44 kB / 0.4965 GB, free: 8.551 MB / 414.1 MB Notification: Performance of SimCode: time 3.1e-07/0.3416, allocations: 0 / 0.4965 GB, free: 8.551 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6879/1.029, allocations: 5.875 MB / 0.5023 GB, free: 2.828 MB / 414.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003613/1.03, allocations: 262.4 kB / 0.5025 GB, free: 2.512 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.81/2.84, allocations: 4 kB / 0.5025 GB, free: 2.508 MB / 414.1 MB (rm -f Modelica_4.0.0_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_TX.pipe ; mkfifo Modelica_4.0.0_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_TX.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_TX.pipe >> ../files/Modelica_4.0.0_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_TX.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_TX_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Media_Examples_SolveOneNonlinearEquation_Inverse_sh_TX_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Media_Examples_SolveOneNonlinearEquation_Inverse_sh_TX.fmu > Modelica_4.0.0_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_TX.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_TX.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches