Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_T.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) 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_T,fileNamePrefix="Modelica_4_0_0_Modelica_Media_Examples_SolveOneNonlinearEquation_Inverse_sh_T",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_T,fileNamePrefix="Modelica_4_0_0_Modelica_Media_Examples_SolveOneNonlinearEquation_Inverse_sh_T",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001504/0.001504, allocations: 109.2 kB / 17.06 MB, free: 6.016 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001647/0.001648, allocations: 188 kB / 18 MB, free: 5.102 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.301/1.301, allocations: 222.9 MB / 241.7 MB, free: 15.14 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001133/0.001133, allocations: 43.92 kB / 350.8 MB, free: 3.758 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2396/0.2407, allocations: 49.43 MB / 400.2 MB, free: 8.402 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_T): time 0.002301/0.2431, allocations: 1.361 MB / 401.6 MB, free: 7.32 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.1471/0.3902, allocations: 148.7 MB / 0.5374 GB, free: 2.113 MB / 462.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.671e-05/0.3903, allocations: 0 / 0.5374 GB, free: 2.113 MB / 462.1 MB Notification: Performance of NFTyping.typeComponents: time 2.423e-05/0.3904, allocations: 11.92 kB / 0.5374 GB, free: 2.102 MB / 462.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008562/0.3912, allocations: 234.8 kB / 0.5377 GB, free: 1.871 MB / 462.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009965/0.3922, allocations: 398 kB / 0.538 GB, free: 1.488 MB / 462.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001049/0.3924, allocations: 63.7 kB / 0.5381 GB, free: 1.426 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.988e-05/0.3924, allocations: 4 kB / 0.5381 GB, free: 1.422 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.727e-05/0.3925, allocations: 23.86 kB / 0.5381 GB, free: 1.398 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.325e-05/0.3926, allocations: 27.91 kB / 0.5382 GB, free: 1.371 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 1.303e-05/0.3926, allocations: 0 / 0.5382 GB, free: 1.371 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001107/0.3937, allocations: 0.6707 MB / 0.5388 GB, free: 0.6992 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 1.639e-05/0.3937, allocations: 15.88 kB / 0.5388 GB, free: 0.6836 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 4.022e-05/0.3938, allocations: 19.94 kB / 0.5388 GB, free: 0.6641 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007095/0.3945, allocations: 498.8 kB / 0.5393 GB, free: 180 kB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.308e-06/0.3945, allocations: 7.938 kB / 0.5393 GB, free: 172 kB / 462.1 MB Notification: Performance of FrontEnd: time 1.433e-06/0.3945, allocations: 0 / 0.5393 GB, free: 172 kB / 462.1 MB Notification: Performance of Transformations before backend: time 4.929e-06/0.3945, allocations: 0 / 0.5393 GB, free: 172 kB / 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.1686/0.5631, allocations: 423.3 kB / 0.5397 GB, free: 151.1 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.19e-05/0.5632, allocations: 11.69 kB / 0.5397 GB, free: 151.1 MB / 462.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.996e-05/0.5632, allocations: 34.48 kB / 0.5398 GB, free: 151.1 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001179/0.5644, allocations: 95.97 kB / 0.5399 GB, free: 151.1 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000261/0.5647, allocations: 215.7 kB / 0.5401 GB, free: 150.9 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.673e-05/0.5647, allocations: 6.438 kB / 0.5401 GB, free: 150.9 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.779e-05/0.5647, allocations: 2.812 kB / 0.5401 GB, free: 150.9 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002258/0.5649, allocations: 92.72 kB / 0.5402 GB, free: 150.9 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.931e-05/0.565, allocations: 4.531 kB / 0.5402 GB, free: 150.9 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.59e-05/0.565, allocations: 1.5 kB / 0.5402 GB, free: 150.9 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.56e-06/0.565, allocations: 1.031 kB / 0.5402 GB, free: 150.9 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001904/0.5652, allocations: 46.75 kB / 0.5402 GB, free: 150.9 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002237/0.5654, allocations: 211.2 kB / 0.5404 GB, free: 150.7 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005026/0.5659, allocations: 129.3 kB / 0.5405 GB, free: 150.6 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000121/0.5661, allocations: 38.83 kB / 0.5406 GB, free: 150.6 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004369/0.5665, allocations: 0.9869 MB / 0.5415 GB, free: 149.4 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.477e-05/0.5665, allocations: 39.88 kB / 0.5416 GB, free: 149.4 MB / 462.1 MB Notification: Performance of pre-optimization done (n=6): time 1.483e-06/0.5666, allocations: 0 / 0.5416 GB, free: 149.4 MB / 462.1 MB Notification: Performance of matching and sorting (n=6): time 0.0005105/0.5671, allocations: 126 kB / 0.5417 GB, free: 149.3 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.448e-05/0.5671, allocations: 85.78 kB / 0.5418 GB, free: 149.2 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002052/0.5673, allocations: 159.1 kB / 0.5419 GB, free: 149.1 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 1.399e-05/0.5674, allocations: 26.3 kB / 0.542 GB, free: 149.1 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.104e-05/0.5674, allocations: 89.52 kB / 0.542 GB, free: 149 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.106e-05/0.5674, allocations: 20.52 kB / 0.5421 GB, free: 149 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.909e-05/0.5675, allocations: 31.02 kB / 0.5421 GB, free: 149 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 5.135e-05/0.5675, allocations: 318.5 kB / 0.5424 GB, free: 148.7 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001177/0.5677, allocations: 27.56 kB / 0.5424 GB, free: 148.7 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001248/0.5678, allocations: 52.19 kB / 0.5425 GB, free: 148.6 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002452/0.5681, allocations: 84.14 kB / 0.5426 GB, free: 148.6 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.526e-06/0.5681, allocations: 0.5625 kB / 0.5426 GB, free: 148.6 MB / 462.1 MB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0003628/0.5684, allocations: 115.3 kB / 0.5427 GB, free: 148.5 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.245e-05/0.5685, allocations: 12.61 kB / 0.5427 GB, free: 148.5 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.861e-06/0.5685, allocations: 1.094 kB / 0.5427 GB, free: 148.5 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.703e-05/0.5685, allocations: 1.844 kB / 0.5427 GB, free: 148.5 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001574/0.5687, allocations: 31.66 kB / 0.5427 GB, free: 148.5 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.165e-06/0.5687, allocations: 3.125 kB / 0.5427 GB, free: 148.5 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000189/0.5689, allocations: 15.5 kB / 0.5427 GB, free: 148.5 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.531e-05/0.5689, allocations: 11.27 kB / 0.5427 GB, free: 148.5 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 7.662e-05/0.569, allocations: 109.7 kB / 0.5428 GB, free: 148.4 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.136e-05/0.5691, allocations: 10.5 kB / 0.5429 GB, free: 148.4 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006449/0.5697, allocations: 252.8 kB / 0.5431 GB, free: 148.3 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.933e-06/0.5697, allocations: 1.75 kB / 0.5431 GB, free: 148.3 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.223e-06/0.5697, allocations: 2.453 kB / 0.5431 GB, free: 148.3 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.809e-06/0.5697, allocations: 0.5625 kB / 0.5431 GB, free: 148.3 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001764/0.5699, allocations: 215.7 kB / 0.5433 GB, free: 148 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.458e-06/0.5699, allocations: 1.312 kB / 0.5433 GB, free: 148 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001915/0.5701, allocations: 20.39 kB / 0.5433 GB, free: 148 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.509e-06/0.5701, allocations: 5.031 kB / 0.5433 GB, free: 148 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.599e-05/0.5702, allocations: 6.438 kB / 0.5433 GB, free: 148 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.787e-06/0.5702, allocations: 5.891 kB / 0.5433 GB, free: 148 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.394e-06/0.5702, allocations: 4.562 kB / 0.5433 GB, free: 148 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000439/0.5706, allocations: 172.5 kB / 0.5435 GB, free: 147.9 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.238e-05/0.5707, allocations: 93.12 kB / 0.5436 GB, free: 147.8 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.245e-05/0.5708, allocations: 6.656 kB / 0.5436 GB, free: 147.8 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001794/0.5709, allocations: 12.55 kB / 0.5436 GB, free: 147.8 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.067e-05/0.571, allocations: 7.578 kB / 0.5436 GB, free: 147.8 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.249e-05/0.571, allocations: 4.141 kB / 0.5436 GB, free: 147.8 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.0001679/0.5712, allocations: 129.1 kB / 0.5438 GB, free: 147.7 MB / 462.1 MB Notification: Performance of sort global known variables: time 4.51e-07/0.5712, allocations: 0.5 kB / 0.5438 GB, free: 147.7 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.0005732/0.5718, allocations: 134.9 kB / 0.5439 GB, free: 147.7 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.00125/0.573, allocations: 0.9284 MB / 0.5448 GB, free: 147 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.0002985/0.5733, allocations: 82.44 kB / 0.5449 GB, free: 147 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 2.454e-06/0.5734, allocations: 0 / 0.5449 GB, free: 147 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001191/0.5735, allocations: 41.7 kB / 0.5449 GB, free: 147 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002355/0.5737, allocations: 17.42 kB / 0.5449 GB, free: 147 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002225/0.576, allocations: 1.793 MB / 0.5467 GB, free: 145.4 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.417e-05/0.5761, allocations: 0.6883 MB / 0.5473 GB, free: 144.7 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.0004018/0.5765, allocations: 425.7 kB / 0.5478 GB, free: 144.5 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001314/0.5766, allocations: 55.16 kB / 0.5478 GB, free: 144.5 MB / 462.1 MB Notification: Performance of SimCode: time 2.61e-07/0.5766, allocations: 0 / 0.5478 GB, free: 144.5 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02293/0.5995, allocations: 6.609 MB / 0.5543 GB, free: 138.1 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.633/8.232, allocations: 4.625 kB / 0.5543 GB, free: 138.1 MB / 462.1 MB (rm -f Modelica_4.0.0_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_T.pipe ; mkfifo Modelica_4.0.0_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_T.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_T.pipe >> ../files/Modelica_4.0.0_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_T.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_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.0004 Modelica_4_0_0_Modelica_Media_Examples_SolveOneNonlinearEquation_Inverse_sh_T.fmu > Modelica_4.0.0_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_T.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_T_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Media/Examples/SolveOneNonlinearEquation/Inverse_sh_T/Inverse_sh_T.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_T.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches