Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Media.Examples.R134a.R134a1.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.R134a.R134a1,fileNamePrefix="Modelica_trunk_Modelica_Media_Examples_R134a_R134a1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Media.Examples.R134a.R134a1,fileNamePrefix="Modelica_trunk_Modelica_Media_Examples_R134a_R134a1",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001/0.001, allocations: 104.1 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001142/0.001142, allocations: 214.4 kB / 18.58 MB, free: 4.406 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.245/1.245, allocations: 227.4 MB / 246.8 MB, free: 10.54 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001264/0.001264, allocations: 67.72 kB / 307 MB, free: 0.5195 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07772/0.07901, allocations: 50.52 MB / 357.6 MB, free: 14 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.R134a.R134a1): time 0.1498/0.2289, allocations: 26.67 MB / 384.2 MB, free: 5.496 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.02253/0.2514, allocations: 24.9 MB / 409.1 MB, free: 3.762 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000369/0.2518, allocations: 7.812 kB / 409.1 MB, free: 3.758 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007721/0.2526, allocations: 288.8 kB / 409.4 MB, free: 3.527 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007505/0.2534, allocations: 366.5 kB / 409.8 MB, free: 3.23 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0111/0.2645, allocations: 4.024 MB / 413.8 MB, free: 456 kB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001147/0.2657, allocations: 0.9437 MB / 414.8 MB, free: 15.92 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001881/0.2659, allocations: 111.7 kB / 414.9 MB, free: 15.86 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004795/0.2664, allocations: 388.5 kB / 415.2 MB, free: 15.66 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003094/0.2667, allocations: 301.2 kB / 415.5 MB, free: 15.49 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.737e-05/0.2668, allocations: 37.31 kB / 415.6 MB, free: 15.49 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01742/0.2842, allocations: 10.41 MB / 426 MB, free: 6.344 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001844/0.2844, allocations: 99.73 kB / 426.1 MB, free: 6.246 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003627/0.2848, allocations: 227.2 kB / 426.3 MB, free: 6.023 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02972/0.3145, allocations: 11.49 MB / 437.8 MB, free: 10.52 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.845e-06/0.3146, allocations: 4 kB / 437.8 MB, free: 10.52 MB / 350.1 MB Notification: Performance of FrontEnd: time 3.627e-06/0.3146, allocations: 0 / 437.8 MB, free: 10.52 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.71e-05/0.3146, allocations: 0 / 437.8 MB, free: 10.52 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 81 * Number of variables: 81 Notification: Performance of Generate backend data structure: time 0.006013/0.3206, allocations: 1.135 MB / 438.9 MB, free: 9.332 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.523e-05/0.3207, allocations: 8.031 kB / 438.9 MB, free: 9.324 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001009/0.3208, allocations: 70.53 kB / 439 MB, free: 9.246 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006003/0.3214, allocations: 71.5 kB / 439.1 MB, free: 9.176 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004534/0.3219, allocations: 318.3 kB / 439.4 MB, free: 8.824 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.444e-05/0.3219, allocations: 24.66 kB / 439.4 MB, free: 8.801 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.525e-05/0.322, allocations: 35.91 kB / 439.5 MB, free: 8.766 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009545/0.323, allocations: 471.7 kB / 439.9 MB, free: 8.273 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.952e-05/0.323, allocations: 4 kB / 439.9 MB, free: 8.27 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.711e-05/0.323, allocations: 12 kB / 439.9 MB, free: 8.258 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.065e-05/0.3231, allocations: 8 kB / 439.9 MB, free: 8.25 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007576/0.3238, allocations: 386.3 kB / 440.3 MB, free: 7.871 MB / 350.1 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003555/0.3274, allocations: 2.956 MB / 443.3 MB, free: 4.684 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006723/0.3281, allocations: 294 kB / 443.6 MB, free: 4.391 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002148/0.3283, allocations: 132.8 kB / 443.7 MB, free: 4.258 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002436/0.3307, allocations: 2.47 MB / 446.2 MB, free: 1.289 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.828e-05/0.3308, allocations: 42.56 kB / 446.2 MB, free: 1.238 MB / 350.1 MB Notification: Performance of pre-optimization done (n=30): time 1.794e-06/0.3308, allocations: 0 / 446.2 MB, free: 1.238 MB / 350.1 MB Notification: Performance of matching and sorting (n=34): time 0.004892/0.3357, allocations: 1.291 MB / 447.5 MB, free: 15.87 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.152e-05/0.3357, allocations: 59.41 kB / 447.5 MB, free: 15.8 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002546/0.336, allocations: 258.5 kB / 447.8 MB, free: 15.54 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.761e-05/0.336, allocations: 33.7 kB / 447.8 MB, free: 15.5 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001136/0.3362, allocations: 192 kB / 448 MB, free: 15.3 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.464e-05/0.3363, allocations: 122.2 kB / 448.1 MB, free: 15.19 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001103/0.3364, allocations: 82.03 kB / 448.2 MB, free: 15.1 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001122/0.3365, allocations: 338.8 kB / 448.6 MB, free: 14.76 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001936/0.3367, allocations: 120.8 kB / 448.7 MB, free: 14.64 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002573/0.337, allocations: 230 kB / 448.9 MB, free: 14.37 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004757/0.3374, allocations: 369.5 kB / 449.3 MB, free: 13.96 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.085e-06/0.3375, allocations: 7.938 kB / 449.3 MB, free: 13.95 MB / 366.1 MB Notification: Performance of matching and sorting (n=50) (initialization): time 0.0007819/0.3382, allocations: 458.6 kB / 449.7 MB, free: 13.49 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.597e-05/0.3383, allocations: 4 kB / 449.7 MB, free: 13.48 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.025e-06/0.3383, allocations: 4 kB / 449.7 MB, free: 13.48 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004447/0.3427, allocations: 237.9 kB / 450 MB, free: 13.24 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003042/0.343, allocations: 87.83 kB / 450 MB, free: 13.16 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00138/0.3444, allocations: 1.943 MB / 452 MB, free: 11.05 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001827/0.3446, allocations: 12.19 kB / 452 MB, free: 11.04 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.486e-05/0.3447, allocations: 28.8 kB / 452 MB, free: 11.01 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 3 (ambient.medium.phase,fixedMassFlowRate.medium.phase,volume.medium.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (48): * Single equations (assignments): 46 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(1,1), (1,1)} Notification: Performance of prepare postOptimizeDAE: time 0.0001682/0.3449, allocations: 165.7 kB / 452.2 MB, free: 10.84 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.802e-05/0.3449, allocations: 35.56 kB / 452.2 MB, free: 10.8 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009653/0.3459, allocations: 0.689 MB / 452.9 MB, free: 10.1 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.023e-05/0.3459, allocations: 11.98 kB / 452.9 MB, free: 10.09 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.963e-06/0.3459, allocations: 0 / 452.9 MB, free: 10.09 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0007861/0.3467, allocations: 0.8595 MB / 453.8 MB, free: 9.141 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00137/0.3481, allocations: 1.194 MB / 455 MB, free: 7.883 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.629e-06/0.3481, allocations: 1.062 kB / 455 MB, free: 7.883 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002336/0.3484, allocations: 63.91 kB / 455 MB, free: 7.82 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001431/0.3498, allocations: 180.6 kB / 455.2 MB, free: 7.641 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.139e-05/0.3498, allocations: 4 kB / 455.2 MB, free: 7.637 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000333/0.3502, allocations: 0.5719 MB / 455.8 MB, free: 7.039 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.007e-06/0.3502, allocations: 7.875 kB / 455.8 MB, free: 7.031 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000866/0.3511, allocations: 0.733 MB / 456.5 MB, free: 6.285 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.697e-05/0.3512, allocations: 112.7 kB / 456.6 MB, free: 6.156 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.584e-05/0.3512, allocations: 8.062 kB / 456.6 MB, free: 6.148 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001791/0.3514, allocations: 8 kB / 456.7 MB, free: 6.141 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.743e-05/0.3515, allocations: 27.91 kB / 456.7 MB, free: 6.113 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.465e-05/0.3515, allocations: 16 kB / 456.7 MB, free: 6.098 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002001/0.3517, allocations: 217.9 kB / 456.9 MB, free: 5.883 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.3517, allocations: 3.938 kB / 456.9 MB, free: 5.879 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.003735/0.3554, allocations: 0.7418 MB / 457.7 MB, free: 5.137 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (volume.medium.p,volume.medium.h) * Number of discrete variables: 4 ($cse3.phase,$cse4,$cse5.phase,$cse6) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (37): * Single equations (assignments): 34 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,1)} Notification: Performance of Backend phase and start with SimCode phase: time 0.03344/0.3889, allocations: 7.577 MB / 465.2 MB, free: 13.52 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.00113/0.39, allocations: 0.4896 MB / 465.7 MB, free: 13.02 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.548e-06/0.3901, allocations: 0.875 kB / 465.7 MB, free: 13.02 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004534/0.3905, allocations: 224.2 kB / 465.9 MB, free: 12.8 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001174/0.3917, allocations: 196.8 kB / 466.1 MB, free: 12.61 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008691/0.4004, allocations: 4.049 MB / 470.2 MB, free: 8.379 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004067/0.4009, allocations: 0.8008 MB / 471 MB, free: 7.551 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0005/0.4014, allocations: 195.7 kB / 471.2 MB, free: 7.363 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002011/0.4016, allocations: 143.3 kB / 471.3 MB, free: 7.223 MB / 382.1 MB Notification: Performance of SimCode: time 9.12e-07/0.4016, allocations: 0 / 471.3 MB, free: 7.223 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2803/0.6819, allocations: 33.58 MB / 0.4931 GB, free: 5.688 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.26/14.94, allocations: 14.19 kB / 0.4931 GB, free: 5.676 MB / 414.1 MB (rm -f Modelica_trunk_Modelica.Media.Examples.R134a.R134a1.pipe ; mkfifo Modelica_trunk_Modelica.Media.Examples.R134a.R134a1.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Media.Examples.R134a.R134a1.pipe >> ../files/Modelica_trunk_Modelica.Media.Examples.R134a.R134a1.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Media.Examples.R134a.R134a1_res.mat --tempDir=temp_Modelica_trunk_Modelica_Media_Examples_R134a_R134a1_fmu --startTime=0 --stopTime=1.01 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Media_Examples_R134a_R134a1.fmu > Modelica_trunk_Modelica.Media.Examples.R134a.R134a1.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Media.Examples.R134a.R134a1_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Media/Examples/R134a/R134a1/R134a1.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Media.Examples.R134a.R134a1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches