Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_T.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.001774/0.001774, allocations: 112.1 kB / 21.19 MB, free: 0.7031 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.0023/0.0023, allocations: 208.6 kB / 24.49 MB, free: 4.055 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.401/1.401, allocations: 207.6 MB / 235.3 MB, free: 9.984 MB / 190.1 MB " [Timeout remaining time 178] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_T,fileNamePrefix="Modelica_3_2_3_Modelica_Media_Examples_SolveOneNonlinearEquation_Inverse_sh_T",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_T,fileNamePrefix="Modelica_3_2_3_Modelica_Media_Examples_SolveOneNonlinearEquation_Inverse_sh_T",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001907/0.001907, allocations: 51.92 kB / 347.2 MB, free: 10.12 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2651/0.267, allocations: 49.16 MB / 396.3 MB, free: 8.961 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_T): time 0.002084/0.2691, allocations: 1.352 MB / 397.7 MB, free: 8.035 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.1781/0.4473, allocations: 150.9 MB / 0.5357 GB, free: 10.55 MB / 462.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.505e-05/0.4473, allocations: 0 / 0.5357 GB, free: 10.55 MB / 462.1 MB Notification: Performance of NFTyping.typeComponents: time 2.972e-05/0.4473, allocations: 3.938 kB / 0.5357 GB, free: 10.54 MB / 462.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009541/0.4483, allocations: 234.8 kB / 0.5359 GB, free: 10.31 MB / 462.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001643/0.4499, allocations: 0.6624 MB / 0.5366 GB, free: 9.656 MB / 462.1 MB Notification: Performance of NFFlatten.flatten: time 0.000143/0.4501, allocations: 55.66 kB / 0.5366 GB, free: 9.602 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.565e-05/0.4501, allocations: 4 kB / 0.5366 GB, free: 9.598 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.359e-05/0.4502, allocations: 23.92 kB / 0.5367 GB, free: 9.574 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.064e-05/0.4503, allocations: 31.89 kB / 0.5367 GB, free: 9.543 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 1.456e-05/0.4503, allocations: 4 kB / 0.5367 GB, free: 9.539 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001527/0.4518, allocations: 0.9162 MB / 0.5376 GB, free: 8.621 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 1.844e-05/0.4518, allocations: 11.92 kB / 0.5376 GB, free: 8.609 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 3.278e-05/0.4519, allocations: 15.94 kB / 0.5376 GB, free: 8.594 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009053/0.4528, allocations: 0.6118 MB / 0.5382 GB, free: 7.98 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.396e-06/0.4528, allocations: 0 / 0.5382 GB, free: 7.98 MB / 462.1 MB Notification: Performance of FrontEnd: time 1.263e-06/0.4528, allocations: 7.875 kB / 0.5382 GB, free: 7.973 MB / 462.1 MB Notification: Performance of Transformations before backend: time 4.859e-06/0.4528, allocations: 0 / 0.5382 GB, free: 7.973 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.0005905/0.4534, allocations: 385.1 kB / 0.5386 GB, free: 7.566 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.164e-05/0.4534, allocations: 15.98 kB / 0.5386 GB, free: 7.551 MB / 462.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.052e-05/0.4534, allocations: 34.75 kB / 0.5386 GB, free: 7.508 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001044/0.4545, allocations: 96.75 kB / 0.5387 GB, free: 7.414 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002658/0.4547, allocations: 166.2 kB / 0.5389 GB, free: 7.227 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.085e-05/0.4548, allocations: 0 / 0.5389 GB, free: 7.227 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.172e-05/0.4548, allocations: 8 kB / 0.5389 GB, free: 7.219 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002125/0.455, allocations: 91.33 kB / 0.539 GB, free: 7.117 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.546e-06/0.455, allocations: 0 / 0.539 GB, free: 7.117 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.174e-05/0.455, allocations: 7.938 kB / 0.539 GB, free: 7.109 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.489e-06/0.455, allocations: 0 / 0.539 GB, free: 7.109 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001639/0.4552, allocations: 43.95 kB / 0.539 GB, free: 7.066 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002603/0.4555, allocations: 181.9 kB / 0.5392 GB, free: 6.844 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004648/0.4559, allocations: 125.1 kB / 0.5393 GB, free: 6.703 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001102/0.456, allocations: 37.75 kB / 0.5394 GB, free: 6.66 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002373/0.4563, allocations: 88.58 kB / 0.5394 GB, free: 6.574 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.613e-05/0.4563, allocations: 30.56 kB / 0.5395 GB, free: 6.535 MB / 462.1 MB Notification: Performance of pre-optimization done (n=6): time 1.122e-06/0.4563, allocations: 0 / 0.5395 GB, free: 6.535 MB / 462.1 MB Notification: Performance of matching and sorting (n=6): time 0.0004814/0.4568, allocations: 137.9 kB / 0.5396 GB, free: 6.395 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.007e-05/0.4568, allocations: 77.11 kB / 0.5397 GB, free: 6.301 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002268/0.4571, allocations: 157.8 kB / 0.5398 GB, free: 6.137 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 2.224e-05/0.4571, allocations: 25.7 kB / 0.5398 GB, free: 6.105 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.201e-05/0.4571, allocations: 84.14 kB / 0.5399 GB, free: 6.02 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.343e-05/0.4572, allocations: 31.73 kB / 0.54 GB, free: 5.988 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.413e-05/0.4572, allocations: 33.69 kB / 0.54 GB, free: 5.949 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001422/0.4574, allocations: 318.8 kB / 0.5403 GB, free: 5.629 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001028/0.4575, allocations: 35.92 kB / 0.5403 GB, free: 5.594 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001169/0.4576, allocations: 51.41 kB / 0.5404 GB, free: 5.531 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002404/0.4578, allocations: 91.36 kB / 0.5405 GB, free: 5.43 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.134e-06/0.4578, allocations: 0 / 0.5405 GB, free: 5.43 MB / 462.1 MB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0003242/0.4582, allocations: 113.6 kB / 0.5406 GB, free: 5.312 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.368e-05/0.4582, allocations: 4 kB / 0.5406 GB, free: 5.309 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.037e-06/0.4582, allocations: 4 kB / 0.5406 GB, free: 5.305 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.869e-05/0.4582, allocations: 3.984 kB / 0.5406 GB, free: 5.301 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001387/0.4583, allocations: 27.97 kB / 0.5406 GB, free: 5.273 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.214e-06/0.4583, allocations: 7.875 kB / 0.5406 GB, free: 5.266 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000184/0.4585, allocations: 12.02 kB / 0.5406 GB, free: 5.254 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.115e-05/0.4585, allocations: 7.984 kB / 0.5406 GB, free: 5.246 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.492e-05/0.4586, allocations: 117.8 kB / 0.5407 GB, free: 5.121 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.428e-05/0.4587, allocations: 4 kB / 0.5408 GB, free: 5.117 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005409/0.4592, allocations: 253.3 kB / 0.541 GB, free: 4.867 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.283e-06/0.4592, allocations: 3.984 kB / 0.541 GB, free: 4.863 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.687e-06/0.4592, allocations: 0 / 0.541 GB, free: 4.863 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.908e-06/0.4592, allocations: 0 / 0.541 GB, free: 4.863 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002067/0.4594, allocations: 190 kB / 0.5412 GB, free: 4.629 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.088e-06/0.4594, allocations: 4 kB / 0.5412 GB, free: 4.625 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001807/0.4596, allocations: 27.97 kB / 0.5412 GB, free: 4.598 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.967e-06/0.4596, allocations: 3.984 kB / 0.5412 GB, free: 4.594 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.134e-05/0.4596, allocations: 0 / 0.5412 GB, free: 4.594 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.246e-06/0.4596, allocations: 8 kB / 0.5412 GB, free: 4.586 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.71e-07/0.4596, allocations: 0 / 0.5412 GB, free: 4.586 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004303/0.4601, allocations: 181.8 kB / 0.5414 GB, free: 4.387 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.913e-05/0.4601, allocations: 12.02 kB / 0.5414 GB, free: 4.375 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.42e-05/0.4602, allocations: 0 / 0.5414 GB, free: 4.375 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001707/0.4603, allocations: 8.047 kB / 0.5414 GB, free: 4.367 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.625e-05/0.4604, allocations: 15.98 kB / 0.5414 GB, free: 4.352 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.636e-06/0.4604, allocations: 0 / 0.5414 GB, free: 4.352 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.0001687/0.4606, allocations: 131.8 kB / 0.5416 GB, free: 4.223 MB / 462.1 MB Notification: Performance of sort global known variables: time 8e-08/0.4606, allocations: 0 / 0.5416 GB, free: 4.223 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.0005209/0.4611, allocations: 171.5 kB / 0.5417 GB, free: 4.055 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.00145/0.4625, allocations: 1.003 MB / 0.5427 GB, free: 3.02 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.0002809/0.4628, allocations: 75.88 kB / 0.5428 GB, free: 2.945 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 1.994e-06/0.4628, allocations: 0 / 0.5428 GB, free: 2.945 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001307/0.4629, allocations: 39.91 kB / 0.5428 GB, free: 2.906 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002119/0.4631, allocations: 19.92 kB / 0.5428 GB, free: 2.887 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0027/0.4658, allocations: 1.816 MB / 0.5446 GB, free: 0.9648 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003299/0.4662, allocations: 0.6846 MB / 0.5453 GB, free: 260 kB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.0006189/0.4668, allocations: 435 kB / 0.5457 GB, free: 15.83 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001481/0.4669, allocations: 47.39 kB / 0.5457 GB, free: 15.78 MB / 478.1 MB Notification: Performance of SimCode: time 3.21e-07/0.4669, allocations: 0 / 0.5457 GB, free: 15.78 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05161/0.5186, allocations: 7.796 MB / 0.5533 GB, free: 7.934 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.79/11.31, allocations: 8.062 kB / 0.5534 GB, free: 7.926 MB / 478.1 MB " [Timeout remaining time 649] (rm -f Modelica_3.2.3_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_T.pipe ; mkfifo Modelica_3.2.3_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_T.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_T.pipe >> ../files/Modelica_3.2.3_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_T.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_T_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Media_Examples_SolveOneNonlinearEquation_Inverse_sh_T_fmu --startTime=0 --stopTime=1 --stepSize=0.00019992 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Media_Examples_SolveOneNonlinearEquation_Inverse_sh_T.fmu > Modelica_3.2.3_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_T.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_3.2.3_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_T_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Media/Examples/SolveOneNonlinearEquation/Inverse_sh_T/Inverse_sh_T.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_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: 13.825893373927101]