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.001242/0.001242, allocations: 112.2 kB / 21.22 MB, free: 0.7305 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.001388/0.001388, allocations: 212.2 kB / 24.53 MB, free: 4.07 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.365/1.365, allocations: 230.6 MB / 258.3 MB, free: 7.98 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.001583/0.001583, allocations: 47.92 kB / 378.5 MB, free: 3.133 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2249/0.2264, allocations: 53.36 MB / 431.9 MB, free: 6.836 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_TX): time 0.002426/0.2289, allocations: 1.388 MB / 433.3 MB, free: 5.445 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.3695/0.5984, allocations: 152.4 MB / 0.572 GB, free: 13.07 MB / 462.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.008e-05/0.5984, allocations: 0 / 0.572 GB, free: 13.07 MB / 462.1 MB Notification: Performance of NFTyping.typeComponents: time 3.463e-05/0.5985, allocations: 2.531 kB / 0.572 GB, free: 13.07 MB / 462.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001043/0.5995, allocations: 397 kB / 0.5724 GB, free: 12.98 MB / 462.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001015/0.6005, allocations: 0.5204 MB / 0.5729 GB, free: 12.9 MB / 462.1 MB Notification: Performance of NFFlatten.flatten: time 9.943e-05/0.6006, allocations: 75.12 kB / 0.5729 GB, free: 12.88 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.478e-05/0.6006, allocations: 7.203 kB / 0.5729 GB, free: 12.88 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.127e-05/0.6007, allocations: 35.28 kB / 0.573 GB, free: 12.87 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.78e-05/0.6008, allocations: 38.61 kB / 0.573 GB, free: 12.87 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 1.145e-05/0.6008, allocations: 3.25 kB / 0.573 GB, free: 12.87 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001544/0.6023, allocations: 1.155 MB / 0.5741 GB, free: 12.76 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 3.333e-05/0.6024, allocations: 14.38 kB / 0.5742 GB, free: 12.76 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 3.329e-05/0.6024, allocations: 29.06 kB / 0.5742 GB, free: 12.76 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008374/0.6032, allocations: 0.6966 MB / 0.5749 GB, free: 12.71 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.098e-06/0.6032, allocations: 2.578 kB / 0.5749 GB, free: 12.71 MB / 462.1 MB Notification: Performance of FrontEnd: time 1.222e-06/0.6032, allocations: 0 / 0.5749 GB, free: 12.71 MB / 462.1 MB Notification: Performance of Transformations before backend: time 8.516e-06/0.6033, allocations: 0 / 0.5749 GB, free: 12.71 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.0005747/0.6038, allocations: 382.9 kB / 0.5752 GB, free: 12.38 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.412e-05/0.6039, allocations: 13.97 kB / 0.5752 GB, free: 12.38 MB / 462.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.234e-05/0.6039, allocations: 3.75 kB / 0.5753 GB, free: 12.38 MB / 462.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.142e-05/0.6039, allocations: 35.27 kB / 0.5753 GB, free: 12.34 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004522/0.6044, allocations: 71.38 kB / 0.5754 GB, free: 12.34 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001617/0.6045, allocations: 150.3 kB / 0.5755 GB, free: 12.2 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.3e-05/0.6045, allocations: 3.688 kB / 0.5755 GB, free: 12.2 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.032e-05/0.6046, allocations: 2.094 kB / 0.5755 GB, free: 12.2 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001542/0.6047, allocations: 72.02 kB / 0.5756 GB, free: 12.14 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.544e-06/0.6047, allocations: 0 / 0.5756 GB, free: 12.14 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.125e-06/0.6047, allocations: 5.531 kB / 0.5756 GB, free: 12.14 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.148e-06/0.6047, allocations: 0 / 0.5756 GB, free: 12.14 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.369e-05/0.6048, allocations: 44.7 kB / 0.5756 GB, free: 12.14 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001977/0.605, allocations: 166.7 kB / 0.5758 GB, free: 11.98 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002822/0.6053, allocations: 115.8 kB / 0.5759 GB, free: 11.92 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.199e-05/0.6054, allocations: 39.52 kB / 0.5759 GB, free: 11.9 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000454/0.6058, allocations: 57.03 kB / 0.576 GB, free: 11.9 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.932e-05/0.6059, allocations: 37.58 kB / 0.576 GB, free: 11.86 MB / 462.1 MB Notification: Performance of pre-optimization done (n=6): time 1.182e-06/0.6059, allocations: 0 / 0.576 GB, free: 11.86 MB / 462.1 MB Notification: Performance of matching and sorting (n=6): time 0.0003239/0.6062, allocations: 116.9 kB / 0.5761 GB, free: 11.82 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.02e-05/0.6062, allocations: 79.8 kB / 0.5762 GB, free: 11.73 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001172/0.6064, allocations: 149.6 kB / 0.5763 GB, free: 11.62 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 1.585e-05/0.6064, allocations: 25.7 kB / 0.5764 GB, free: 11.59 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001427/0.6065, allocations: 90.61 kB / 0.5765 GB, free: 11.51 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.274e-05/0.6065, allocations: 24.3 kB / 0.5765 GB, free: 11.49 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.712e-05/0.6066, allocations: 21.5 kB / 0.5765 GB, free: 11.48 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0002319/0.6068, allocations: 323.1 kB / 0.5768 GB, free: 11.16 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.214e-05/0.6069, allocations: 22.06 kB / 0.5768 GB, free: 11.16 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.787e-05/0.607, allocations: 53.08 kB / 0.5769 GB, free: 11.12 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001347/0.6071, allocations: 79.17 kB / 0.577 GB, free: 11.09 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.595e-06/0.6071, allocations: 3.812 kB / 0.577 GB, free: 11.09 MB / 462.1 MB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0002319/0.6073, allocations: 116 kB / 0.5771 GB, free: 11.04 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.197e-05/0.6073, allocations: 8.812 kB / 0.5771 GB, free: 11.04 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.849e-06/0.6073, allocations: 3.062 kB / 0.5771 GB, free: 11.04 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.093e-05/0.6074, allocations: 480 / 0.5771 GB, free: 11.04 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.387e-05/0.6074, allocations: 17.28 kB / 0.5771 GB, free: 11.04 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.181e-06/0.6074, allocations: 2.969 kB / 0.5771 GB, free: 11.04 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.815e-05/0.6075, allocations: 6.359 kB / 0.5771 GB, free: 11.04 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.502e-06/0.6075, allocations: 2.844 kB / 0.5771 GB, free: 11.04 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.311e-05/0.6076, allocations: 122 kB / 0.5772 GB, free: 10.91 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.177e-05/0.6076, allocations: 6.234 kB / 0.5772 GB, free: 10.91 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002253/0.6078, allocations: 117.2 kB / 0.5773 GB, free: 10.86 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.186e-06/0.6078, allocations: 5.281 kB / 0.5773 GB, free: 10.86 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.406e-06/0.6078, allocations: 0 / 0.5773 GB, free: 10.86 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.805e-06/0.6078, allocations: 0 / 0.5773 GB, free: 10.86 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000138/0.608, allocations: 162.3 kB / 0.5775 GB, free: 10.7 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.052e-06/0.608, allocations: 0 / 0.5775 GB, free: 10.7 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.404e-05/0.6081, allocations: 16.52 kB / 0.5775 GB, free: 10.7 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.793e-06/0.6081, allocations: 0 / 0.5775 GB, free: 10.7 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.907e-06/0.6081, allocations: 2.469 kB / 0.5775 GB, free: 10.7 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.914e-06/0.6081, allocations: 6.156 kB / 0.5775 GB, free: 10.69 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.753e-06/0.6081, allocations: 3.141 kB / 0.5775 GB, free: 10.69 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002972/0.6084, allocations: 160.5 kB / 0.5777 GB, free: 10.61 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.835e-05/0.6084, allocations: 12.75 kB / 0.5777 GB, free: 10.61 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.796e-05/0.6084, allocations: 0 / 0.5777 GB, free: 10.61 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.2e-05/0.6085, allocations: 2.875 kB / 0.5777 GB, free: 10.61 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.201e-05/0.6085, allocations: 12.62 kB / 0.5777 GB, free: 10.61 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.3e-06/0.6085, allocations: 4 kB / 0.5777 GB, free: 10.61 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.0001454/0.6086, allocations: 108.4 kB / 0.5778 GB, free: 10.53 MB / 462.1 MB Notification: Performance of sort global known variables: time 9e-08/0.6086, allocations: 1.203 kB / 0.5778 GB, free: 10.53 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.0004875/0.6091, allocations: 168.8 kB / 0.578 GB, free: 10.5 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.001307/0.6104, allocations: 1.018 MB / 0.579 GB, free: 9.824 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.0001796/0.6106, allocations: 59.66 kB / 0.579 GB, free: 9.82 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 1.884e-06/0.6106, allocations: 0 / 0.579 GB, free: 9.82 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 6.662e-05/0.6107, allocations: 33.3 kB / 0.5791 GB, free: 9.82 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002252/0.6109, allocations: 17.61 kB / 0.5791 GB, free: 9.82 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001823/0.6127, allocations: 1.759 MB / 0.5808 GB, free: 8.5 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002874/0.613, allocations: 0.6884 MB / 0.5815 GB, free: 7.805 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 5.627e-05/0.6131, allocations: 27.12 kB / 0.5815 GB, free: 7.789 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.574e-05/0.6131, allocations: 23.02 kB / 0.5815 GB, free: 7.781 MB / 462.1 MB Notification: Performance of SimCode: time 4.01e-07/0.6131, allocations: 1.203 kB / 0.5815 GB, free: 7.781 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0281/0.6412, allocations: 6.425 MB / 0.5878 GB, free: 5.094 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.61/11.25, allocations: 12.84 kB / 0.5878 GB, free: 5.09 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.714165548968595]