Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Media.Examples.R134a.R134a2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) 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.R134a.R134a2,fileNamePrefix="Modelica_4_0_0_Modelica_Media_Examples_R134a_R134a2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Media.Examples.R134a.R134a2,fileNamePrefix="Modelica_4_0_0_Modelica_Media_Examples_R134a_R134a2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008442/0.0008443, allocations: 88.39 kB / 16.31 MB, free: 6.449 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008655/0.0008653, allocations: 183.1 kB / 17.21 MB, free: 6.32 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.342/1.342, allocations: 223.3 MB / 241.2 MB, free: 5.43 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002409/0.000241, allocations: 8.297 kB / 300.9 MB, free: 6.102 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.104/0.1042, allocations: 50.43 MB / 351.3 MB, free: 11.61 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.R134a.R134a2): time 0.03605/0.1404, allocations: 34.75 MB / 386.1 MB, free: 8.762 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.03177/0.1722, allocations: 28.13 MB / 414.2 MB, free: 12.56 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006379/0.1729, allocations: 8 kB / 414.2 MB, free: 12.55 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001096/0.174, allocations: 314.2 kB / 414.5 MB, free: 12.25 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00116/0.1751, allocations: 493.3 kB / 415 MB, free: 11.76 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01277/0.1879, allocations: 3.828 MB / 418.8 MB, free: 7.926 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002342/0.1903, allocations: 1.698 MB / 420.5 MB, free: 6.219 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003451/0.1906, allocations: 122.3 kB / 420.7 MB, free: 6.098 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001049/0.1917, allocations: 478.2 kB / 421.1 MB, free: 5.629 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005222/0.1922, allocations: 430.3 kB / 421.5 MB, free: 5.207 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.552e-05/0.1923, allocations: 24 kB / 421.6 MB, free: 5.184 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.2694/0.4617, allocations: 51.73 MB / 473.3 MB, free: 5.609 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003166/0.4621, allocations: 121.8 kB / 473.4 MB, free: 5.543 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004113/0.4625, allocations: 140.4 kB / 473.5 MB, free: 5.441 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.03443/0.4969, allocations: 13.88 MB / 487.4 MB, free: 8.227 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.098e-05/0.497, allocations: 0 / 487.4 MB, free: 8.227 MB / 382.1 MB Notification: Performance of FrontEnd: time 3.136e-06/0.497, allocations: 0 / 487.4 MB, free: 8.227 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.055e-05/0.4971, allocations: 4 kB / 487.4 MB, free: 8.223 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 116 * Number of variables: 116 Notification: Performance of Generate backend data structure: time 0.009038/0.5061, allocations: 1.31 MB / 488.7 MB, free: 6.93 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.378e-05/0.5062, allocations: 12.03 kB / 488.8 MB, free: 6.918 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001272/0.5063, allocations: 89.58 kB / 488.8 MB, free: 6.852 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007527/0.5071, allocations: 87.39 kB / 488.9 MB, free: 6.766 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000472/0.5076, allocations: 379.5 kB / 489.3 MB, free: 6.434 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.796e-05/0.5076, allocations: 36.12 kB / 489.3 MB, free: 6.414 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.874e-05/0.5077, allocations: 42.06 kB / 489.4 MB, free: 6.387 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001175/0.5088, allocations: 0.6175 MB / 490 MB, free: 5.91 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.106e-05/0.5089, allocations: 4 kB / 490 MB, free: 5.906 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.551e-05/0.5089, allocations: 24.83 kB / 490 MB, free: 5.902 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.517e-05/0.509, allocations: 12 kB / 490 MB, free: 5.891 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009712/0.5099, allocations: 0.5273 MB / 490.6 MB, free: 5.535 MB / 382.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.003789/0.5137, allocations: 3.808 MB / 494.4 MB, free: 1.938 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008529/0.5146, allocations: 407.6 kB / 494.8 MB, free: 1.668 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002904/0.5149, allocations: 214.9 kB / 495 MB, free: 1.535 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002966/0.5179, allocations: 3.548 MB / 498.5 MB, free: 13.39 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.235e-05/0.5179, allocations: 35.81 kB / 498.6 MB, free: 13.35 MB / 398.1 MB Notification: Performance of pre-optimization done (n=46): time 2.114e-06/0.5179, allocations: 0 / 498.6 MB, free: 13.35 MB / 398.1 MB Notification: Performance of matching and sorting (n=54): time 0.008594/0.5265, allocations: 2.039 MB / 0.4889 GB, free: 11.71 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.357e-05/0.5266, allocations: 59.84 kB / 0.4889 GB, free: 11.64 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003433/0.527, allocations: 305.2 kB / 0.4892 GB, free: 11.4 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.862e-05/0.527, allocations: 32.7 kB / 0.4892 GB, free: 11.37 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000169/0.5272, allocations: 234.3 kB / 0.4895 GB, free: 11.18 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001301/0.5273, allocations: 196.2 kB / 0.4897 GB, free: 11.02 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.474e-05/0.5274, allocations: 9.812 kB / 0.4897 GB, free: 11.02 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001543/0.5275, allocations: 353.4 kB / 0.49 GB, free: 10.68 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002734/0.5278, allocations: 178.2 kB / 0.4902 GB, free: 10.57 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003711/0.5282, allocations: 328.3 kB / 0.4905 GB, free: 10.28 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003315/0.5285, allocations: 228 kB / 0.4907 GB, free: 10.16 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.305e-06/0.5285, allocations: 0 / 0.4907 GB, free: 10.16 MB / 398.1 MB Notification: Performance of matching and sorting (n=76) (initialization): time 0.001161/0.5297, allocations: 0.6743 MB / 0.4914 GB, free: 9.699 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.218e-05/0.5297, allocations: 12.09 kB / 0.4914 GB, free: 9.688 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.211e-05/0.5298, allocations: 7.984 kB / 0.4914 GB, free: 9.68 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.007814/0.5376, allocations: 450.6 kB / 0.4918 GB, free: 9.289 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005859/0.5382, allocations: 143.5 kB / 0.4919 GB, free: 9.164 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001992/0.5402, allocations: 2.991 MB / 0.4949 GB, free: 6.102 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004938/0.5407, allocations: 51.72 kB / 0.4949 GB, free: 6.059 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.729e-05/0.5408, allocations: 27.44 kB / 0.4949 GB, free: 6.039 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 20 * Number of states: 0 () * Number of discrete variables: 4 (volume1.medium.phase,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 (73): * Single equations (assignments): 69 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {1 1,1 1,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.000313/0.5411, allocations: 191.8 kB / 0.4951 GB, free: 5.887 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.438e-05/0.5412, allocations: 47.52 kB / 0.4952 GB, free: 5.84 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001555/0.5428, allocations: 1.055 MB / 0.4962 GB, free: 5.141 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.69e-05/0.5428, allocations: 15.23 kB / 0.4962 GB, free: 5.129 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.587e-06/0.5428, allocations: 0 / 0.4962 GB, free: 5.129 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001129/0.5439, allocations: 1.083 MB / 0.4973 GB, free: 4.277 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002082/0.546, allocations: 1.739 MB / 0.499 GB, free: 3.062 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.179e-06/0.546, allocations: 0 / 0.499 GB, free: 3.062 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003679/0.5464, allocations: 97.64 kB / 0.4991 GB, free: 2.977 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002667/0.5491, allocations: 360.2 kB / 0.4994 GB, free: 2.668 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.903e-05/0.5491, allocations: 15.81 kB / 0.4994 GB, free: 2.66 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006052/0.5498, allocations: 1.147 MB / 0.5005 GB, free: 1.527 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.533e-06/0.5498, allocations: 0 / 0.5005 GB, free: 1.527 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001321/0.5511, allocations: 1.136 MB / 0.5017 GB, free: 0.75 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001324/0.5512, allocations: 135.1 kB / 0.5018 GB, free: 0.6055 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.781e-05/0.5513, allocations: 10.25 kB / 0.5018 GB, free: 0.6016 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000278/0.5516, allocations: 33.45 kB / 0.5018 GB, free: 0.5781 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.12e-05/0.5517, allocations: 35.83 kB / 0.5019 GB, free: 0.5469 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.671e-05/0.5517, allocations: 19.92 kB / 0.5019 GB, free: 0.5312 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.000247/0.552, allocations: 247.7 kB / 0.5021 GB, free: 348 kB / 398.1 MB Notification: Performance of sort global known variables: time 7.01e-07/0.552, allocations: 0 / 0.5021 GB, free: 348 kB / 398.1 MB Notification: Performance of remove unused functions: time 0.005258/0.5572, allocations: 0.9623 MB / 0.5031 GB, free: 15.45 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (volume.medium.p,volume.medium.h,volume1.medium.p,volume1.medium.h) * Number of discrete variables: 6 ($cse1.phase,$cse2,$cse5.phase,$cse6,$cse7.phase,$cse8) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (58): * Single equations (assignments): 53 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 3 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 1,1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.04243/0.5997, allocations: 9.432 MB / 0.5123 GB, free: 6.574 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001487/0.6012, allocations: 0.7003 MB / 0.5129 GB, free: 6.062 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 6.122e-06/0.6012, allocations: 4 kB / 0.513 GB, free: 6.059 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005331/0.6018, allocations: 362.8 kB / 0.5133 GB, free: 5.844 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001334/0.6031, allocations: 260.4 kB / 0.5135 GB, free: 5.645 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008462/0.6116, allocations: 3.642 MB / 0.5171 GB, free: 2.52 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003891/0.612, allocations: 0.8678 MB / 0.518 GB, free: 1.625 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.000554/0.6126, allocations: 249.9 kB / 0.5182 GB, free: 1.383 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002406/0.6128, allocations: 205.3 kB / 0.5184 GB, free: 1.316 MB / 414.1 MB Notification: Performance of SimCode: time 7.72e-07/0.6128, allocations: 0 / 0.5184 GB, free: 1.316 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07007/0.6829, allocations: 40.71 MB / 0.5581 GB, free: 9.25 MB / 462.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001891/0.6831, allocations: 203.3 kB / 0.5583 GB, free: 9.008 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.729/4.413, allocations: 0 / 0.5583 GB, free: 9.008 MB / 462.1 MB (rm -f Modelica_4.0.0_Modelica.Media.Examples.R134a.R134a2.pipe ; mkfifo Modelica_4.0.0_Modelica.Media.Examples.R134a.R134a2.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Media.Examples.R134a.R134a2.pipe >> ../files/Modelica_4.0.0_Modelica.Media.Examples.R134a.R134a2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Media.Examples.R134a.R134a2_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Media_Examples_R134a_R134a2_fmu --startTime=0 --stopTime=1.01 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Media_Examples_R134a_R134a2.fmu > Modelica_4.0.0_Modelica.Media.Examples.R134a.R134a2.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Media.Examples.R134a.R134a2_res.mat does not exist to compare? outputFormat=mat