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.001252/0.001251, allocations: 117.7 kB / 17.79 MB, free: 5.258 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001361/0.001362, allocations: 204.6 kB / 18.73 MB, free: 4.316 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.35/1.35, allocations: 227.4 MB / 246.9 MB, free: 10.45 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00129/0.00129, allocations: 63.89 kB / 358.2 MB, free: 13.41 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2595/0.2608, allocations: 50.53 MB / 408.7 MB, free: 1.555 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.ReferenceAir.Inverse_sh_TX): time 0.002226/0.263, allocations: 1.386 MB / 410.1 MB, free: 164 kB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.02784/0.2909, allocations: 23.59 MB / 433.7 MB, free: 8.484 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.747e-05/0.291, allocations: 4 kB / 433.7 MB, free: 8.48 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001069/0.2912, allocations: 7.922 kB / 433.7 MB, free: 8.473 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01383/0.305, allocations: 5.991 MB / 439.7 MB, free: 2.48 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007096/0.3057, allocations: 338.8 kB / 440 MB, free: 2.148 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001332/0.3059, allocations: 79.69 kB / 440.1 MB, free: 2.07 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.08e-05/0.3059, allocations: 11.88 kB / 440.1 MB, free: 2.059 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.593e-05/0.306, allocations: 31.91 kB / 440.2 MB, free: 2.027 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.456e-05/0.3061, allocations: 31.84 kB / 440.2 MB, free: 1.996 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.373e-05/0.3061, allocations: 4 kB / 440.2 MB, free: 1.992 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0148/0.3209, allocations: 8.89 MB / 449.1 MB, free: 9.09 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 5.033e-05/0.321, allocations: 11.98 kB / 449.1 MB, free: 9.078 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 4.939e-05/0.321, allocations: 27.86 kB / 449.1 MB, free: 9.051 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01118/0.3322, allocations: 4.386 MB / 453.5 MB, free: 4.656 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.888e-06/0.3323, allocations: 3.984 kB / 453.5 MB, free: 4.652 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.876e-06/0.3323, allocations: 0 / 453.5 MB, free: 4.652 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.006e-05/0.3323, allocations: 0 / 453.5 MB, free: 4.652 MB / 366.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.002701/0.335, allocations: 0.9069 MB / 454.4 MB, free: 3.699 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.179e-05/0.3351, allocations: 8.031 kB / 454.4 MB, free: 3.691 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.653e-05/0.3351, allocations: 34.75 kB / 454.5 MB, free: 3.648 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.269e-05/0.3352, allocations: 8.844 kB / 454.5 MB, free: 3.641 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001939/0.3354, allocations: 211.5 kB / 454.7 MB, free: 3.395 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.743e-05/0.3354, allocations: 4 kB / 454.7 MB, free: 3.391 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.266e-05/0.3354, allocations: 0 / 454.7 MB, free: 3.391 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001839/0.3356, allocations: 71.39 kB / 454.8 MB, free: 3.309 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.785e-06/0.3356, allocations: 3.938 kB / 454.8 MB, free: 3.305 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.103e-05/0.3356, allocations: 0 / 454.8 MB, free: 3.305 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.627e-06/0.3357, allocations: 7.984 kB / 454.8 MB, free: 3.297 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001221/0.3358, allocations: 27.92 kB / 454.8 MB, free: 3.27 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002123/0.336, allocations: 202.5 kB / 455 MB, free: 3.02 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002941/0.3363, allocations: 93.17 kB / 455.1 MB, free: 2.91 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.53e-05/0.3364, allocations: 37.7 kB / 455.1 MB, free: 2.867 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.984e-05/0.3365, allocations: 8 kB / 455.1 MB, free: 2.859 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.209e-05/0.3365, allocations: 38.56 kB / 455.2 MB, free: 2.812 MB / 366.1 MB Notification: Performance of pre-optimization done (n=6): time 2.905e-06/0.3365, allocations: 3.984 kB / 455.2 MB, free: 2.809 MB / 366.1 MB Notification: Performance of matching and sorting (n=6): time 0.0003138/0.3368, allocations: 101.5 kB / 455.3 MB, free: 2.703 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.357e-05/0.3369, allocations: 81.09 kB / 455.4 MB, free: 2.605 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001084/0.337, allocations: 137.8 kB / 455.5 MB, free: 2.461 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.601e-05/0.337, allocations: 29.7 kB / 455.5 MB, free: 2.426 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.49e-05/0.3371, allocations: 88.14 kB / 455.6 MB, free: 2.336 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.024e-05/0.3371, allocations: 15.81 kB / 455.6 MB, free: 2.32 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.801e-05/0.3372, allocations: 21.7 kB / 455.6 MB, free: 2.293 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001/0.3373, allocations: 318.8 kB / 456 MB, free: 1.973 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.937e-05/0.3373, allocations: 19.98 kB / 456 MB, free: 1.953 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.152e-05/0.3374, allocations: 29.7 kB / 456 MB, free: 1.918 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001306/0.3375, allocations: 53.64 kB / 456.1 MB, free: 1.859 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.823e-06/0.3375, allocations: 0 / 456.1 MB, free: 1.859 MB / 366.1 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0001795/0.3377, allocations: 85.5 kB / 456.1 MB, free: 1.77 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.985e-05/0.3378, allocations: 10.97 kB / 456.1 MB, free: 1.762 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.795e-06/0.3378, allocations: 3.984 kB / 456.1 MB, free: 1.758 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.429e-05/0.3378, allocations: 0 / 456.1 MB, free: 1.758 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.201e-05/0.3379, allocations: 8 kB / 456.2 MB, free: 1.75 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.994e-06/0.3379, allocations: 4.375 kB / 456.2 MB, free: 1.746 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.773e-05/0.3379, allocations: 0 / 456.2 MB, free: 1.746 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.838e-06/0.3379, allocations: 7.984 kB / 456.2 MB, free: 1.738 MB / 366.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 9.143e-05/0.338, allocations: 125.7 kB / 456.3 MB, free: 1.605 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.581e-05/0.3381, allocations: 11.84 kB / 456.3 MB, free: 1.594 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000243/0.3383, allocations: 101.5 kB / 456.4 MB, free: 1.488 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.254e-06/0.3383, allocations: 0 / 456.4 MB, free: 1.488 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.504e-06/0.3383, allocations: 0 / 456.4 MB, free: 1.488 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.329e-06/0.3383, allocations: 4.5 kB / 456.4 MB, free: 1.484 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001482/0.3385, allocations: 181.6 kB / 456.6 MB, free: 1.258 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.754e-06/0.3385, allocations: 0 / 456.6 MB, free: 1.258 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.889e-05/0.3386, allocations: 19.98 kB / 456.6 MB, free: 1.238 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.494e-06/0.3386, allocations: 0 / 456.6 MB, free: 1.238 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.497e-06/0.3386, allocations: 0 / 456.6 MB, free: 1.238 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.713e-06/0.3386, allocations: 3.938 kB / 456.6 MB, free: 1.234 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.865e-06/0.3386, allocations: 4 kB / 456.6 MB, free: 1.23 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002162/0.3388, allocations: 118 kB / 456.7 MB, free: 1.094 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.737e-05/0.3389, allocations: 93.09 kB / 456.8 MB, free: 0.9844 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.552e-05/0.3389, allocations: 0 / 456.8 MB, free: 0.9844 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.248e-05/0.339, allocations: 7.984 kB / 456.8 MB, free: 0.9766 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.403e-05/0.3391, allocations: 4 kB / 456.8 MB, free: 0.9727 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.826e-06/0.3391, allocations: 4 kB / 456.8 MB, free: 0.9688 MB / 366.1 MB Notification: Performance of sorting global known variables: time 8.553e-05/0.3392, allocations: 115.2 kB / 456.9 MB, free: 0.8555 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.3392, allocations: 0 / 456.9 MB, free: 0.8555 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.002612/0.3418, allocations: 0.9408 MB / 457.9 MB, free: 15.91 MB / 382.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.004918/0.3467, allocations: 1.88 MB / 459.8 MB, free: 14 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0001976/0.3469, allocations: 51.91 kB / 459.8 MB, free: 13.95 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.224e-06/0.347, allocations: 0 / 459.8 MB, free: 13.95 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 6.753e-05/0.347, allocations: 23.98 kB / 459.8 MB, free: 13.93 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002262/0.3473, allocations: 31.97 kB / 459.9 MB, free: 13.9 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002595/0.3499, allocations: 1.783 MB / 461.7 MB, free: 12.02 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002437/0.3501, allocations: 0.6923 MB / 462.3 MB, free: 11.3 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 5.052e-05/0.3502, allocations: 7.984 kB / 462.4 MB, free: 11.3 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.193e-05/0.3502, allocations: 27.42 kB / 462.4 MB, free: 11.27 MB / 382.1 MB Notification: Performance of SimCode: time 2.31e-07/0.3503, allocations: 0 / 462.4 MB, free: 11.27 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05333/0.4036, allocations: 29.47 MB / 491.9 MB, free: 13.86 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.69/9.094, allocations: 10.09 kB / 491.9 MB, free: 13.85 MB / 414.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