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.00176/0.00176, allocations: 123 kB / 17.79 MB, free: 5.266 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.001906/0.001906, allocations: 189.2 kB / 20.73 MB, free: 2.328 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.401/1.401, allocations: 225.6 MB / 249.1 MB, free: 3.613 MB / 190.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="me",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="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001452/0.001452, allocations: 51.92 kB / 365.6 MB, free: 0.8594 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09657/0.09802, allocations: 52.14 MB / 417.8 MB, free: 12.62 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_TX): time 0.0027/0.1007, allocations: 1.382 MB / 419.1 MB, free: 11.23 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.3446/0.4453, allocations: 149.5 MB / 0.5553 GB, free: 15.54 MB / 462.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.811e-05/0.4453, allocations: 0 / 0.5553 GB, free: 15.54 MB / 462.1 MB Notification: Performance of NFTyping.typeComponents: time 4.442e-05/0.4454, allocations: 11.92 kB / 0.5553 GB, free: 15.53 MB / 462.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001089/0.4464, allocations: 381.2 kB / 0.5557 GB, free: 15.16 MB / 462.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001147/0.4476, allocations: 0.5064 MB / 0.5562 GB, free: 14.66 MB / 462.1 MB Notification: Performance of NFFlatten.flatten: time 0.000114/0.4477, allocations: 83.58 kB / 0.5563 GB, free: 14.58 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.556e-05/0.4477, allocations: 7.984 kB / 0.5563 GB, free: 14.57 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.421e-05/0.4478, allocations: 31.86 kB / 0.5563 GB, free: 14.54 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.223e-05/0.4479, allocations: 35.89 kB / 0.5563 GB, free: 14.5 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 1.134e-05/0.4479, allocations: 0 / 0.5563 GB, free: 14.5 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001761/0.4496, allocations: 1.114 MB / 0.5574 GB, free: 13.39 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 3.983e-05/0.4497, allocations: 19.91 kB / 0.5574 GB, free: 13.37 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 4.985e-05/0.4497, allocations: 27.86 kB / 0.5575 GB, free: 13.34 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001007/0.4507, allocations: 0.6863 MB / 0.5581 GB, free: 12.66 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.086e-06/0.4507, allocations: 8 kB / 0.5581 GB, free: 12.65 MB / 462.1 MB Notification: Performance of FrontEnd: time 1.252e-06/0.4507, allocations: 0 / 0.5581 GB, free: 12.65 MB / 462.1 MB Notification: Performance of Transformations before backend: time 4.829e-06/0.4508, allocations: 0 / 0.5581 GB, free: 12.65 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.0006671/0.4514, allocations: 466.2 kB / 0.5586 GB, free: 12.14 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.3e-05/0.4515, allocations: 12.03 kB / 0.5586 GB, free: 12.13 MB / 462.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.88e-05/0.4515, allocations: 34.69 kB / 0.5586 GB, free: 12.09 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004676/0.452, allocations: 72.8 kB / 0.5587 GB, free: 12.02 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001856/0.4521, allocations: 196.2 kB / 0.5589 GB, free: 11.79 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.76e-05/0.4522, allocations: 9.719 kB / 0.5589 GB, free: 11.78 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.759e-05/0.4522, allocations: 8 kB / 0.5589 GB, free: 11.77 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001665/0.4523, allocations: 67.39 kB / 0.559 GB, free: 11.7 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.316e-06/0.4524, allocations: 0 / 0.559 GB, free: 11.7 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.959e-06/0.4524, allocations: 4 kB / 0.559 GB, free: 11.69 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.556e-06/0.4524, allocations: 0 / 0.559 GB, free: 11.69 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001102/0.4525, allocations: 43.91 kB / 0.559 GB, free: 11.65 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000223/0.4527, allocations: 194.5 kB / 0.5592 GB, free: 11.41 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003095/0.453, allocations: 121.2 kB / 0.5593 GB, free: 11.27 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.699e-05/0.4531, allocations: 29.7 kB / 0.5593 GB, free: 11.23 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005307/0.4536, allocations: 141 kB / 0.5595 GB, free: 11.08 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.622e-05/0.4537, allocations: 30.56 kB / 0.5595 GB, free: 11.04 MB / 462.1 MB Notification: Performance of pre-optimization done (n=6): time 1.172e-06/0.4537, allocations: 0 / 0.5595 GB, free: 11.04 MB / 462.1 MB Notification: Performance of matching and sorting (n=6): time 0.0003692/0.454, allocations: 125.5 kB / 0.5596 GB, free: 10.91 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.369e-05/0.4541, allocations: 77.11 kB / 0.5597 GB, free: 10.82 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001393/0.4542, allocations: 145.8 kB / 0.5598 GB, free: 10.66 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 1.744e-05/0.4542, allocations: 25.7 kB / 0.5599 GB, free: 10.63 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.489e-05/0.4543, allocations: 91.78 kB / 0.56 GB, free: 10.54 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.385e-05/0.4543, allocations: 23.8 kB / 0.56 GB, free: 10.52 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.401e-05/0.4544, allocations: 25.7 kB / 0.56 GB, free: 10.49 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001353/0.4545, allocations: 310.8 kB / 0.5603 GB, free: 10.18 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.984e-05/0.4546, allocations: 27.98 kB / 0.5603 GB, free: 10.15 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.977e-05/0.4547, allocations: 59.33 kB / 0.5604 GB, free: 10.08 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001615/0.4548, allocations: 83.7 kB / 0.5605 GB, free: 9.984 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.254e-06/0.4548, allocations: 4 kB / 0.5605 GB, free: 9.98 MB / 462.1 MB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0002724/0.4551, allocations: 109.5 kB / 0.5606 GB, free: 9.867 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.46e-05/0.4551, allocations: 8 kB / 0.5606 GB, free: 9.859 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.498e-06/0.4551, allocations: 0 / 0.5606 GB, free: 9.859 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.107e-05/0.4551, allocations: 0 / 0.5606 GB, free: 9.859 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.726e-05/0.4552, allocations: 15.98 kB / 0.5606 GB, free: 9.844 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.719e-06/0.4552, allocations: 4 kB / 0.5606 GB, free: 9.84 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.689e-05/0.4553, allocations: 4 kB / 0.5606 GB, free: 9.836 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.831e-06/0.4553, allocations: 4.062 kB / 0.5606 GB, free: 9.832 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.508e-05/0.4554, allocations: 129.7 kB / 0.5607 GB, free: 9.695 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.224e-05/0.4554, allocations: 7.953 kB / 0.5607 GB, free: 9.688 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002548/0.4557, allocations: 106.9 kB / 0.5608 GB, free: 9.578 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.926e-06/0.4557, allocations: 0.625 kB / 0.5608 GB, free: 9.578 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.667e-06/0.4557, allocations: 0 / 0.5608 GB, free: 9.578 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.43e-06/0.4557, allocations: 4 kB / 0.5608 GB, free: 9.574 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001736/0.4559, allocations: 185.6 kB / 0.561 GB, free: 9.344 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.894e-06/0.4559, allocations: 4.812 kB / 0.561 GB, free: 9.34 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.838e-05/0.4559, allocations: 8 kB / 0.561 GB, free: 9.332 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.112e-06/0.4559, allocations: 4 kB / 0.561 GB, free: 9.328 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.045e-05/0.456, allocations: 4 kB / 0.561 GB, free: 9.324 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.193e-06/0.456, allocations: 0 / 0.561 GB, free: 9.324 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.82e-07/0.456, allocations: 0 / 0.561 GB, free: 9.324 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003514/0.4563, allocations: 170.4 kB / 0.5612 GB, free: 9.137 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.721e-05/0.4564, allocations: 97.02 kB / 0.5613 GB, free: 9.023 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.768e-05/0.4564, allocations: 1.125 kB / 0.5613 GB, free: 9.023 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.146e-05/0.4565, allocations: 0 / 0.5613 GB, free: 9.023 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.211e-05/0.4565, allocations: 15.92 kB / 0.5613 GB, free: 9.008 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.873e-06/0.4565, allocations: 4 kB / 0.5613 GB, free: 9.004 MB / 462.1 MB Notification: Performance of sorting global known variables: time 9.005e-05/0.4566, allocations: 108.8 kB / 0.5614 GB, free: 8.898 MB / 462.1 MB Notification: Performance of sort global known variables: time 8e-08/0.4566, allocations: 0 / 0.5614 GB, free: 8.898 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.0004906/0.4571, allocations: 163.5 kB / 0.5616 GB, free: 8.738 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.001551/0.4586, allocations: 1.026 MB / 0.5626 GB, free: 7.688 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.0002224/0.4588, allocations: 63.95 kB / 0.5626 GB, free: 7.625 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 1.733e-06/0.4588, allocations: 4.062 kB / 0.5626 GB, free: 7.621 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 7.565e-05/0.4589, allocations: 23.98 kB / 0.5627 GB, free: 7.598 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002611/0.4592, allocations: 34.31 kB / 0.5627 GB, free: 7.57 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002086/0.4613, allocations: 1.728 MB / 0.5644 GB, free: 5.738 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003499/0.4616, allocations: 0.6963 MB / 0.5651 GB, free: 5.016 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 5.184e-05/0.4617, allocations: 12.59 kB / 0.5651 GB, free: 5.004 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.226e-05/0.4617, allocations: 23.44 kB / 0.5651 GB, free: 4.98 MB / 462.1 MB Notification: Performance of SimCode: time 2.91e-07/0.4617, allocations: 0 / 0.5651 GB, free: 4.98 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03057/0.4923, allocations: 6.325 MB / 0.5713 GB, free: 14.8 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.485/8.978, allocations: 5.156 kB / 0.5713 GB, free: 14.8 MB / 478.1 MB " [Timeout remaining time 651] (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 & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_TX_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.00019992 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.csv","/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: 11.517273772042245]