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.001795/0.001795, allocations: 109.5 kB / 20.43 MB, free: 1.457 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.002119/0.002119, allocations: 183.9 kB / 23.72 MB, free: 4.699 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.408/1.408, allocations: 225.6 MB / 252.5 MB, free: 13.02 MB / 206.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.001581/0.001581, allocations: 51.92 kB / 370.4 MB, free: 9.859 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2334/0.235, allocations: 52.19 MB / 422.6 MB, free: 14.59 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_TX): time 0.002525/0.2375, allocations: 1.378 MB / 424 MB, free: 13.2 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.3917/0.6293, allocations: 149.5 MB / 0.5601 GB, free: 13.71 MB / 462.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.503e-05/0.6293, allocations: 0 / 0.5601 GB, free: 13.71 MB / 462.1 MB Notification: Performance of NFTyping.typeComponents: time 3.795e-05/0.6294, allocations: 2.531 kB / 0.5601 GB, free: 13.71 MB / 462.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001157/0.6305, allocations: 394.3 kB / 0.5605 GB, free: 13.63 MB / 462.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001082/0.6316, allocations: 0.516 MB / 0.561 GB, free: 13.55 MB / 462.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001022/0.6317, allocations: 70.22 kB / 0.561 GB, free: 13.53 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.366e-05/0.6317, allocations: 3.344 kB / 0.561 GB, free: 13.53 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.304e-05/0.6318, allocations: 39.95 kB / 0.5611 GB, free: 13.52 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.24e-05/0.6319, allocations: 37.55 kB / 0.5611 GB, free: 13.52 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 1.265e-05/0.6319, allocations: 3 kB / 0.5611 GB, free: 13.52 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001676/0.6336, allocations: 1.143 MB / 0.5622 GB, free: 13.41 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 3.965e-05/0.6336, allocations: 13.28 kB / 0.5623 GB, free: 13.41 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 4.529e-05/0.6336, allocations: 32.58 kB / 0.5623 GB, free: 13.41 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001002/0.6346, allocations: 0.6918 MB / 0.563 GB, free: 13.36 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.948e-06/0.6346, allocations: 0 / 0.563 GB, free: 13.36 MB / 462.1 MB Notification: Performance of FrontEnd: time 2.044e-06/0.6346, allocations: 0 / 0.563 GB, free: 13.36 MB / 462.1 MB Notification: Performance of Transformations before backend: time 9.378e-06/0.6347, allocations: 0 / 0.563 GB, free: 13.36 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.0006589/0.6353, allocations: 395.6 kB / 0.5633 GB, free: 13.03 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.924e-05/0.6354, allocations: 7.938 kB / 0.5633 GB, free: 13.03 MB / 462.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.069e-05/0.6354, allocations: 43.78 kB / 0.5634 GB, free: 12.98 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004392/0.6358, allocations: 65.92 kB / 0.5634 GB, free: 12.98 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001649/0.636, allocations: 146.8 kB / 0.5636 GB, free: 12.84 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.622e-05/0.636, allocations: 5.344 kB / 0.5636 GB, free: 12.84 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.159e-05/0.636, allocations: 6.688 kB / 0.5636 GB, free: 12.84 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001629/0.6362, allocations: 77.2 kB / 0.5637 GB, free: 12.79 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.736e-06/0.6362, allocations: 0 / 0.5637 GB, free: 12.79 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.554e-06/0.6362, allocations: 1.203 kB / 0.5637 GB, free: 12.79 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.438e-06/0.6362, allocations: 2.5 kB / 0.5637 GB, free: 12.79 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.249e-05/0.6363, allocations: 41.11 kB / 0.5637 GB, free: 12.79 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002051/0.6365, allocations: 164.5 kB / 0.5639 GB, free: 12.62 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000306/0.6368, allocations: 119 kB / 0.564 GB, free: 12.56 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.781e-05/0.6369, allocations: 36.7 kB / 0.564 GB, free: 12.55 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005209/0.6374, allocations: 59.33 kB / 0.5641 GB, free: 12.54 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.509e-05/0.6375, allocations: 30.56 kB / 0.5641 GB, free: 12.5 MB / 462.1 MB Notification: Performance of pre-optimization done (n=6): time 1.262e-06/0.6375, allocations: 3.938 kB / 0.5641 GB, free: 12.5 MB / 462.1 MB Notification: Performance of matching and sorting (n=6): time 0.0003364/0.6378, allocations: 119.4 kB / 0.5642 GB, free: 12.46 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.299e-05/0.6379, allocations: 90.7 kB / 0.5643 GB, free: 12.36 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001157/0.638, allocations: 140.5 kB / 0.5644 GB, free: 12.26 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 1.788e-05/0.638, allocations: 25.7 kB / 0.5645 GB, free: 12.23 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.789e-05/0.6381, allocations: 86.3 kB / 0.5646 GB, free: 12.15 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.579e-05/0.6381, allocations: 26.31 kB / 0.5646 GB, free: 12.13 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.633e-05/0.6381, allocations: 22.7 kB / 0.5646 GB, free: 12.12 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001397/0.6383, allocations: 316.3 kB / 0.5649 GB, free: 11.8 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.521e-05/0.6383, allocations: 25.89 kB / 0.5649 GB, free: 11.8 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.605e-05/0.6384, allocations: 53.59 kB / 0.565 GB, free: 11.77 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001458/0.6386, allocations: 87.52 kB / 0.5651 GB, free: 11.73 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.014e-06/0.6386, allocations: 0 / 0.5651 GB, free: 11.73 MB / 462.1 MB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0002331/0.6388, allocations: 112.5 kB / 0.5652 GB, free: 11.68 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.27e-05/0.6388, allocations: 5.469 kB / 0.5652 GB, free: 11.68 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.19e-06/0.6388, allocations: 2.438 kB / 0.5652 GB, free: 11.68 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.326e-05/0.6388, allocations: 0 / 0.5652 GB, free: 11.68 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.84e-05/0.6389, allocations: 18.92 kB / 0.5652 GB, free: 11.68 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.34e-06/0.6389, allocations: 2.25 kB / 0.5652 GB, free: 11.68 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.566e-05/0.6389, allocations: 6.312 kB / 0.5652 GB, free: 11.68 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.344e-06/0.639, allocations: 3.594 kB / 0.5652 GB, free: 11.68 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.527e-05/0.639, allocations: 119.1 kB / 0.5653 GB, free: 11.56 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.179e-05/0.6391, allocations: 12.11 kB / 0.5653 GB, free: 11.55 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002254/0.6393, allocations: 108.3 kB / 0.5654 GB, free: 11.51 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.775e-06/0.6393, allocations: 1.875 kB / 0.5654 GB, free: 11.51 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.597e-06/0.6393, allocations: 0 / 0.5654 GB, free: 11.51 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.326e-06/0.6393, allocations: 2.719 kB / 0.5654 GB, free: 11.51 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001516/0.6395, allocations: 153.4 kB / 0.5656 GB, free: 11.36 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.155e-06/0.6395, allocations: 2.5 kB / 0.5656 GB, free: 11.36 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.597e-05/0.6396, allocations: 13 kB / 0.5656 GB, free: 11.36 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.853e-06/0.6396, allocations: 4 kB / 0.5656 GB, free: 11.35 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.817e-06/0.6396, allocations: 1.844 kB / 0.5656 GB, free: 11.35 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.59e-06/0.6396, allocations: 8.938 kB / 0.5656 GB, free: 11.35 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.61e-07/0.6396, allocations: 0 / 0.5656 GB, free: 11.35 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003164/0.6399, allocations: 166.7 kB / 0.5658 GB, free: 11.27 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.054e-05/0.6399, allocations: 17.03 kB / 0.5658 GB, free: 11.26 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.926e-05/0.64, allocations: 3.188 kB / 0.5658 GB, free: 11.26 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.536e-05/0.64, allocations: 8.406 kB / 0.5658 GB, free: 11.25 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.497e-05/0.64, allocations: 5 kB / 0.5658 GB, free: 11.25 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.919e-06/0.64, allocations: 2.125 kB / 0.5658 GB, free: 11.25 MB / 462.1 MB Notification: Performance of sorting global known variables: time 9.133e-05/0.6401, allocations: 121.5 kB / 0.5659 GB, free: 11.18 MB / 462.1 MB Notification: Performance of sort global known variables: time 8e-08/0.6401, allocations: 0 / 0.5659 GB, free: 11.18 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.000536/0.6407, allocations: 159 kB / 0.5661 GB, free: 11.14 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.00148/0.6422, allocations: 1.019 MB / 0.5671 GB, free: 10.47 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.0002099/0.6424, allocations: 65.03 kB / 0.5671 GB, free: 10.47 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 1.803e-06/0.6424, allocations: 0 / 0.5671 GB, free: 10.47 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 7.006e-05/0.6424, allocations: 33.2 kB / 0.5672 GB, free: 10.46 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002403/0.6427, allocations: 20.86 kB / 0.5672 GB, free: 10.46 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001951/0.6446, allocations: 1.735 MB / 0.5689 GB, free: 9.164 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003336/0.645, allocations: 0.6915 MB / 0.5696 GB, free: 8.469 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 5.665e-05/0.645, allocations: 20.2 kB / 0.5696 GB, free: 8.461 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.949e-05/0.6451, allocations: 19.84 kB / 0.5696 GB, free: 8.453 MB / 462.1 MB Notification: Performance of SimCode: time 4.11e-07/0.6451, allocations: 1.203 kB / 0.5696 GB, free: 8.453 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03544/0.6805, allocations: 6.449 MB / 0.5759 GB, free: 6.551 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11/11.68, allocations: 4 kB / 0.5759 GB, free: 6.547 MB / 462.1 MB " [Timeout remaining time 648] (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: 14.181170083000325]