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.001477/0.001477, allocations: 108.6 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.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.001457/0.001457, allocations: 191.5 kB / 24.51 MB, free: 4.086 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.315/1.315, allocations: 225.6 MB / 253.3 MB, free: 13.01 MB / 206.1 MB " [Timeout remaining time 179] 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="cs",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="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001383/0.001383, allocations: 43.94 kB / 371.2 MB, free: 9.863 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2135/0.2149, allocations: 52.19 MB / 423.4 MB, free: 14.6 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_TX): time 0.00236/0.2172, allocations: 1.378 MB / 424.8 MB, free: 13.21 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.3585/0.5758, allocations: 149.5 MB / 0.5609 GB, free: 13.75 MB / 462.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.242e-05/0.5758, allocations: 0 / 0.5609 GB, free: 13.75 MB / 462.1 MB Notification: Performance of NFTyping.typeComponents: time 3.549e-05/0.5758, allocations: 6.375 kB / 0.5609 GB, free: 13.74 MB / 462.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001046/0.5769, allocations: 387.5 kB / 0.5612 GB, free: 13.66 MB / 462.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001012/0.5779, allocations: 0.5225 MB / 0.5618 GB, free: 13.58 MB / 462.1 MB Notification: Performance of NFFlatten.flatten: time 9.705e-05/0.578, allocations: 74.52 kB / 0.5618 GB, free: 13.56 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.475e-05/0.578, allocations: 2.094 kB / 0.5618 GB, free: 13.56 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.047e-05/0.5781, allocations: 35.77 kB / 0.5619 GB, free: 13.56 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.744e-05/0.5782, allocations: 40.17 kB / 0.5619 GB, free: 13.55 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 1.136e-05/0.5782, allocations: 4 kB / 0.5619 GB, free: 13.55 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001517/0.5797, allocations: 1.138 MB / 0.563 GB, free: 13.44 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 3.921e-05/0.5797, allocations: 19.02 kB / 0.563 GB, free: 13.44 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 3.638e-05/0.5798, allocations: 27.06 kB / 0.5631 GB, free: 13.44 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000802/0.5806, allocations: 0.6912 MB / 0.5637 GB, free: 13.39 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.857e-06/0.5806, allocations: 0 / 0.5637 GB, free: 13.39 MB / 462.1 MB Notification: Performance of FrontEnd: time 1.323e-06/0.5806, allocations: 0 / 0.5637 GB, free: 13.39 MB / 462.1 MB Notification: Performance of Transformations before backend: time 4.969e-06/0.5806, allocations: 1.203 kB / 0.5637 GB, free: 13.39 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.0005865/0.5812, allocations: 395.2 kB / 0.5641 GB, free: 13.06 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.304e-05/0.5812, allocations: 9.75 kB / 0.5641 GB, free: 13.06 MB / 462.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.201e-05/0.5812, allocations: 192 / 0.5641 GB, free: 13.06 MB / 462.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.329e-05/0.5813, allocations: 36.75 kB / 0.5642 GB, free: 13.02 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004281/0.5817, allocations: 68.17 kB / 0.5642 GB, free: 13.02 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001608/0.5818, allocations: 157.5 kB / 0.5644 GB, free: 12.87 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.506e-06/0.5819, allocations: 2.562 kB / 0.5644 GB, free: 12.87 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.884e-05/0.5819, allocations: 6.25 kB / 0.5644 GB, free: 12.87 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001468/0.582, allocations: 75.05 kB / 0.5644 GB, free: 12.82 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.553e-06/0.582, allocations: 0 / 0.5644 GB, free: 12.82 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.544e-06/0.582, allocations: 0 / 0.5644 GB, free: 12.82 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.386e-06/0.582, allocations: 0 / 0.5644 GB, free: 12.82 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.982e-05/0.5821, allocations: 47.09 kB / 0.5645 GB, free: 12.81 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001915/0.5823, allocations: 166.6 kB / 0.5647 GB, free: 12.65 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002676/0.5826, allocations: 109.2 kB / 0.5648 GB, free: 12.6 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.024e-05/0.5827, allocations: 34.98 kB / 0.5648 GB, free: 12.58 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004356/0.5831, allocations: 66.19 kB / 0.5649 GB, free: 12.57 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.418e-05/0.5831, allocations: 33.25 kB / 0.5649 GB, free: 12.54 MB / 462.1 MB Notification: Performance of pre-optimization done (n=6): time 1.032e-06/0.5831, allocations: 0 / 0.5649 GB, free: 12.54 MB / 462.1 MB Notification: Performance of matching and sorting (n=6): time 0.0003177/0.5834, allocations: 124.4 kB / 0.565 GB, free: 12.5 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.223e-05/0.5835, allocations: 77.11 kB / 0.5651 GB, free: 12.4 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001179/0.5836, allocations: 145.9 kB / 0.5652 GB, free: 12.3 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 1.616e-05/0.5836, allocations: 25.7 kB / 0.5652 GB, free: 12.27 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.327e-05/0.5837, allocations: 85.91 kB / 0.5653 GB, free: 12.19 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.146e-05/0.5837, allocations: 22.2 kB / 0.5653 GB, free: 12.17 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.913e-05/0.5837, allocations: 22.11 kB / 0.5654 GB, free: 12.16 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.000146/0.5839, allocations: 328.2 kB / 0.5657 GB, free: 11.84 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.05e-05/0.5839, allocations: 23.5 kB / 0.5657 GB, free: 11.84 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.631e-05/0.584, allocations: 54.72 kB / 0.5658 GB, free: 11.8 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001343/0.5841, allocations: 80.55 kB / 0.5658 GB, free: 11.77 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.743e-06/0.5842, allocations: 0 / 0.5658 GB, free: 11.77 MB / 462.1 MB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0002301/0.5844, allocations: 117.1 kB / 0.5659 GB, free: 11.71 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.225e-05/0.5844, allocations: 7.5 kB / 0.5659 GB, free: 11.71 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.819e-06/0.5844, allocations: 1.188 kB / 0.5659 GB, free: 11.71 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.192e-05/0.5844, allocations: 2.469 kB / 0.566 GB, free: 11.71 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.15e-05/0.5845, allocations: 15.06 kB / 0.566 GB, free: 11.71 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.989e-06/0.5845, allocations: 0 / 0.566 GB, free: 11.71 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.477e-05/0.5845, allocations: 8.531 kB / 0.566 GB, free: 11.71 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.322e-06/0.5845, allocations: 3.031 kB / 0.566 GB, free: 11.71 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.627e-05/0.5846, allocations: 118.2 kB / 0.5661 GB, free: 11.6 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.069e-05/0.5847, allocations: 13.48 kB / 0.5661 GB, free: 11.59 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002198/0.5849, allocations: 111.8 kB / 0.5662 GB, free: 11.54 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.864e-06/0.5849, allocations: 0 / 0.5662 GB, free: 11.54 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.118e-06/0.5849, allocations: 2.062 kB / 0.5662 GB, free: 11.54 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.847e-06/0.5849, allocations: 2.531 kB / 0.5662 GB, free: 11.54 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001425/0.585, allocations: 159.3 kB / 0.5664 GB, free: 11.38 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.62e-07/0.585, allocations: 2.406 kB / 0.5664 GB, free: 11.38 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.179e-05/0.5851, allocations: 15.23 kB / 0.5664 GB, free: 11.38 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.643e-06/0.5851, allocations: 2.625 kB / 0.5664 GB, free: 11.38 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.095e-06/0.5851, allocations: 4 kB / 0.5664 GB, free: 11.38 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.232e-06/0.5851, allocations: 1.812 kB / 0.5664 GB, free: 11.38 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.71e-07/0.5851, allocations: 0 / 0.5664 GB, free: 11.38 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002942/0.5854, allocations: 164.7 kB / 0.5665 GB, free: 11.3 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.24e-05/0.5855, allocations: 16.23 kB / 0.5666 GB, free: 11.29 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.785e-05/0.5855, allocations: 2.719 kB / 0.5666 GB, free: 11.29 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.138e-05/0.5855, allocations: 5.938 kB / 0.5666 GB, free: 11.29 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.275e-05/0.5855, allocations: 9.031 kB / 0.5666 GB, free: 11.28 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.02e-06/0.5856, allocations: 3.672 kB / 0.5666 GB, free: 11.28 MB / 462.1 MB Notification: Performance of sorting global known variables: time 6.981e-05/0.5856, allocations: 115.3 kB / 0.5667 GB, free: 11.21 MB / 462.1 MB Notification: Performance of sort global known variables: time 9.1e-08/0.5856, allocations: 0 / 0.5667 GB, free: 11.21 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.0004279/0.5861, allocations: 161.1 kB / 0.5668 GB, free: 11.18 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.001375/0.5874, allocations: 1.012 MB / 0.5678 GB, free: 10.51 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.0001838/0.5876, allocations: 64.5 kB / 0.5679 GB, free: 10.5 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 1.623e-06/0.5876, allocations: 2.531 kB / 0.5679 GB, free: 10.5 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 7.089e-05/0.5877, allocations: 33.06 kB / 0.5679 GB, free: 10.5 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000235/0.5879, allocations: 27.39 kB / 0.568 GB, free: 10.49 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001893/0.5898, allocations: 1.737 MB / 0.5697 GB, free: 9.191 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003011/0.5901, allocations: 0.6955 MB / 0.5703 GB, free: 8.492 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 5.2e-05/0.5902, allocations: 15.42 kB / 0.5703 GB, free: 8.488 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.964e-05/0.5902, allocations: 18.69 kB / 0.5704 GB, free: 8.48 MB / 462.1 MB Notification: Performance of SimCode: time 5.31e-07/0.5902, allocations: 0 / 0.5704 GB, free: 8.48 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02732/0.6175, allocations: 6.475 MB / 0.5767 GB, free: 6.566 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.38/11, allocations: 13.72 kB / 0.5767 GB, free: 6.562 MB / 462.1 MB " [Timeout remaining time 649] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_TX_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Media_Examples_SolveOneNonlinearEquation_Inverse_sh_TX_fmu --startTime=0 --stopTime=1 --stepSize=0.00019992 --timeout=50 --tolerance=1e-06 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.mat","/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: 13.415358146012295]