Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_TX.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.00123/0.00123, allocations: 113 kB / 18.49 MB, free: 4.539 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.001332/0.001332, allocations: 217.4 kB / 21.46 MB, free: 1.586 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.375/1.375, allocations: 230.6 MB / 254.8 MB, free: 15.05 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+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_TX,fileNamePrefix="Modelica_4_1_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_1_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.001481/0.001481, allocations: 59.92 kB / 373.7 MB, free: 10.18 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09083/0.09231, allocations: 53.33 MB / 427 MB, free: 4.766 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_TX): time 0.00251/0.09482, allocations: 1.387 MB / 428.4 MB, free: 3.367 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.3343/0.4292, allocations: 152.4 MB / 0.5672 GB, free: 6.66 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.498e-05/0.4292, allocations: 0 / 0.5672 GB, free: 6.66 MB / 478.1 MB Notification: Performance of NFTyping.typeComponents: time 4.428e-05/0.4293, allocations: 3.984 kB / 0.5672 GB, free: 6.656 MB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001133/0.4304, allocations: 379.7 kB / 0.5675 GB, free: 6.285 MB / 478.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001186/0.4316, allocations: 0.5065 MB / 0.568 GB, free: 5.781 MB / 478.1 MB Notification: Performance of NFFlatten.flatten: time 0.000115/0.4317, allocations: 75.59 kB / 0.5681 GB, free: 5.707 MB / 478.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.746e-05/0.4317, allocations: 7.984 kB / 0.5681 GB, free: 5.699 MB / 478.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.101e-05/0.4318, allocations: 31.91 kB / 0.5681 GB, free: 5.668 MB / 478.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.671e-05/0.4319, allocations: 31.84 kB / 0.5682 GB, free: 5.637 MB / 478.1 MB Notification: Performance of NFPackage.collectConstants: time 1.498e-05/0.4319, allocations: 4 kB / 0.5682 GB, free: 5.633 MB / 478.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001854/0.4337, allocations: 1.134 MB / 0.5693 GB, free: 4.496 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 4.235e-05/0.4338, allocations: 19.92 kB / 0.5693 GB, free: 4.477 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 3.911e-05/0.4338, allocations: 27.88 kB / 0.5693 GB, free: 4.449 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001026/0.4349, allocations: 0.6902 MB / 0.57 GB, free: 3.762 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.929e-06/0.4349, allocations: 4 kB / 0.57 GB, free: 3.758 MB / 478.1 MB Notification: Performance of FrontEnd: time 1.062e-06/0.4349, allocations: 0 / 0.57 GB, free: 3.758 MB / 478.1 MB Notification: Performance of Transformations before backend: time 4.248e-06/0.4349, allocations: 0 / 0.57 GB, free: 3.758 MB / 478.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.0006285/0.4355, allocations: 464.9 kB / 0.5704 GB, free: 3.258 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.518e-05/0.4355, allocations: 12.03 kB / 0.5704 GB, free: 3.246 MB / 478.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.153e-05/0.4355, allocations: 192 / 0.5704 GB, free: 3.246 MB / 478.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.405e-05/0.4356, allocations: 42.73 kB / 0.5705 GB, free: 3.195 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000467/0.436, allocations: 64.81 kB / 0.5705 GB, free: 3.133 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001959/0.4362, allocations: 203.8 kB / 0.5707 GB, free: 2.895 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.337e-05/0.4362, allocations: 4 kB / 0.5707 GB, free: 2.891 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.425e-05/0.4363, allocations: 4 kB / 0.5708 GB, free: 2.887 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001541/0.4364, allocations: 67.39 kB / 0.5708 GB, free: 2.809 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.095e-06/0.4364, allocations: 4 kB / 0.5708 GB, free: 2.805 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.157e-06/0.4364, allocations: 0.625 kB / 0.5708 GB, free: 2.805 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.647e-06/0.4364, allocations: 0 / 0.5708 GB, free: 2.805 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001069/0.4366, allocations: 47.91 kB / 0.5709 GB, free: 2.758 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002188/0.4368, allocations: 198.5 kB / 0.5711 GB, free: 2.512 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003044/0.4371, allocations: 109.2 kB / 0.5712 GB, free: 2.387 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.92e-05/0.4372, allocations: 37.7 kB / 0.5712 GB, free: 2.344 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004905/0.4376, allocations: 145 kB / 0.5713 GB, free: 2.184 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.366e-05/0.4377, allocations: 30.56 kB / 0.5714 GB, free: 2.145 MB / 478.1 MB Notification: Performance of pre-optimization done (n=6): time 1.232e-06/0.4377, allocations: 0 / 0.5714 GB, free: 2.145 MB / 478.1 MB Notification: Performance of matching and sorting (n=6): time 0.0003579/0.438, allocations: 121.7 kB / 0.5715 GB, free: 2.02 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.256e-05/0.4381, allocations: 77.11 kB / 0.5716 GB, free: 1.926 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001291/0.4382, allocations: 143.1 kB / 0.5717 GB, free: 1.777 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 1.515e-05/0.4382, allocations: 29.7 kB / 0.5717 GB, free: 1.742 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.083e-05/0.4383, allocations: 92.12 kB / 0.5718 GB, free: 1.648 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.27e-05/0.4383, allocations: 19.8 kB / 0.5718 GB, free: 1.629 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.854e-05/0.4383, allocations: 21.72 kB / 0.5718 GB, free: 1.602 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001301/0.4385, allocations: 326.7 kB / 0.5722 GB, free: 1.273 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.786e-05/0.4385, allocations: 24.55 kB / 0.5722 GB, free: 1.25 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.014e-05/0.4386, allocations: 55.41 kB / 0.5722 GB, free: 1.184 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001555/0.4388, allocations: 83.34 kB / 0.5723 GB, free: 1.09 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.114e-06/0.4388, allocations: 0 / 0.5723 GB, free: 1.09 MB / 478.1 MB Notification: Performance of matching and sorting (n=8) (initialization): time 0.000249/0.439, allocations: 110 kB / 0.5724 GB, free: 0.9766 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.28e-05/0.4391, allocations: 8.062 kB / 0.5724 GB, free: 0.9688 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.929e-06/0.4391, allocations: 0 / 0.5724 GB, free: 0.9688 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.446e-05/0.4391, allocations: 4 kB / 0.5724 GB, free: 0.9648 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.763e-05/0.4391, allocations: 15.98 kB / 0.5724 GB, free: 0.9492 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.439e-06/0.4391, allocations: 0 / 0.5724 GB, free: 0.9492 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.921e-05/0.4392, allocations: 10.89 kB / 0.5725 GB, free: 0.9414 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.938e-06/0.4392, allocations: 4 kB / 0.5725 GB, free: 0.9375 MB / 478.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 8.23e-05/0.4393, allocations: 117.8 kB / 0.5726 GB, free: 0.8125 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.086e-05/0.4393, allocations: 4 kB / 0.5726 GB, free: 0.8086 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002625/0.4396, allocations: 119.5 kB / 0.5727 GB, free: 0.6836 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.649e-06/0.4396, allocations: 4 kB / 0.5727 GB, free: 0.6797 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.208e-06/0.4396, allocations: 0 / 0.5727 GB, free: 0.6797 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.476e-06/0.4396, allocations: 0 / 0.5727 GB, free: 0.6797 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001595/0.4398, allocations: 185.5 kB / 0.5729 GB, free: 460 kB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.273e-06/0.4398, allocations: 3.938 kB / 0.5729 GB, free: 456 kB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.293e-05/0.4399, allocations: 15.98 kB / 0.5729 GB, free: 440 kB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.964e-06/0.4399, allocations: 0 / 0.5729 GB, free: 440 kB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.375e-06/0.4399, allocations: 3.938 kB / 0.5729 GB, free: 436 kB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.226e-06/0.4399, allocations: 8 kB / 0.5729 GB, free: 428 kB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.703e-06/0.4399, allocations: 0.625 kB / 0.5729 GB, free: 428 kB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003376/0.4402, allocations: 162.2 kB / 0.5731 GB, free: 244 kB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.275e-05/0.4403, allocations: 85.12 kB / 0.5731 GB, free: 140 kB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.305e-05/0.4403, allocations: 11.97 kB / 0.5731 GB, free: 128 kB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.306e-05/0.4403, allocations: 4 kB / 0.5732 GB, free: 124 kB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.403e-05/0.4404, allocations: 12 kB / 0.5732 GB, free: 112 kB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.2e-06/0.4404, allocations: 0.875 kB / 0.5732 GB, free: 112 kB / 478.1 MB Notification: Performance of sorting global known variables: time 0.0001015/0.4405, allocations: 119.6 kB / 0.5733 GB, free: 15.99 MB / 494.1 MB Notification: Performance of sort global known variables: time 8e-08/0.4405, allocations: 0 / 0.5733 GB, free: 15.99 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0005126/0.441, allocations: 167.4 kB / 0.5734 GB, free: 15.83 MB / 494.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.001401/0.4424, allocations: 1.003 MB / 0.5744 GB, free: 14.79 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0002094/0.4426, allocations: 63.89 kB / 0.5745 GB, free: 14.73 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.874e-06/0.4426, allocations: 4 kB / 0.5745 GB, free: 14.73 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 7.612e-05/0.4427, allocations: 27.92 kB / 0.5745 GB, free: 14.7 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002534/0.4429, allocations: 29.12 kB / 0.5745 GB, free: 14.68 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001977/0.4449, allocations: 1.752 MB / 0.5762 GB, free: 12.82 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002766/0.4452, allocations: 0.6923 MB / 0.5769 GB, free: 12.11 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 5.51e-05/0.4452, allocations: 24.3 kB / 0.5769 GB, free: 12.08 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.959e-05/0.4453, allocations: 19.44 kB / 0.577 GB, free: 12.06 MB / 494.1 MB Notification: Performance of SimCode: time 3.01e-07/0.4453, allocations: 0 / 0.577 GB, free: 12.06 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02506/0.4704, allocations: 6.31 MB / 0.5831 GB, free: 5.906 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.968/8.438, allocations: 11.59 kB / 0.5831 GB, free: 5.898 MB / 494.1 MB " [Timeout remaining time 651] (rm -f Modelica_4.1.0_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_TX.pipe ; mkfifo Modelica_4.1.0_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_TX.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_TX.pipe >> ../files/Modelica_4.1.0_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_TX.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_TX_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Media_Examples_SolveOneNonlinearEquation_Inverse_sh_TX_fmu --startTime=0 --stopTime=1 --stepSize=0.00019992 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Media_Examples_SolveOneNonlinearEquation_Inverse_sh_TX.fmu > Modelica_4.1.0_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_TX.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_TX_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Media/Examples/SolveOneNonlinearEquation/Inverse_sh_TX/Inverse_sh_TX.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.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: 10.903721762006171]