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.001057/0.001057, allocations: 121.2 kB / 17.79 MB, free: 5.273 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001153/0.001153, allocations: 204.6 kB / 18.74 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.288/1.288, allocations: 227.4 MB / 246.9 MB, free: 10.46 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001127/0.001127, allocations: 59.91 kB / 358.2 MB, free: 13.45 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2321/0.2332, allocations: 50.54 MB / 408.7 MB, free: 1.555 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_TX): time 0.002383/0.2356, allocations: 1.393 MB / 410.1 MB, free: 164 kB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.3777/0.6133, allocations: 151.9 MB / 0.5489 GB, free: 0.9336 MB / 462.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.766e-05/0.6134, allocations: 0 / 0.5489 GB, free: 0.9336 MB / 462.1 MB Notification: Performance of NFTyping.typeComponents: time 3.689e-05/0.6135, allocations: 5.156 kB / 0.5489 GB, free: 0.9336 MB / 462.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001005/0.6145, allocations: 389.2 kB / 0.5492 GB, free: 0.9258 MB / 462.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009337/0.6155, allocations: 0.5022 MB / 0.5497 GB, free: 0.9062 MB / 462.1 MB Notification: Performance of NFFlatten.flatten: time 9.028e-05/0.6156, allocations: 73.7 kB / 0.5498 GB, free: 0.9062 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.154e-05/0.6156, allocations: 5 kB / 0.5498 GB, free: 0.9062 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.568e-05/0.6156, allocations: 32.16 kB / 0.5498 GB, free: 0.9062 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.965e-05/0.6157, allocations: 39.47 kB / 0.5499 GB, free: 0.9062 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 1.187e-05/0.6157, allocations: 2.688 kB / 0.5499 GB, free: 0.9062 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001446/0.6172, allocations: 1.083 MB / 0.5509 GB, free: 0.8945 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 3.142e-05/0.6172, allocations: 19.77 kB / 0.551 GB, free: 0.8906 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 3.613e-05/0.6173, allocations: 27.94 kB / 0.551 GB, free: 0.8906 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008176/0.6181, allocations: 0.7005 MB / 0.5517 GB, free: 0.8555 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.547e-06/0.6181, allocations: 0 / 0.5517 GB, free: 0.8555 MB / 462.1 MB Notification: Performance of FrontEnd: time 1.853e-06/0.6181, allocations: 0 / 0.5517 GB, free: 0.8555 MB / 462.1 MB Notification: Performance of Transformations before backend: time 4.899e-06/0.6181, allocations: 0 / 0.5517 GB, free: 0.8555 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.0005963/0.6187, allocations: 456.8 kB / 0.5521 GB, free: 16.44 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.533e-05/0.6188, allocations: 12.08 kB / 0.5521 GB, free: 16.44 MB / 478.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.153e-05/0.6188, allocations: 37.38 kB / 0.5522 GB, free: 16.4 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000449/0.6193, allocations: 65.77 kB / 0.5522 GB, free: 16.39 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001594/0.6195, allocations: 207.8 kB / 0.5524 GB, free: 16.19 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.337e-05/0.6195, allocations: 6.719 kB / 0.5524 GB, free: 16.18 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.673e-05/0.6195, allocations: 0 / 0.5524 GB, free: 16.18 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001529/0.6197, allocations: 73.91 kB / 0.5525 GB, free: 16.14 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.793e-06/0.6197, allocations: 3 kB / 0.5525 GB, free: 16.14 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.907e-06/0.6197, allocations: 0 / 0.5525 GB, free: 16.14 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.88e-06/0.6197, allocations: 3.656 kB / 0.5525 GB, free: 16.14 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.206e-05/0.6198, allocations: 47.61 kB / 0.5525 GB, free: 16.14 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001851/0.62, allocations: 194 kB / 0.5527 GB, free: 15.93 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002668/0.6203, allocations: 110 kB / 0.5528 GB, free: 15.89 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.613e-05/0.6203, allocations: 37.7 kB / 0.5529 GB, free: 15.87 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004846/0.6208, allocations: 139.1 kB / 0.553 GB, free: 15.77 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.95e-05/0.6209, allocations: 30.56 kB / 0.553 GB, free: 15.73 MB / 478.1 MB Notification: Performance of pre-optimization done (n=6): time 1.222e-06/0.6209, allocations: 4 kB / 0.553 GB, free: 15.73 MB / 478.1 MB Notification: Performance of matching and sorting (n=6): time 0.0003274/0.6212, allocations: 126.2 kB / 0.5532 GB, free: 15.69 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.832e-05/0.6213, allocations: 80.61 kB / 0.5532 GB, free: 15.6 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.736e-05/0.6214, allocations: 140.4 kB / 0.5534 GB, free: 15.5 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 1.318e-05/0.6214, allocations: 25.7 kB / 0.5534 GB, free: 15.47 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.052e-05/0.6214, allocations: 89.02 kB / 0.5535 GB, free: 15.39 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.438e-05/0.6215, allocations: 22.27 kB / 0.5535 GB, free: 15.37 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.04e-05/0.6215, allocations: 25.98 kB / 0.5535 GB, free: 15.35 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 9.517e-05/0.6216, allocations: 321.3 kB / 0.5538 GB, free: 15.04 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.258e-05/0.6217, allocations: 24.67 kB / 0.5539 GB, free: 15.04 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.061e-05/0.6217, allocations: 49.61 kB / 0.5539 GB, free: 15.01 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001245/0.6219, allocations: 84.39 kB / 0.554 GB, free: 14.97 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.784e-06/0.6219, allocations: 0.7656 kB / 0.554 GB, free: 14.97 MB / 478.1 MB Notification: Performance of matching and sorting (n=8) (initialization): time 0.000224/0.6221, allocations: 113.9 kB / 0.5541 GB, free: 14.93 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.158e-05/0.6221, allocations: 5.062 kB / 0.5541 GB, free: 14.93 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.178e-06/0.6221, allocations: 0 / 0.5541 GB, free: 14.93 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.241e-05/0.6221, allocations: 3.031 kB / 0.5541 GB, free: 14.93 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.215e-05/0.6222, allocations: 19.14 kB / 0.5541 GB, free: 14.93 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.34e-06/0.6222, allocations: 4.062 kB / 0.5541 GB, free: 14.93 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.559e-05/0.6223, allocations: 7.531 kB / 0.5541 GB, free: 14.93 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.963e-06/0.6223, allocations: 2.5 kB / 0.5541 GB, free: 14.93 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 7.713e-05/0.6224, allocations: 125.3 kB / 0.5542 GB, free: 14.8 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.203e-05/0.6224, allocations: 2.438 kB / 0.5542 GB, free: 14.8 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002181/0.6226, allocations: 123.6 kB / 0.5544 GB, free: 14.75 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.715e-06/0.6227, allocations: 0 / 0.5544 GB, free: 14.75 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.278e-06/0.6227, allocations: 6.5 kB / 0.5544 GB, free: 14.75 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.685e-06/0.6227, allocations: 4 kB / 0.5544 GB, free: 14.75 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001108/0.6228, allocations: 185.4 kB / 0.5546 GB, free: 14.56 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.282e-06/0.6228, allocations: 1.875 kB / 0.5546 GB, free: 14.56 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.354e-05/0.6229, allocations: 10.72 kB / 0.5546 GB, free: 14.56 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.954e-06/0.6229, allocations: 3.938 kB / 0.5546 GB, free: 14.55 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.986e-06/0.6229, allocations: 3.875 kB / 0.5546 GB, free: 14.55 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.906e-06/0.6229, allocations: 3.656 kB / 0.5546 GB, free: 14.55 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.12e-07/0.6229, allocations: 0 / 0.5546 GB, free: 14.55 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002929/0.6232, allocations: 175.4 kB / 0.5547 GB, free: 14.47 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.175e-05/0.6233, allocations: 86.84 kB / 0.5548 GB, free: 14.38 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.909e-05/0.6233, allocations: 4.062 kB / 0.5548 GB, free: 14.37 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.348e-05/0.6234, allocations: 2.938 kB / 0.5548 GB, free: 14.37 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.525e-05/0.6234, allocations: 8.219 kB / 0.5548 GB, free: 14.37 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.049e-06/0.6234, allocations: 2.469 kB / 0.5548 GB, free: 14.37 MB / 478.1 MB Notification: Performance of sorting global known variables: time 6.959e-05/0.6235, allocations: 113.8 kB / 0.555 GB, free: 14.3 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.6235, allocations: 4.062 kB / 0.555 GB, free: 14.29 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.0004724/0.624, allocations: 168.2 kB / 0.5551 GB, free: 14.26 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.001319/0.6253, allocations: 1.018 MB / 0.5561 GB, free: 13.59 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.0001788/0.6255, allocations: 66.81 kB / 0.5562 GB, free: 13.59 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 1.684e-06/0.6255, allocations: 0 / 0.5562 GB, free: 13.59 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 6.644e-05/0.6256, allocations: 36.47 kB / 0.5562 GB, free: 13.59 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002274/0.6258, allocations: 19.75 kB / 0.5562 GB, free: 13.59 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001678/0.6275, allocations: 1.742 MB / 0.5579 GB, free: 12.29 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002283/0.6277, allocations: 0.6882 MB / 0.5586 GB, free: 11.6 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 5.735e-05/0.6278, allocations: 29.33 kB / 0.5586 GB, free: 11.58 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.9e-05/0.6279, allocations: 15.88 kB / 0.5586 GB, free: 11.57 MB / 478.1 MB Notification: Performance of SimCode: time 2.4e-07/0.6279, allocations: 0 / 0.5586 GB, free: 11.57 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02187/0.6497, allocations: 6.305 MB / 0.5648 GB, free: 10.71 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.513/8.163, allocations: 8.703 kB / 0.5648 GB, free: 10.71 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.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