Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_T.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00134/0.00134, allocations: 107.2 kB / 20.44 MB, free: 1.207 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002217/0.002217, allocations: 215.5 kB / 23.73 MB, free: 4.406 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.446/1.446, allocations: 230.5 MB / 257.4 MB, free: 7.789 MB / 206.1 MB " [Timeout remaining time 178] 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_T,fileNamePrefix="Modelica_trunk_Modelica_Media_Examples_SolveOneNonlinearEquation_Inverse_sh_T",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_T,fileNamePrefix="Modelica_trunk_Modelica_Media_Examples_SolveOneNonlinearEquation_Inverse_sh_T",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.00284/0.00284, allocations: 67.89 kB / 377.7 MB, free: 2.871 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2619/0.2647, allocations: 53.41 MB / 431.1 MB, free: 6.5 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_T): time 0.002685/0.2674, allocations: 1.351 MB / 432.5 MB, free: 5.145 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.4529/0.7203, allocations: 130.6 MB / 0.5499 GB, free: 1.289 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.454e-05/0.7203, allocations: 0 / 0.5499 GB, free: 1.289 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 2.619e-05/0.7203, allocations: 3.906 kB / 0.5499 GB, free: 1.289 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008259/0.7211, allocations: 244.6 kB / 0.5501 GB, free: 1.289 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008619/0.722, allocations: 405.1 kB / 0.5505 GB, free: 1.277 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 9.047e-05/0.7221, allocations: 56.98 kB / 0.5506 GB, free: 1.277 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.713e-05/0.7221, allocations: 6.734 kB / 0.5506 GB, free: 1.277 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.668e-05/0.7222, allocations: 31.5 kB / 0.5506 GB, free: 1.277 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.818e-05/0.7223, allocations: 23.31 kB / 0.5506 GB, free: 1.277 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 1.183e-05/0.7223, allocations: 2.375 kB / 0.5506 GB, free: 1.277 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008417/0.7231, allocations: 0.5679 MB / 0.5512 GB, free: 1.27 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 1.389e-05/0.7231, allocations: 9.156 kB / 0.5512 GB, free: 1.27 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 2.724e-05/0.7232, allocations: 18.28 kB / 0.5512 GB, free: 1.27 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005795/0.7237, allocations: 483.5 kB / 0.5517 GB, free: 1.246 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.136e-06/0.7237, allocations: 0 / 0.5517 GB, free: 1.246 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.513e-06/0.7237, allocations: 0.875 kB / 0.5517 GB, free: 1.246 MB / 446.1 MB Notification: Performance of Transformations before backend: time 4.849e-06/0.7237, allocations: 1.094 kB / 0.5517 GB, free: 1.246 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.0005378/0.7243, allocations: 363.4 kB / 0.552 GB, free: 16.93 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.314e-05/0.7243, allocations: 11.48 kB / 0.552 GB, free: 16.93 MB / 462.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.188e-05/0.7244, allocations: 31.69 kB / 0.5521 GB, free: 16.89 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001189/0.7255, allocations: 108 kB / 0.5522 GB, free: 16.89 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002498/0.7258, allocations: 171.4 kB / 0.5523 GB, free: 16.75 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.644e-05/0.7258, allocations: 0.875 kB / 0.5523 GB, free: 16.75 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.786e-05/0.7258, allocations: 2.312 kB / 0.5523 GB, free: 16.75 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001968/0.726, allocations: 96.11 kB / 0.5524 GB, free: 16.71 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.715e-06/0.726, allocations: 0 / 0.5524 GB, free: 16.71 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.121e-05/0.7261, allocations: 4.594 kB / 0.5524 GB, free: 16.71 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.089e-06/0.7261, allocations: 6.609 kB / 0.5524 GB, free: 16.7 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001492/0.7262, allocations: 52.11 kB / 0.5525 GB, free: 16.7 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002194/0.7264, allocations: 170.8 kB / 0.5527 GB, free: 16.54 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004175/0.7269, allocations: 119.8 kB / 0.5528 GB, free: 16.49 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.749e-05/0.7269, allocations: 38.27 kB / 0.5528 GB, free: 16.47 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002124/0.7272, allocations: 97.56 kB / 0.5529 GB, free: 16.47 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.891e-05/0.7272, allocations: 35.12 kB / 0.5529 GB, free: 16.43 MB / 462.1 MB Notification: Performance of pre-optimization done (n=6): time 1.302e-06/0.7272, allocations: 0 / 0.5529 GB, free: 16.43 MB / 462.1 MB Notification: Performance of matching and sorting (n=6): time 0.0004437/0.7276, allocations: 135.8 kB / 0.5531 GB, free: 16.39 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.931e-05/0.7277, allocations: 80.39 kB / 0.5531 GB, free: 16.3 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001967/0.7279, allocations: 154.1 kB / 0.5533 GB, free: 16.2 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 3.095e-05/0.7279, allocations: 29.02 kB / 0.5533 GB, free: 16.17 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.127e-05/0.728, allocations: 82.64 kB / 0.5534 GB, free: 16.09 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.272e-05/0.728, allocations: 26.58 kB / 0.5534 GB, free: 16.07 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.575e-05/0.728, allocations: 32.64 kB / 0.5534 GB, free: 16.06 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001469/0.7282, allocations: 321.7 kB / 0.5538 GB, free: 15.74 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.244e-05/0.7283, allocations: 26.8 kB / 0.5538 GB, free: 15.74 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.455e-05/0.7284, allocations: 49.11 kB / 0.5538 GB, free: 15.71 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001935/0.7286, allocations: 86.58 kB / 0.5539 GB, free: 15.68 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.885e-06/0.7286, allocations: 0.9375 kB / 0.5539 GB, free: 15.68 MB / 462.1 MB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0002997/0.7289, allocations: 126.2 kB / 0.554 GB, free: 15.64 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.239e-05/0.7289, allocations: 5.531 kB / 0.554 GB, free: 15.64 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.508e-06/0.7289, allocations: 0.9688 kB / 0.554 GB, free: 15.64 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.4e-05/0.7289, allocations: 3.344 kB / 0.554 GB, free: 15.64 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001242/0.729, allocations: 31.06 kB / 0.5541 GB, free: 15.64 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.821e-06/0.729, allocations: 2.625 kB / 0.5541 GB, free: 15.64 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001644/0.7292, allocations: 3.625 kB / 0.5541 GB, free: 15.64 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.864e-05/0.7292, allocations: 8.188 kB / 0.5541 GB, free: 15.64 MB / 462.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 9.966e-05/0.7293, allocations: 120.5 kB / 0.5542 GB, free: 15.53 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.243e-05/0.7294, allocations: 6.578 kB / 0.5542 GB, free: 15.52 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005432/0.7299, allocations: 252.4 kB / 0.5544 GB, free: 15.48 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.891e-06/0.7299, allocations: 8.828 kB / 0.5545 GB, free: 15.47 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.807e-06/0.7299, allocations: 0.6562 kB / 0.5545 GB, free: 15.47 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.118e-06/0.7299, allocations: 3.719 kB / 0.5545 GB, free: 15.47 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001884/0.7301, allocations: 190.2 kB / 0.5546 GB, free: 15.3 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.736e-06/0.7301, allocations: 0 / 0.5546 GB, free: 15.3 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001601/0.7303, allocations: 20.42 kB / 0.5547 GB, free: 15.3 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.974e-06/0.7303, allocations: 0.8125 kB / 0.5547 GB, free: 15.3 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.476e-05/0.7303, allocations: 13.17 kB / 0.5547 GB, free: 15.3 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.314e-06/0.7303, allocations: 4.031 kB / 0.5547 GB, free: 15.3 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.974e-06/0.7303, allocations: 1.094 kB / 0.5547 GB, free: 15.3 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003758/0.7307, allocations: 176.8 kB / 0.5548 GB, free: 15.23 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.069e-05/0.7307, allocations: 18.66 kB / 0.5549 GB, free: 15.22 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.305e-05/0.7307, allocations: 0.8438 kB / 0.5549 GB, free: 15.22 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000158/0.7309, allocations: 7.219 kB / 0.5549 GB, free: 15.22 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.986e-05/0.7309, allocations: 10.86 kB / 0.5549 GB, free: 15.22 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.248e-06/0.731, allocations: 4.219 kB / 0.5549 GB, free: 15.22 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.0001569/0.7311, allocations: 131.2 kB / 0.555 GB, free: 15.15 MB / 462.1 MB Notification: Performance of sort global known variables: time 1e-07/0.7311, allocations: 1.031 kB / 0.555 GB, free: 15.15 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.0004607/0.7316, allocations: 128.4 kB / 0.5551 GB, free: 15.12 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 (8): * Single equations (assignments): 7 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * 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.001166/0.7327, allocations: 0.9203 MB / 0.556 GB, free: 14.48 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.0002466/0.733, allocations: 77.72 kB / 0.5561 GB, free: 14.48 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 1.834e-06/0.733, allocations: 1.094 kB / 0.5561 GB, free: 14.48 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001037/0.7331, allocations: 39.89 kB / 0.5561 GB, free: 14.48 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002076/0.7333, allocations: 9.375 kB / 0.5562 GB, free: 14.48 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002353/0.7356, allocations: 1.794 MB / 0.5579 GB, free: 13.24 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.497e-05/0.7357, allocations: 81.98 kB / 0.558 GB, free: 13.17 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.0004173/0.7361, allocations: 436.2 kB / 0.5584 GB, free: 13.13 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001216/0.7362, allocations: 45.62 kB / 0.5584 GB, free: 13.12 MB / 462.1 MB Notification: Performance of SimCode: time 4.7e-07/0.7362, allocations: 4 kB / 0.5584 GB, free: 13.12 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03464/0.7709, allocations: 7.391 MB / 0.5657 GB, free: 11.63 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.39/12.16, allocations: 10.12 kB / 0.5657 GB, free: 11.63 MB / 462.1 MB " [Timeout remaining time 648] (rm -f Modelica_trunk_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_T.pipe ; mkfifo Modelica_trunk_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_T.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_T.pipe >> ../files/Modelica_trunk_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_T.sim & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_T_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.00019992 Modelica_trunk_Modelica_Media_Examples_SolveOneNonlinearEquation_Inverse_sh_T.fmu > Modelica_trunk_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_T.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_T_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Media/Examples/SolveOneNonlinearEquation/Inverse_sh_T/Inverse_sh_T.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_T.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 14.68356909789145]