Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_TX.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001291/0.001291, allocations: 105.1 kB / 21.21 MB, free: 0.6523 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001356/0.001356, allocations: 212.6 kB / 24.51 MB, free: 3.941 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.375/1.375, allocations: 230.6 MB / 258.3 MB, free: 7.789 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_TX,fileNamePrefix="Modelica_4_1_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_1_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.001472/0.001472, allocations: 43.94 kB / 378.5 MB, free: 2.957 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2211/0.2226, allocations: 53.37 MB / 431.9 MB, free: 6.758 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_TX): time 0.002376/0.225, allocations: 1.355 MB / 433.2 MB, free: 5.398 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.3686/0.5936, allocations: 130.8 MB / 0.5508 GB, free: 15.97 MB / 462.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.746e-05/0.5936, allocations: 4 kB / 0.5508 GB, free: 15.96 MB / 462.1 MB Notification: Performance of NFTyping.typeComponents: time 4.174e-05/0.5937, allocations: 7.859 kB / 0.5508 GB, free: 15.96 MB / 462.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001026/0.5947, allocations: 383.8 kB / 0.5512 GB, free: 15.96 MB / 462.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001023/0.5957, allocations: 0.5206 MB / 0.5517 GB, free: 15.94 MB / 462.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001127/0.5959, allocations: 74.39 kB / 0.5518 GB, free: 15.93 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.989e-05/0.5959, allocations: 1.344 kB / 0.5518 GB, free: 15.93 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.587e-05/0.5959, allocations: 37.19 kB / 0.5518 GB, free: 15.93 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.738e-05/0.596, allocations: 35.03 kB / 0.5518 GB, free: 15.93 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 1.305e-05/0.596, allocations: 2.062 kB / 0.5518 GB, free: 15.93 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001521/0.5976, allocations: 0.959 MB / 0.5528 GB, free: 15.92 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 4.15e-05/0.5976, allocations: 18.19 kB / 0.5528 GB, free: 15.92 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 3.647e-05/0.5976, allocations: 26.27 kB / 0.5528 GB, free: 15.92 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008855/0.5985, allocations: 0.6715 MB / 0.5535 GB, free: 15.89 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.577e-06/0.5985, allocations: 1.375 kB / 0.5535 GB, free: 15.89 MB / 462.1 MB Notification: Performance of FrontEnd: time 1.212e-06/0.5985, allocations: 0 / 0.5535 GB, free: 15.89 MB / 462.1 MB Notification: Performance of Transformations before backend: time 4.719e-06/0.5985, allocations: 0 / 0.5535 GB, free: 15.89 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.0006001/0.5991, allocations: 384.5 kB / 0.5538 GB, free: 15.56 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.715e-05/0.5992, allocations: 9.625 kB / 0.5539 GB, free: 15.56 MB / 462.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.278e-05/0.5992, allocations: 1.562 kB / 0.5539 GB, free: 15.56 MB / 462.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.111e-05/0.5992, allocations: 32.12 kB / 0.5539 GB, free: 15.52 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004452/0.5997, allocations: 70.97 kB / 0.554 GB, free: 15.52 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001763/0.5998, allocations: 151.3 kB / 0.5541 GB, free: 15.38 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.519e-05/0.5999, allocations: 4.562 kB / 0.5541 GB, free: 15.38 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.124e-05/0.5999, allocations: 5.375 kB / 0.5541 GB, free: 15.38 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001664/0.6, allocations: 75.11 kB / 0.5542 GB, free: 15.33 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.179e-05/0.6001, allocations: 0 / 0.5542 GB, free: 15.33 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.446e-06/0.6001, allocations: 1.375 kB / 0.5542 GB, free: 15.33 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.288e-06/0.6001, allocations: 0 / 0.5542 GB, free: 15.33 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.767e-05/0.6002, allocations: 44.31 kB / 0.5542 GB, free: 15.33 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000219/0.6004, allocations: 164.7 kB / 0.5544 GB, free: 15.16 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002953/0.6007, allocations: 113 kB / 0.5545 GB, free: 15.12 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.254e-05/0.6008, allocations: 37.78 kB / 0.5545 GB, free: 15.1 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004483/0.6012, allocations: 55.73 kB / 0.5546 GB, free: 15.1 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.745e-05/0.6012, allocations: 38.86 kB / 0.5546 GB, free: 15.06 MB / 462.1 MB Notification: Performance of pre-optimization done (n=6): time 3.316e-06/0.6012, allocations: 4 kB / 0.5546 GB, free: 15.05 MB / 462.1 MB Notification: Performance of matching and sorting (n=6): time 0.0003202/0.6016, allocations: 117.7 kB / 0.5547 GB, free: 15.02 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.913e-05/0.6016, allocations: 79.45 kB / 0.5548 GB, free: 14.93 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001142/0.6017, allocations: 143.1 kB / 0.5549 GB, free: 14.83 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 1.859e-05/0.6017, allocations: 28.42 kB / 0.555 GB, free: 14.8 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.24e-05/0.6018, allocations: 83.77 kB / 0.555 GB, free: 14.71 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.681e-05/0.6018, allocations: 27 kB / 0.5551 GB, free: 14.7 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.322e-05/0.6019, allocations: 18.22 kB / 0.5551 GB, free: 14.68 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001349/0.602, allocations: 323.6 kB / 0.5554 GB, free: 14.37 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.101e-05/0.6021, allocations: 32.05 kB / 0.5554 GB, free: 14.37 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.35e-05/0.6021, allocations: 51.98 kB / 0.5555 GB, free: 14.33 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001308/0.6023, allocations: 82.91 kB / 0.5556 GB, free: 14.29 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.224e-06/0.6023, allocations: 1.062 kB / 0.5556 GB, free: 14.29 MB / 462.1 MB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0002167/0.6025, allocations: 114.3 kB / 0.5557 GB, free: 14.25 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.261e-05/0.6025, allocations: 5.25 kB / 0.5557 GB, free: 14.25 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.729e-06/0.6025, allocations: 0 / 0.5557 GB, free: 14.25 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.397e-05/0.6025, allocations: 9.266 kB / 0.5557 GB, free: 14.25 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.326e-05/0.6026, allocations: 13.69 kB / 0.5557 GB, free: 14.25 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.981e-06/0.6026, allocations: 2.594 kB / 0.5557 GB, free: 14.25 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.033e-05/0.6026, allocations: 10.16 kB / 0.5557 GB, free: 14.25 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.326e-06/0.6026, allocations: 6.281 kB / 0.5557 GB, free: 14.25 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.145e-05/0.6027, allocations: 114.1 kB / 0.5558 GB, free: 14.13 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.249e-05/0.6028, allocations: 8.375 kB / 0.5558 GB, free: 14.13 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002251/0.603, allocations: 115.8 kB / 0.5559 GB, free: 14.08 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.957e-06/0.603, allocations: 8.266 kB / 0.556 GB, free: 14.08 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.508e-06/0.603, allocations: 4 kB / 0.556 GB, free: 14.08 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.026e-06/0.603, allocations: 0 / 0.556 GB, free: 14.08 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00015/0.6032, allocations: 155.2 kB / 0.5561 GB, free: 13.92 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.152e-06/0.6032, allocations: 0 / 0.5561 GB, free: 13.92 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.744e-05/0.6033, allocations: 17.78 kB / 0.5561 GB, free: 13.91 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.984e-06/0.6033, allocations: 0 / 0.5561 GB, free: 13.91 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.608e-06/0.6033, allocations: 3.312 kB / 0.5561 GB, free: 13.91 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.333e-06/0.6033, allocations: 0 / 0.5561 GB, free: 13.91 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.122e-06/0.6033, allocations: 1.203 kB / 0.5561 GB, free: 13.91 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003018/0.6036, allocations: 167.5 kB / 0.5563 GB, free: 13.84 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.014e-05/0.6036, allocations: 12.31 kB / 0.5563 GB, free: 13.83 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.925e-05/0.6036, allocations: 3.438 kB / 0.5563 GB, free: 13.83 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.051e-05/0.6037, allocations: 2.719 kB / 0.5563 GB, free: 13.83 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.776e-05/0.6037, allocations: 7.391 kB / 0.5563 GB, free: 13.83 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.72e-06/0.6037, allocations: 3.625 kB / 0.5563 GB, free: 13.83 MB / 462.1 MB Notification: Performance of sorting global known variables: time 7.124e-05/0.6038, allocations: 112.8 kB / 0.5564 GB, free: 13.76 MB / 462.1 MB Notification: Performance of sort global known variables: time 9e-08/0.6038, allocations: 1.203 kB / 0.5564 GB, free: 13.76 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.0005042/0.6043, allocations: 169.2 kB / 0.5566 GB, free: 13.72 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.001299/0.6056, allocations: 1.004 MB / 0.5576 GB, free: 13.06 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.0001737/0.6058, allocations: 71.17 kB / 0.5576 GB, free: 13.06 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 1.493e-06/0.6058, allocations: 0 / 0.5576 GB, free: 13.06 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 6.203e-05/0.6058, allocations: 31.78 kB / 0.5577 GB, free: 13.06 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002284/0.606, allocations: 22.75 kB / 0.5577 GB, free: 13.06 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001824/0.6079, allocations: 1.755 MB / 0.5594 GB, free: 11.75 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.711e-05/0.6079, allocations: 73.17 kB / 0.5595 GB, free: 11.68 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 6.01e-05/0.608, allocations: 20.59 kB / 0.5595 GB, free: 11.67 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.689e-05/0.608, allocations: 23.38 kB / 0.5595 GB, free: 11.66 MB / 462.1 MB Notification: Performance of SimCode: time 4.01e-07/0.608, allocations: 1.203 kB / 0.5595 GB, free: 11.66 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02964/0.6377, allocations: 6.589 MB / 0.5659 GB, free: 10.71 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.68/11.31, allocations: 11.19 kB / 0.566 GB, free: 10.71 MB / 462.1 MB " [Timeout remaining time 649] (rm -f Modelica_4.1.0_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_TX.pipe ; mkfifo Modelica_4.1.0_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_TX.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_TX.pipe >> ../files/Modelica_4.1.0_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_TX.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_TX_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Media_Examples_SolveOneNonlinearEquation_Inverse_sh_TX_fmu --startTime=0 --stopTime=1 --stepSize=0.00019992 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Media_Examples_SolveOneNonlinearEquation_Inverse_sh_TX.fmu > Modelica_4.1.0_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_TX.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_TX_res.mat","/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_4.1.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: 13.846992032020353]