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.0009471/0.0009471, allocations: 76.08 kB / 20.67 MB, free: 3.891 MB / 18.57 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.000943/0.000943, allocations: 157.4 kB / 23.93 MB, free: 0.6289 MB / 18.57 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 0.8819/0.8819, allocations: 173.4 MB / 200.4 MB, free: 9.422 MB / 186.7 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="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 1.614e-06/1.614e-06, allocations: 0 / 318.4 MB, free: 6.359 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.212e-05/2.374e-05, allocations: 6.281 kB / 318.4 MB, free: 6.352 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_TX): time 0.002071/0.002095, allocations: 1.335 MB / 319.8 MB, free: 5.004 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.1151/0.1172, allocations: 128.1 MB / 447.9 MB, free: 4.41 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.995e-05/0.1173, allocations: 0 / 447.9 MB, free: 4.41 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 4.617e-05/0.1173, allocations: 3.938 kB / 447.9 MB, free: 4.406 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001097/0.1184, allocations: 386.1 kB / 448.2 MB, free: 4.027 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001008/0.1194, allocations: 0.528 MB / 448.8 MB, free: 3.5 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001214/0.1196, allocations: 83.56 kB / 448.8 MB, free: 3.418 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.086e-05/0.1196, allocations: 0 / 448.8 MB, free: 3.418 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 6.644e-05/0.1197, allocations: 39.91 kB / 448.9 MB, free: 3.379 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 8.203e-05/0.1198, allocations: 35.83 kB / 448.9 MB, free: 3.344 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 1.493e-05/0.1198, allocations: 4 kB / 448.9 MB, free: 3.34 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001338/0.1211, allocations: 0.9346 MB / 449.9 MB, free: 2.402 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 4.683e-05/0.1212, allocations: 15.91 kB / 449.9 MB, free: 2.387 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 4.893e-05/0.1212, allocations: 23.94 kB / 449.9 MB, free: 2.363 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0009894/0.1222, allocations: 0.7482 MB / 450.6 MB, free: 1.613 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.757e-06/0.1222, allocations: 0 / 450.6 MB, free: 1.613 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.054e-06/0.1222, allocations: 0 / 450.6 MB, free: 1.613 MB / 410.7 MB Notification: Performance of Transformations before backend: time 5.58e-06/0.1222, allocations: 0 / 450.6 MB, free: 1.613 MB / 410.7 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.0005535/0.1228, allocations: 381.2 kB / 451 MB, free: 1.211 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.265e-05/0.1228, allocations: 8.922 kB / 451 MB, free: 1.203 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.243e-05/0.1228, allocations: 42.73 kB / 451.1 MB, free: 1.152 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003147/0.1231, allocations: 68.81 kB / 451.1 MB, free: 1.086 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001295/0.1233, allocations: 145.6 kB / 451.3 MB, free: 0.918 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.497e-05/0.1233, allocations: 384 / 451.3 MB, free: 0.918 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.187e-05/0.1233, allocations: 15.92 kB / 451.3 MB, free: 0.9023 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001356/0.1234, allocations: 71.33 kB / 451.4 MB, free: 0.8203 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.485e-06/0.1235, allocations: 3.938 kB / 451.4 MB, free: 0.8164 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.049e-05/0.1235, allocations: 0 / 451.4 MB, free: 0.8164 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.363e-06/0.1235, allocations: 4 kB / 451.4 MB, free: 0.8125 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.581e-05/0.1235, allocations: 39.97 kB / 451.4 MB, free: 0.7734 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001638/0.1237, allocations: 161.7 kB / 451.6 MB, free: 0.5703 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002526/0.124, allocations: 117 kB / 451.7 MB, free: 448 kB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.316e-05/0.124, allocations: 29.77 kB / 451.7 MB, free: 412 kB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003431/0.1243, allocations: 63.94 kB / 451.8 MB, free: 348 kB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.101e-05/0.1244, allocations: 34.55 kB / 451.8 MB, free: 304 kB / 410.7 MB Notification: Performance of pre-optimization done (n=6): time 1.363e-06/0.1244, allocations: 0 / 451.8 MB, free: 304 kB / 410.7 MB Notification: Performance of matching and sorting (n=6): time 0.0002583/0.1246, allocations: 117.9 kB / 451.9 MB, free: 180 kB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.76e-05/0.1247, allocations: 81.11 kB / 452 MB, free: 80 kB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.1454/0.2701, allocations: 138.7 kB / 452.1 MB, free: 136.3 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 1.582e-05/0.2701, allocations: 26.8 kB / 452.2 MB, free: 136.3 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.61e-05/0.2701, allocations: 88.78 kB / 452.2 MB, free: 136.2 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.686e-05/0.2702, allocations: 25.45 kB / 452.3 MB, free: 136.2 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.147e-05/0.2702, allocations: 23.19 kB / 452.3 MB, free: 136.2 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 3.383e-05/0.2702, allocations: 321 kB / 452.6 MB, free: 135.9 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.165e-05/0.2703, allocations: 23.08 kB / 452.6 MB, free: 135.9 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.071e-05/0.2704, allocations: 49.66 kB / 452.7 MB, free: 135.9 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001228/0.2705, allocations: 80.02 kB / 452.8 MB, free: 135.8 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.747e-06/0.2705, allocations: 1.969 kB / 452.8 MB, free: 135.8 MB / 410.7 MB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0002154/0.2707, allocations: 113 kB / 452.9 MB, free: 135.8 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.826e-05/0.2708, allocations: 9.656 kB / 452.9 MB, free: 135.8 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.354e-06/0.2708, allocations: 1.156 kB / 452.9 MB, free: 135.8 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.804e-05/0.2708, allocations: 1.031 kB / 452.9 MB, free: 135.8 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.064e-05/0.2708, allocations: 18.45 kB / 452.9 MB, free: 135.8 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.182e-06/0.2708, allocations: 2.359 kB / 452.9 MB, free: 135.8 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.642e-05/0.2709, allocations: 7.078 kB / 452.9 MB, free: 135.8 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.536e-06/0.2709, allocations: 7.188 kB / 452.9 MB, free: 135.8 MB / 410.7 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 4.646e-05/0.2709, allocations: 119.7 kB / 453 MB, free: 135.7 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.762e-05/0.271, allocations: 9.125 kB / 453 MB, free: 135.7 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002006/0.2712, allocations: 113 kB / 453.2 MB, free: 135.6 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.097e-06/0.2712, allocations: 5.281 kB / 453.2 MB, free: 135.6 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.45e-06/0.2712, allocations: 1.969 kB / 453.2 MB, free: 135.6 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.986e-06/0.2712, allocations: 0.5 kB / 453.2 MB, free: 135.6 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.945e-05/0.2713, allocations: 147.8 kB / 453.3 MB, free: 135.5 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.964e-06/0.2713, allocations: 0.5625 kB / 453.3 MB, free: 135.5 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.049e-05/0.2714, allocations: 16.09 kB / 453.3 MB, free: 135.5 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.387e-06/0.2714, allocations: 1.719 kB / 453.3 MB, free: 135.5 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.777e-06/0.2714, allocations: 4 kB / 453.3 MB, free: 135.5 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.963e-06/0.2714, allocations: 6.469 kB / 453.3 MB, free: 135.5 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.683e-06/0.2714, allocations: 0.5312 kB / 453.3 MB, free: 135.5 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002337/0.2716, allocations: 164.1 kB / 453.5 MB, free: 135.4 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.819e-05/0.2716, allocations: 14.88 kB / 453.5 MB, free: 135.4 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.353e-05/0.2717, allocations: 1 kB / 453.5 MB, free: 135.4 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.273e-05/0.2717, allocations: 12.02 kB / 453.5 MB, free: 135.4 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.331e-05/0.2717, allocations: 2.688 kB / 453.5 MB, free: 135.4 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.009e-06/0.2717, allocations: 2.094 kB / 453.5 MB, free: 135.4 MB / 410.7 MB Notification: Performance of sorting global known variables: time 5.099e-05/0.2718, allocations: 117.3 kB / 453.6 MB, free: 135.3 MB / 410.7 MB Notification: Performance of sort global known variables: time 6e-08/0.2718, allocations: 0 / 453.6 MB, free: 135.3 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0004984/0.2723, allocations: 168.6 kB / 453.8 MB, free: 135.3 MB / 410.7 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.001179/0.2734, allocations: 1.043 MB / 454.8 MB, free: 134.7 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0001536/0.2736, allocations: 64.59 kB / 454.9 MB, free: 134.7 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.563e-06/0.2736, allocations: 1.281 kB / 454.9 MB, free: 134.7 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 4.48e-05/0.2736, allocations: 29.56 kB / 454.9 MB, free: 134.7 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001871/0.2738, allocations: 35.34 kB / 455 MB, free: 134.7 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001072/0.2749, allocations: 1.685 MB / 456.7 MB, free: 133.4 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.333e-05/0.2749, allocations: 76.73 kB / 456.7 MB, free: 133.3 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 4.641e-05/0.275, allocations: 21.03 kB / 456.8 MB, free: 133.3 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.437e-05/0.275, allocations: 23.94 kB / 456.8 MB, free: 133.3 MB / 410.7 MB Notification: Performance of SimCode: time 7.02e-07/0.275, allocations: 0 / 456.8 MB, free: 133.3 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01941/0.2945, allocations: 7.153 MB / 463.9 MB, free: 126.6 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.663/6.957, allocations: 0 / 463.9 MB, free: 126.6 MB / 410.7 MB " [Timeout remaining time 653] (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/jenkins/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/jenkins/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: 8.709971628151834]