Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Media.Examples.ReferenceAir.Inverse_sh_TX.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Media.Examples.ReferenceAir.Inverse_sh_TX,fileNamePrefix="Modelica_trunk_Modelica_Media_Examples_ReferenceAir_Inverse_sh_TX",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Media.Examples.ReferenceAir.Inverse_sh_TX,fileNamePrefix="Modelica_trunk_Modelica_Media_Examples_ReferenceAir_Inverse_sh_TX",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001068/0.001071, allocations: 106.8 kB / 17.21 MB, free: 6.27 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001236/0.001236, allocations: 213.7 kB / 18.14 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.201/1.201, allocations: 227.4 MB / 246.3 MB, free: 10.74 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001709/0.001709, allocations: 64.3 kB / 306.3 MB, free: 0.9492 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08931/0.09104, allocations: 50.53 MB / 356.9 MB, free: 14.41 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.ReferenceAir.Inverse_sh_TX): time 0.002147/0.09322, allocations: 1.443 MB / 358.3 MB, free: 12.95 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.1624/0.2556, allocations: 25.41 MB / 383.7 MB, free: 8.16 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.761e-05/0.2557, allocations: 4 kB / 383.7 MB, free: 8.156 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001018/0.2558, allocations: 6.609 kB / 383.7 MB, free: 8.152 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01185/0.2677, allocations: 4.931 MB / 388.7 MB, free: 5.945 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006039/0.2683, allocations: 324.3 kB / 389 MB, free: 5.789 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001132/0.2684, allocations: 99.06 kB / 389.1 MB, free: 5.754 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.627e-05/0.2685, allocations: 2.953 kB / 389.1 MB, free: 5.754 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.148e-05/0.2685, allocations: 32.64 kB / 389.1 MB, free: 5.742 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.058e-05/0.2686, allocations: 40.09 kB / 389.2 MB, free: 5.727 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 1.465e-05/0.2686, allocations: 3.219 kB / 389.2 MB, free: 5.727 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01333/0.282, allocations: 8.929 MB / 398.1 MB, free: 1.172 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 3.668e-05/0.282, allocations: 13.2 kB / 398.1 MB, free: 1.164 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 3.9e-05/0.2821, allocations: 30 kB / 398.1 MB, free: 1.145 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007189/0.2893, allocations: 4.461 MB / 402.6 MB, free: 14.39 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.596e-06/0.2893, allocations: 3.938 kB / 402.6 MB, free: 14.38 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.102e-06/0.2893, allocations: 0 / 402.6 MB, free: 14.38 MB / 318.1 MB Notification: Performance of Transformations before backend: time 3.847e-06/0.2893, allocations: 4 kB / 402.6 MB, free: 14.38 MB / 318.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.002218/0.2915, allocations: 0.9129 MB / 403.5 MB, free: 13.42 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.672e-05/0.2916, allocations: 8.031 kB / 403.5 MB, free: 13.41 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.645e-05/0.2916, allocations: 38.75 kB / 403.6 MB, free: 13.36 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.216e-05/0.2917, allocations: 8.922 kB / 403.6 MB, free: 13.36 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001573/0.2918, allocations: 199.9 kB / 403.8 MB, free: 13.12 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.316e-05/0.2919, allocations: 4 kB / 403.8 MB, free: 13.12 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.175e-06/0.2919, allocations: 0 / 403.8 MB, free: 13.12 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001602/0.292, allocations: 71.39 kB / 403.8 MB, free: 13.04 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.135e-06/0.292, allocations: 3.984 kB / 403.8 MB, free: 13.03 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.207e-05/0.2921, allocations: 3.984 kB / 403.8 MB, free: 13.03 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.232e-06/0.2921, allocations: 4 kB / 403.9 MB, free: 13.02 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001176/0.2922, allocations: 39.86 kB / 403.9 MB, free: 12.98 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001929/0.2924, allocations: 190.5 kB / 404.1 MB, free: 12.75 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002847/0.2927, allocations: 93.17 kB / 404.2 MB, free: 12.64 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.788e-05/0.2928, allocations: 37.7 kB / 404.2 MB, free: 12.59 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.357e-05/0.2928, allocations: 12 kB / 404.2 MB, free: 12.58 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.217e-05/0.2929, allocations: 30.56 kB / 404.2 MB, free: 12.54 MB / 318.1 MB Notification: Performance of pre-optimization done (n=6): time 1.182e-06/0.2929, allocations: 0 / 404.2 MB, free: 12.54 MB / 318.1 MB Notification: Performance of matching and sorting (n=6): time 0.0002929/0.2932, allocations: 101.5 kB / 404.3 MB, free: 12.44 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.345e-05/0.2932, allocations: 81.09 kB / 404.4 MB, free: 12.34 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001094/0.2933, allocations: 141.8 kB / 404.6 MB, free: 12.19 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.672e-05/0.2934, allocations: 29.7 kB / 404.6 MB, free: 12.16 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.63e-05/0.2934, allocations: 84.14 kB / 404.7 MB, free: 12.07 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.951e-05/0.2934, allocations: 19.66 kB / 404.7 MB, free: 12.05 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.697e-05/0.2935, allocations: 21.7 kB / 404.7 MB, free: 12.02 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 9.582e-05/0.2936, allocations: 319.2 kB / 405 MB, free: 11.7 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.42e-05/0.2937, allocations: 15.98 kB / 405 MB, free: 11.69 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.284e-05/0.2937, allocations: 39.95 kB / 405.1 MB, free: 11.64 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001138/0.2938, allocations: 49.64 kB / 405.1 MB, free: 11.59 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.036e-06/0.2939, allocations: 7.938 kB / 405.1 MB, free: 11.58 MB / 318.1 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0001709/0.294, allocations: 77.59 kB / 405.2 MB, free: 11.5 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.313e-05/0.2941, allocations: 8 kB / 405.2 MB, free: 11.49 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.627e-06/0.2941, allocations: 0 / 405.2 MB, free: 11.49 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.788e-06/0.2941, allocations: 480 / 405.2 MB, free: 11.49 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.808e-05/0.2941, allocations: 12 kB / 405.2 MB, free: 11.48 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.019e-06/0.2942, allocations: 0 / 405.2 MB, free: 11.48 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.323e-05/0.2942, allocations: 15.89 kB / 405.2 MB, free: 11.46 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.222e-06/0.2942, allocations: 0 / 405.2 MB, free: 11.46 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * 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 (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 prepare postOptimizeDAE: time 8.373e-05/0.2943, allocations: 118.8 kB / 405.4 MB, free: 11.34 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.301e-05/0.2943, allocations: 4 kB / 405.4 MB, free: 11.34 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000228/0.2946, allocations: 101.5 kB / 405.5 MB, free: 11.23 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.877e-06/0.2946, allocations: 4 kB / 405.5 MB, free: 11.23 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.057e-06/0.2946, allocations: 4 kB / 405.5 MB, free: 11.22 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.324e-06/0.2946, allocations: 0 / 405.5 MB, free: 11.22 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001309/0.2947, allocations: 185.5 kB / 405.7 MB, free: 10.99 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.725e-06/0.2947, allocations: 0 / 405.7 MB, free: 10.99 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.838e-05/0.2948, allocations: 20.42 kB / 405.7 MB, free: 10.97 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.488e-06/0.2948, allocations: 4 kB / 405.7 MB, free: 10.97 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.873e-06/0.2948, allocations: 0 / 405.7 MB, free: 10.97 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.533e-06/0.2948, allocations: 0 / 405.7 MB, free: 10.97 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.164e-06/0.2948, allocations: 0.625 kB / 405.7 MB, free: 10.97 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001872/0.295, allocations: 117.9 kB / 405.8 MB, free: 10.83 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.288e-05/0.2951, allocations: 85 kB / 405.9 MB, free: 10.73 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.986e-05/0.2951, allocations: 9.25 kB / 405.9 MB, free: 10.72 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.927e-05/0.2952, allocations: 3.984 kB / 405.9 MB, free: 10.72 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.066e-05/0.2952, allocations: 4 kB / 405.9 MB, free: 10.71 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.115e-06/0.2953, allocations: 4 kB / 405.9 MB, free: 10.71 MB / 318.1 MB Notification: Performance of sorting global known variables: time 6.833e-05/0.2953, allocations: 115.2 kB / 406 MB, free: 10.6 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2953, allocations: 4 kB / 406 MB, free: 10.59 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.002321/0.2977, allocations: 0.9447 MB / 407 MB, free: 9.648 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * 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 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.003902/0.3016, allocations: 1.892 MB / 408.9 MB, free: 7.734 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0001621/0.3018, allocations: 47.91 kB / 408.9 MB, free: 7.688 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.445e-06/0.3018, allocations: 0 / 408.9 MB, free: 7.688 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 6.471e-05/0.3018, allocations: 23.98 kB / 408.9 MB, free: 7.664 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002084/0.302, allocations: 19.98 kB / 408.9 MB, free: 7.645 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002062/0.3041, allocations: 1.792 MB / 410.7 MB, free: 5.754 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002145/0.3043, allocations: 0.6926 MB / 411.4 MB, free: 5.035 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 4.983e-05/0.3044, allocations: 4 kB / 411.4 MB, free: 5.031 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.029e-05/0.3044, allocations: 23.42 kB / 411.5 MB, free: 5.008 MB / 318.1 MB Notification: Performance of SimCode: time 2e-07/0.3045, allocations: 0 / 411.5 MB, free: 5.008 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.062/1.367, allocations: 29.27 MB / 440.7 MB, free: 7.797 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002266/1.367, allocations: 237.8 kB / 441 MB, free: 7.543 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.239/5.606, allocations: 3.375 kB / 441 MB, free: 7.543 MB / 350.1 MB (rm -f Modelica_trunk_Modelica.Media.Examples.ReferenceAir.Inverse_sh_TX.pipe ; mkfifo Modelica_trunk_Modelica.Media.Examples.ReferenceAir.Inverse_sh_TX.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Media.Examples.ReferenceAir.Inverse_sh_TX.pipe >> ../files/Modelica_trunk_Modelica.Media.Examples.ReferenceAir.Inverse_sh_TX.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Media.Examples.ReferenceAir.Inverse_sh_TX_res.mat --tempDir=temp_Modelica_trunk_Modelica_Media_Examples_ReferenceAir_Inverse_sh_TX_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Media_Examples_ReferenceAir_Inverse_sh_TX.fmu > Modelica_trunk_Modelica.Media.Examples.ReferenceAir.Inverse_sh_TX.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Media.Examples.ReferenceAir.Inverse_sh_TX_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Media/Examples/ReferenceAir/Inverse_sh_TX/Inverse_sh_TX.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Media.Examples.ReferenceAir.Inverse_sh_TX.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches