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.001531/0.001531, allocations: 117.6 kB / 17.78 MB, free: 5.234 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001639/0.001639, allocations: 204.7 kB / 18.74 MB, free: 4.289 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.425/1.425, allocations: 227.4 MB / 246.9 MB, free: 10.44 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001771/0.001771, allocations: 63.89 kB / 358.2 MB, free: 13.43 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2266/0.2284, allocations: 50.54 MB / 408.8 MB, free: 1.562 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_TX): time 0.002313/0.2307, allocations: 1.385 MB / 410.1 MB, free: 180 kB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.3868/0.6176, allocations: 151.9 MB / 0.5489 GB, free: 0.957 MB / 462.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.11e-05/0.6177, allocations: 0 / 0.5489 GB, free: 0.957 MB / 462.1 MB Notification: Performance of NFTyping.typeComponents: time 4.139e-05/0.6177, allocations: 6.438 kB / 0.5489 GB, free: 0.957 MB / 462.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001012/0.6188, allocations: 380.4 kB / 0.5492 GB, free: 0.9453 MB / 462.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000975/0.6198, allocations: 0.4984 MB / 0.5497 GB, free: 0.9258 MB / 462.1 MB Notification: Performance of NFFlatten.flatten: time 9.43e-05/0.6199, allocations: 72.12 kB / 0.5498 GB, free: 0.9258 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.506e-05/0.6199, allocations: 8.328 kB / 0.5498 GB, free: 0.9258 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.731e-05/0.62, allocations: 35.38 kB / 0.5498 GB, free: 0.9219 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.723e-05/0.6201, allocations: 38.36 kB / 0.5499 GB, free: 0.9219 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 1.227e-05/0.6201, allocations: 2.5 kB / 0.5499 GB, free: 0.9219 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001493/0.6216, allocations: 1.086 MB / 0.5509 GB, free: 0.9102 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 3.401e-05/0.6216, allocations: 16.95 kB / 0.551 GB, free: 0.9102 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 3.473e-05/0.6217, allocations: 26.97 kB / 0.551 GB, free: 0.9102 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008342/0.6225, allocations: 0.6983 MB / 0.5517 GB, free: 0.875 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.206e-06/0.6225, allocations: 0.7656 kB / 0.5517 GB, free: 0.875 MB / 462.1 MB Notification: Performance of FrontEnd: time 1.573e-06/0.6225, allocations: 0 / 0.5517 GB, free: 0.875 MB / 462.1 MB Notification: Performance of Transformations before backend: time 4.989e-06/0.6225, allocations: 4 kB / 0.5517 GB, free: 0.8711 MB / 462.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.000658/0.6232, allocations: 459.5 kB / 0.5521 GB, free: 16.45 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.583e-05/0.6232, allocations: 10.34 kB / 0.5521 GB, free: 16.45 MB / 478.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.084e-05/0.6233, allocations: 37.45 kB / 0.5522 GB, free: 16.41 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004303/0.6237, allocations: 69.16 kB / 0.5522 GB, free: 16.41 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000197/0.6239, allocations: 200 kB / 0.5524 GB, free: 16.21 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.451e-05/0.6239, allocations: 3.938 kB / 0.5524 GB, free: 16.2 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.989e-05/0.624, allocations: 2.375 kB / 0.5524 GB, free: 16.2 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001451/0.6241, allocations: 75.81 kB / 0.5525 GB, free: 16.15 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.396e-06/0.6241, allocations: 7.125 kB / 0.5525 GB, free: 16.15 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.125e-06/0.6241, allocations: 0 / 0.5525 GB, free: 16.15 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.929e-06/0.6242, allocations: 5.078 kB / 0.5525 GB, free: 16.15 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.989e-05/0.6242, allocations: 43.56 kB / 0.5525 GB, free: 16.15 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001824/0.6244, allocations: 193 kB / 0.5527 GB, free: 15.95 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002603/0.6247, allocations: 120.4 kB / 0.5528 GB, free: 15.89 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.194e-05/0.6248, allocations: 31.41 kB / 0.5529 GB, free: 15.88 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005036/0.6253, allocations: 137.7 kB / 0.553 GB, free: 15.78 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.574e-05/0.6253, allocations: 39.16 kB / 0.553 GB, free: 15.74 MB / 478.1 MB Notification: Performance of pre-optimization done (n=6): time 1.213e-06/0.6253, allocations: 0 / 0.553 GB, free: 15.74 MB / 478.1 MB Notification: Performance of matching and sorting (n=6): time 0.000323/0.6257, allocations: 117.6 kB / 0.5531 GB, free: 15.71 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.058e-05/0.6257, allocations: 84.17 kB / 0.5532 GB, free: 15.61 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001063/0.6258, allocations: 140.4 kB / 0.5534 GB, free: 15.51 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 1.829e-05/0.6259, allocations: 25.7 kB / 0.5534 GB, free: 15.48 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.923e-05/0.6259, allocations: 85.83 kB / 0.5535 GB, free: 15.4 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.924e-05/0.626, allocations: 27.84 kB / 0.5535 GB, free: 15.38 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.056e-05/0.626, allocations: 20.44 kB / 0.5535 GB, free: 15.37 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001343/0.6261, allocations: 318.9 kB / 0.5538 GB, free: 15.05 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.256e-05/0.6262, allocations: 24.44 kB / 0.5538 GB, free: 15.05 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.226e-05/0.6263, allocations: 57.66 kB / 0.5539 GB, free: 15.02 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001199/0.6264, allocations: 85.45 kB / 0.554 GB, free: 14.98 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.814e-06/0.6264, allocations: 0 / 0.554 GB, free: 14.98 MB / 478.1 MB Notification: Performance of matching and sorting (n=8) (initialization): time 0.000222/0.6266, allocations: 115.4 kB / 0.5541 GB, free: 14.94 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.142e-05/0.6267, allocations: 5.312 kB / 0.5541 GB, free: 14.94 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.158e-06/0.6267, allocations: 0 / 0.5541 GB, free: 14.94 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.342e-05/0.6267, allocations: 1.625 kB / 0.5541 GB, free: 14.94 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.439e-05/0.6268, allocations: 17.33 kB / 0.5541 GB, free: 14.94 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.93e-06/0.6268, allocations: 0 / 0.5541 GB, free: 14.94 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.92e-05/0.6268, allocations: 11.58 kB / 0.5541 GB, free: 14.94 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.893e-06/0.6268, allocations: 6.25 kB / 0.5541 GB, free: 14.94 MB / 478.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.365e-05/0.6269, allocations: 124 kB / 0.5542 GB, free: 14.82 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.234e-05/0.627, allocations: 8.75 kB / 0.5543 GB, free: 14.81 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002206/0.6272, allocations: 119.8 kB / 0.5544 GB, free: 14.76 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.875e-06/0.6272, allocations: 3.047 kB / 0.5544 GB, free: 14.76 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.637e-06/0.6272, allocations: 0 / 0.5544 GB, free: 14.76 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.725e-06/0.6272, allocations: 1.938 kB / 0.5544 GB, free: 14.76 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001391/0.6274, allocations: 185.7 kB / 0.5546 GB, free: 14.57 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.112e-06/0.6274, allocations: 0 / 0.5546 GB, free: 14.57 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.502e-05/0.6275, allocations: 11.56 kB / 0.5546 GB, free: 14.57 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.736e-06/0.6275, allocations: 4.141 kB / 0.5546 GB, free: 14.57 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.555e-06/0.6275, allocations: 4 kB / 0.5546 GB, free: 14.57 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.323e-06/0.6275, allocations: 0 / 0.5546 GB, free: 14.57 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.41e-07/0.6275, allocations: 2.719 kB / 0.5546 GB, free: 14.57 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002879/0.6278, allocations: 163.9 kB / 0.5547 GB, free: 14.49 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.247e-05/0.6279, allocations: 94.56 kB / 0.5548 GB, free: 14.39 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.72e-05/0.6279, allocations: 0 / 0.5548 GB, free: 14.39 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.451e-05/0.628, allocations: 5.406 kB / 0.5548 GB, free: 14.39 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.424e-05/0.628, allocations: 11.44 kB / 0.5548 GB, free: 14.39 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.759e-06/0.628, allocations: 1.938 kB / 0.5548 GB, free: 14.39 MB / 478.1 MB Notification: Performance of sorting global known variables: time 7.404e-05/0.6281, allocations: 113.1 kB / 0.5549 GB, free: 14.31 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.6281, allocations: 0 / 0.5549 GB, free: 14.31 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.0005059/0.6286, allocations: 163.2 kB / 0.5551 GB, free: 14.28 MB / 478.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.001381/0.63, allocations: 1.019 MB / 0.5561 GB, free: 13.61 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.0001859/0.6302, allocations: 62.3 kB / 0.5562 GB, free: 13.61 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 1.613e-06/0.6302, allocations: 3.094 kB / 0.5562 GB, free: 13.61 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 6.42e-05/0.6303, allocations: 33.67 kB / 0.5562 GB, free: 13.61 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002289/0.6305, allocations: 28.55 kB / 0.5562 GB, free: 13.6 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001881/0.6324, allocations: 1.741 MB / 0.5579 GB, free: 12.3 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000307/0.6327, allocations: 0.6913 MB / 0.5586 GB, free: 11.61 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 5.686e-05/0.6328, allocations: 29.44 kB / 0.5586 GB, free: 11.59 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.569e-05/0.6328, allocations: 24.41 kB / 0.5586 GB, free: 11.58 MB / 478.1 MB Notification: Performance of SimCode: time 3.21e-07/0.6329, allocations: 0 / 0.5586 GB, free: 11.58 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03049/0.6633, allocations: 6.291 MB / 0.5648 GB, free: 10.73 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.03/8.693, allocations: 11.89 kB / 0.5648 GB, free: 10.72 MB / 478.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.1.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