Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3_2_3_Modelica_Media_Examples_R134a_R134a2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Media.Examples.R134a.R134a2,fileNamePrefix="Modelica_3_2_3_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.0009918/0.0009922, allocations: 98.72 kB / 16.95 MB, free: 6.094 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.001097/0.001097, allocations: 179.2 kB / 17.84 MB, free: 5.719 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.469/1.469, allocations: 205.4 MB / 224 MB, free: 13.07 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0006976/0.0006977, allocations: 15.98 kB / 280.9 MB, free: 3.633 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1256/0.1263, allocations: 47.57 MB / 328.4 MB, free: 3.988 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.R134a.R134a2): time 0.03689/0.1633, allocations: 34.77 MB / 363.2 MB, free: 1.125 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.2367/0.4001, allocations: 28.13 MB / 391.3 MB, free: 11.57 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001075/0.4012, allocations: 6.156 kB / 391.3 MB, free: 11.57 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001562/0.4028, allocations: 316.2 kB / 391.6 MB, free: 11.57 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002059/0.4049, allocations: 487.7 kB / 392.1 MB, free: 11.55 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01874/0.4237, allocations: 3.831 MB / 396 MB, free: 11.45 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.002746/0.4264, allocations: 1.698 MB / 397.7 MB, free: 11.18 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003594/0.4268, allocations: 127.7 kB / 397.8 MB, free: 11.16 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001441/0.4282, allocations: 468.7 kB / 398.2 MB, free: 11.07 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00107/0.4293, allocations: 431.1 kB / 398.7 MB, free: 10.98 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001778/0.4295, allocations: 23.97 kB / 398.7 MB, free: 10.98 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.07319/0.5027, allocations: 51.74 MB / 450.4 MB, free: 2.328 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004364/0.5032, allocations: 114.1 kB / 450.5 MB, free: 2.254 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004847/0.5037, allocations: 144.8 kB / 450.7 MB, free: 2.137 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.03728/0.541, allocations: 13.88 MB / 464.6 MB, free: 4.844 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.909e-06/0.5411, allocations: 0 / 464.6 MB, free: 4.844 MB / 366.1 MB Notification: Performance of FrontEnd: time 3.356e-06/0.5411, allocations: 4 kB / 464.6 MB, free: 4.84 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.21e-05/0.5411, allocations: 0 / 464.6 MB, free: 4.84 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: 116 * Number of variables: 116 Notification: Performance of Generate backend data structure: time 0.01059/0.5517, allocations: 1.315 MB / 465.9 MB, free: 3.539 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.912e-05/0.5518, allocations: 8.031 kB / 465.9 MB, free: 3.531 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001213/0.5519, allocations: 87.77 kB / 466 MB, free: 3.465 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000736/0.5527, allocations: 96.5 kB / 466.1 MB, free: 3.371 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005052/0.5532, allocations: 381.6 kB / 466.4 MB, free: 3.027 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.494e-05/0.5533, allocations: 37.25 kB / 466.5 MB, free: 3.008 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.809e-05/0.5534, allocations: 46.06 kB / 466.5 MB, free: 2.977 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001129/0.5546, allocations: 0.6162 MB / 467.1 MB, free: 2.5 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.287e-05/0.5546, allocations: 3.938 kB / 467.1 MB, free: 2.496 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.939e-05/0.5547, allocations: 17 kB / 467.2 MB, free: 2.492 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.264e-05/0.5547, allocations: 12 kB / 467.2 MB, free: 2.48 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001041/0.5557, allocations: 0.5314 MB / 467.7 MB, free: 2.117 MB / 366.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.00412/0.5599, allocations: 3.799 MB / 471.5 MB, free: 14.5 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008905/0.5608, allocations: 414.6 kB / 471.9 MB, free: 14.23 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000292/0.5611, allocations: 218.2 kB / 472.1 MB, free: 14.09 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003448/0.5646, allocations: 3.539 MB / 475.7 MB, free: 9.945 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.793e-05/0.5646, allocations: 40.69 kB / 475.7 MB, free: 9.902 MB / 382.1 MB Notification: Performance of pre-optimization done (n=46): time 4.669e-06/0.5646, allocations: 7.922 kB / 475.7 MB, free: 9.895 MB / 382.1 MB Notification: Performance of matching and sorting (n=54): time 0.008949/0.5736, allocations: 2.046 MB / 477.7 MB, free: 8.25 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.197e-05/0.5737, allocations: 59.84 kB / 477.8 MB, free: 8.18 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003372/0.574, allocations: 305.2 kB / 478.1 MB, free: 7.934 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 4.344e-05/0.5741, allocations: 38.45 kB / 478.1 MB, free: 7.898 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002023/0.5743, allocations: 226.2 kB / 478.4 MB, free: 7.715 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001206/0.5744, allocations: 189.9 kB / 478.5 MB, free: 7.555 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.687e-05/0.5744, allocations: 14.06 kB / 478.6 MB, free: 7.551 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001377/0.5746, allocations: 349.2 kB / 478.9 MB, free: 7.219 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002859/0.5749, allocations: 176.2 kB / 479.1 MB, free: 7.113 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003555/0.5752, allocations: 328.2 kB / 479.4 MB, free: 6.816 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003336/0.5756, allocations: 232.7 kB / 479.6 MB, free: 6.695 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.647e-06/0.5756, allocations: 6.516 kB / 479.6 MB, free: 6.691 MB / 382.1 MB Notification: Performance of matching and sorting (n=76) (initialization): time 0.00125/0.5768, allocations: 0.6686 MB / 480.3 MB, free: 6.203 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.1e-05/0.5769, allocations: 8 kB / 480.3 MB, free: 6.195 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.155e-05/0.5769, allocations: 4 kB / 480.3 MB, free: 6.191 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.007961/0.5849, allocations: 452.9 kB / 480.8 MB, free: 5.797 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006276/0.5856, allocations: 139.2 kB / 480.9 MB, free: 5.668 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002487/0.5881, allocations: 2.994 MB / 483.9 MB, free: 2.574 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005347/0.5887, allocations: 49.39 kB / 483.9 MB, free: 2.535 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.765e-05/0.5888, allocations: 34.05 kB / 484 MB, free: 2.508 MB / 382.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.0003574/0.5891, allocations: 184 kB / 484.1 MB, free: 2.355 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000134/0.5893, allocations: 43.53 kB / 484.2 MB, free: 2.312 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001776/0.5911, allocations: 1.065 MB / 485.3 MB, free: 1.598 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.571e-05/0.5911, allocations: 11.98 kB / 485.3 MB, free: 1.586 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.396e-06/0.5911, allocations: 0 / 485.3 MB, free: 1.586 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001271/0.5924, allocations: 1.096 MB / 486.4 MB, free: 0.7227 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002429/0.5948, allocations: 1.723 MB / 488.1 MB, free: 15.52 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.534e-06/0.5948, allocations: 4 kB / 488.1 MB, free: 15.51 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003945/0.5952, allocations: 102 kB / 488.2 MB, free: 15.42 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002819/0.5981, allocations: 367.3 kB / 488.5 MB, free: 15.11 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.989e-05/0.5981, allocations: 14.94 kB / 488.6 MB, free: 15.1 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008448/0.599, allocations: 1.146 MB / 489.7 MB, free: 13.96 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.874e-06/0.599, allocations: 0 / 489.7 MB, free: 13.96 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001541/0.6006, allocations: 1.128 MB / 490.8 MB, free: 13.17 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002632/0.6009, allocations: 144.4 kB / 491 MB, free: 13.01 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.641e-05/0.601, allocations: 12 kB / 491 MB, free: 13 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003265/0.6013, allocations: 27.92 kB / 491 MB, free: 12.97 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.389e-05/0.6014, allocations: 36.45 kB / 491 MB, free: 12.94 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.159e-05/0.6014, allocations: 32.05 kB / 491.1 MB, free: 12.91 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002921/0.6017, allocations: 247 kB / 491.3 MB, free: 12.67 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.6017, allocations: 0 / 491.3 MB, free: 12.67 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.006413/0.6082, allocations: 0.9605 MB / 492.3 MB, free: 11.71 MB / 398.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.04902/0.6572, allocations: 9.418 MB / 0.4899 GB, free: 2.426 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001899/0.6591, allocations: 0.6934 MB / 0.4906 GB, free: 1.723 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 6.442e-06/0.6592, allocations: 0 / 0.4906 GB, free: 1.723 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006804/0.6599, allocations: 367.5 kB / 0.491 GB, free: 1.359 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001473/0.6614, allocations: 261.1 kB / 0.4912 GB, free: 1.105 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009886/0.6713, allocations: 3.656 MB / 0.4948 GB, free: 13.36 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005685/0.6719, allocations: 0.8687 MB / 0.4956 GB, free: 12.46 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.00064/0.6725, allocations: 244 kB / 0.4959 GB, free: 12.22 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002664/0.6728, allocations: 199.4 kB / 0.4961 GB, free: 12.03 MB / 414.1 MB Notification: Performance of SimCode: time 1.162e-06/0.6728, allocations: 0 / 0.4961 GB, free: 12.03 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07437/0.7472, allocations: 40.7 MB / 0.5358 GB, free: 3.383 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001865/0.7474, allocations: 196.3 kB / 0.536 GB, free: 3.141 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.819/4.567, allocations: 3.938 kB / 0.536 GB, free: 3.137 MB / 446.1 MB (rm -f Modelica_3.2.3_Modelica.Media.Examples.R134a.R134a2.pipe ; mkfifo Modelica_3.2.3_Modelica.Media.Examples.R134a.R134a2.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Media.Examples.R134a.R134a2.pipe >> ../files/Modelica_3.2.3_Modelica.Media.Examples.R134a.R134a2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Media.Examples.R134a.R134a2_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Media_Examples_R134a_R134a2_fmu --startTime=0 --stopTime=1.01 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Media_Examples_R134a_R134a2.fmu > Modelica_3.2.3_Modelica.Media.Examples.R134a.R134a2.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Media.Examples.R134a.R134a2_res.mat does not exist to compare? outputFormat=mat