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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001196/0.001196, allocations: 101.5 kB / 21.21 MB, free: 0.6289 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00126/0.00126, allocations: 188.3 kB / 24.49 MB, free: 3.941 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.352/1.352, allocations: 225.7 MB / 253.3 MB, free: 12.82 MB / 206.1 MB " [Timeout remaining time 178] 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="cs",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="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001417/0.001417, allocations: 51.91 kB / 371.2 MB, free: 9.684 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.214/0.2154, allocations: 52.18 MB / 423.3 MB, free: 14.39 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_TX): time 0.002398/0.2178, allocations: 1.351 MB / 424.7 MB, free: 13.03 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.3566/0.5744, allocations: 128 MB / 0.5397 GB, free: 1.414 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.945e-05/0.5744, allocations: 2.031 kB / 0.5397 GB, free: 1.414 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 3.738e-05/0.5745, allocations: 5.859 kB / 0.5397 GB, free: 1.414 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001075/0.5755, allocations: 381.9 kB / 0.5401 GB, free: 1.406 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001058/0.5766, allocations: 0.5154 MB / 0.5406 GB, free: 1.391 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.000102/0.5767, allocations: 80.14 kB / 0.5407 GB, free: 1.391 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.348e-05/0.5767, allocations: 2.953 kB / 0.5407 GB, free: 1.391 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.267e-05/0.5768, allocations: 35.28 kB / 0.5407 GB, free: 1.391 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.291e-05/0.5769, allocations: 32.92 kB / 0.5407 GB, free: 1.391 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 1.464e-05/0.5769, allocations: 3.75 kB / 0.5407 GB, free: 1.391 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001411/0.5783, allocations: 0.9483 MB / 0.5417 GB, free: 1.379 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 4.093e-05/0.5783, allocations: 18.89 kB / 0.5417 GB, free: 1.379 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 3.831e-05/0.5784, allocations: 22.83 kB / 0.5417 GB, free: 1.379 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000873/0.5792, allocations: 0.6595 MB / 0.5423 GB, free: 1.348 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.447e-06/0.5792, allocations: 3.094 kB / 0.5423 GB, free: 1.348 MB / 446.1 MB Notification: Performance of FrontEnd: time 9.82e-07/0.5792, allocations: 0 / 0.5423 GB, free: 1.348 MB / 446.1 MB Notification: Performance of Transformations before backend: time 5.049e-06/0.5792, allocations: 0.9688 kB / 0.5423 GB, free: 1.348 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.0006157/0.5799, allocations: 391.1 kB / 0.5427 GB, free: 17.02 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.385e-05/0.5799, allocations: 10.97 kB / 0.5427 GB, free: 17.02 MB / 462.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.884e-05/0.5799, allocations: 3.031 kB / 0.5427 GB, free: 17.02 MB / 462.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.771e-05/0.5799, allocations: 36.22 kB / 0.5428 GB, free: 16.98 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004365/0.5804, allocations: 68.09 kB / 0.5428 GB, free: 16.97 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001452/0.5805, allocations: 145.3 kB / 0.543 GB, free: 16.84 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.271e-05/0.5805, allocations: 1.625 kB / 0.543 GB, free: 16.84 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.654e-05/0.5806, allocations: 6.344 kB / 0.543 GB, free: 16.84 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001437/0.5807, allocations: 75.06 kB / 0.543 GB, free: 16.79 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.154e-06/0.5807, allocations: 1.062 kB / 0.543 GB, free: 16.79 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.276e-06/0.5807, allocations: 3.625 kB / 0.543 GB, free: 16.79 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.977e-06/0.5807, allocations: 3 kB / 0.543 GB, free: 16.79 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.505e-05/0.5808, allocations: 37.94 kB / 0.5431 GB, free: 16.79 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000167/0.581, allocations: 168.9 kB / 0.5432 GB, free: 16.62 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002464/0.5812, allocations: 113.9 kB / 0.5434 GB, free: 16.57 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.064e-05/0.5813, allocations: 40.09 kB / 0.5434 GB, free: 16.56 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004716/0.5817, allocations: 62.38 kB / 0.5435 GB, free: 16.55 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.653e-05/0.5818, allocations: 30.56 kB / 0.5435 GB, free: 16.52 MB / 462.1 MB Notification: Performance of pre-optimization done (n=6): time 1.192e-06/0.5818, allocations: 2.656 kB / 0.5435 GB, free: 16.52 MB / 462.1 MB Notification: Performance of matching and sorting (n=6): time 0.000304/0.5821, allocations: 123 kB / 0.5436 GB, free: 16.48 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.083e-05/0.5822, allocations: 78.17 kB / 0.5437 GB, free: 16.39 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.908e-05/0.5823, allocations: 140.5 kB / 0.5438 GB, free: 16.29 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 2.563e-05/0.5823, allocations: 25.7 kB / 0.5438 GB, free: 16.26 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.855e-05/0.5823, allocations: 87.23 kB / 0.5439 GB, free: 16.18 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.686e-05/0.5824, allocations: 27.3 kB / 0.5439 GB, free: 16.16 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.119e-05/0.5824, allocations: 26.05 kB / 0.544 GB, free: 16.14 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001264/0.5825, allocations: 322.3 kB / 0.5443 GB, free: 15.83 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.933e-05/0.5826, allocations: 24.75 kB / 0.5443 GB, free: 15.83 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.192e-05/0.5826, allocations: 50.73 kB / 0.5443 GB, free: 15.8 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001146/0.5828, allocations: 80.8 kB / 0.5444 GB, free: 15.77 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.764e-06/0.5828, allocations: 0 / 0.5444 GB, free: 15.77 MB / 462.1 MB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0002152/0.583, allocations: 110.3 kB / 0.5445 GB, free: 15.73 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.153e-05/0.583, allocations: 6.562 kB / 0.5445 GB, free: 15.73 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.538e-06/0.583, allocations: 2.938 kB / 0.5445 GB, free: 15.73 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.225e-05/0.583, allocations: 0.9062 kB / 0.5445 GB, free: 15.73 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.3e-05/0.5831, allocations: 19.27 kB / 0.5446 GB, free: 15.73 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.071e-06/0.5831, allocations: 4.5 kB / 0.5446 GB, free: 15.73 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.554e-05/0.5831, allocations: 2.469 kB / 0.5446 GB, free: 15.73 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.264e-06/0.5831, allocations: 5.391 kB / 0.5446 GB, free: 15.73 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 8.483e-05/0.5832, allocations: 124.4 kB / 0.5447 GB, free: 15.61 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.992e-05/0.5833, allocations: 7.828 kB / 0.5447 GB, free: 15.61 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002128/0.5835, allocations: 112.2 kB / 0.5448 GB, free: 15.56 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.685e-06/0.5835, allocations: 4.062 kB / 0.5448 GB, free: 15.56 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.947e-06/0.5835, allocations: 0 / 0.5448 GB, free: 15.56 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.515e-06/0.5835, allocations: 0 / 0.5448 GB, free: 15.56 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001143/0.5836, allocations: 156.2 kB / 0.545 GB, free: 15.41 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.052e-06/0.5836, allocations: 0 / 0.545 GB, free: 15.41 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.472e-05/0.5837, allocations: 17.88 kB / 0.545 GB, free: 15.4 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.676e-06/0.5837, allocations: 4.75 kB / 0.545 GB, free: 15.4 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.608e-06/0.5837, allocations: 4.219 kB / 0.545 GB, free: 15.4 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.222e-06/0.5837, allocations: 4 kB / 0.545 GB, free: 15.4 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.61e-07/0.5837, allocations: 0 / 0.545 GB, free: 15.4 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002745/0.584, allocations: 167.3 kB / 0.5451 GB, free: 15.32 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.109e-05/0.584, allocations: 19.12 kB / 0.5452 GB, free: 15.31 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.828e-05/0.584, allocations: 4.75 kB / 0.5452 GB, free: 15.31 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.247e-05/0.584, allocations: 3.031 kB / 0.5452 GB, free: 15.31 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.031e-05/0.5841, allocations: 10.06 kB / 0.5452 GB, free: 15.31 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.12e-06/0.5841, allocations: 3.375 kB / 0.5452 GB, free: 15.31 MB / 462.1 MB Notification: Performance of sorting global known variables: time 7.971e-05/0.5842, allocations: 115.8 kB / 0.5453 GB, free: 15.23 MB / 462.1 MB Notification: Performance of sort global known variables: time 8e-08/0.5842, allocations: 0 / 0.5453 GB, free: 15.23 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.00051/0.5847, allocations: 160.9 kB / 0.5454 GB, free: 15.2 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.001442/0.5861, allocations: 1.022 MB / 0.5464 GB, free: 14.56 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.000185/0.5863, allocations: 61.45 kB / 0.5465 GB, free: 14.56 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 1.914e-06/0.5863, allocations: 0.875 kB / 0.5465 GB, free: 14.56 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 6.411e-05/0.5864, allocations: 31.84 kB / 0.5465 GB, free: 14.56 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002511/0.5866, allocations: 36.91 kB / 0.5466 GB, free: 14.55 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001782/0.5884, allocations: 1.737 MB / 0.5483 GB, free: 13.33 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.491e-05/0.5885, allocations: 71.97 kB / 0.5483 GB, free: 13.26 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 4.949e-05/0.5885, allocations: 11.16 kB / 0.5483 GB, free: 13.26 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.6e-05/0.5885, allocations: 31.27 kB / 0.5484 GB, free: 13.25 MB / 462.1 MB Notification: Performance of SimCode: time 4.01e-07/0.5885, allocations: 0 / 0.5484 GB, free: 13.25 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02858/0.6171, allocations: 6.63 MB / 0.5549 GB, free: 12.32 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.99/11.61, allocations: 2.375 kB / 0.5549 GB, free: 12.32 MB / 462.1 MB " [Timeout remaining time 648] (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 --stepSize=0.00019992 --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) [Timeout 52.5] 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) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 14.082672509015538]