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.001259/0.001259, allocations: 97.28 kB / 16.3 MB, free: 5.562 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.001469/0.001469, allocations: 184 kB / 17.19 MB, free: 5.496 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.32/1.32, allocations: 223.2 MB / 241.1 MB, free: 280 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002825/0.0002826, allocations: 10.44 kB / 300.8 MB, free: 6.344 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1005/0.1008, allocations: 50.41 MB / 351.2 MB, free: 3.922 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.R134a.R134a2): time 0.225/0.3258, allocations: 31.66 MB / 382.9 MB, free: 9.438 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.02772/0.3536, allocations: 25.58 MB / 408.5 MB, free: 7.711 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007864/0.3544, allocations: 8.562 kB / 408.5 MB, free: 7.707 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001183/0.3556, allocations: 336.8 kB / 408.8 MB, free: 7.43 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001098/0.3567, allocations: 368 kB / 409.2 MB, free: 7.109 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0153/0.372, allocations: 3.974 MB / 413.1 MB, free: 4.199 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001728/0.3738, allocations: 0.7578 MB / 413.9 MB, free: 3.734 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003324/0.3741, allocations: 130.9 kB / 414 MB, free: 3.656 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007023/0.3748, allocations: 394 kB / 414.4 MB, free: 3.449 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003518/0.3752, allocations: 271 kB / 414.7 MB, free: 3.305 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 5.554e-05/0.3753, allocations: 30.22 kB / 414.7 MB, free: 3.301 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.08233/0.4576, allocations: 69.16 MB / 483.9 MB, free: 14.8 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003334/0.458, allocations: 115.5 kB / 484 MB, free: 14.68 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003591/0.4584, allocations: 149.5 kB / 484.1 MB, free: 14.53 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.03975/0.4981, allocations: 13.82 MB / 497.9 MB, free: 0.6992 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.119e-06/0.4982, allocations: 0 / 497.9 MB, free: 0.6992 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.565e-06/0.4982, allocations: 3.938 kB / 497.9 MB, free: 0.6953 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.418e-05/0.4982, allocations: 0 / 497.9 MB, free: 0.6953 MB / 398.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.009261/0.5075, allocations: 1.322 MB / 499.3 MB, free: 15.32 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.763e-05/0.5075, allocations: 8.031 kB / 499.3 MB, free: 15.32 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001659/0.5077, allocations: 83.41 kB / 499.3 MB, free: 15.23 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008606/0.5086, allocations: 95.34 kB / 499.4 MB, free: 15.13 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005931/0.5092, allocations: 370.1 kB / 499.8 MB, free: 14.73 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.277e-05/0.5092, allocations: 37 kB / 499.8 MB, free: 14.69 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.014e-05/0.5093, allocations: 48 kB / 499.9 MB, free: 14.64 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001162/0.5105, allocations: 0.6205 MB / 0.4888 GB, free: 13.98 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.884e-05/0.5105, allocations: 0 / 0.4888 GB, free: 13.98 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.187e-05/0.5106, allocations: 20 kB / 0.4888 GB, free: 13.96 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.478e-05/0.5106, allocations: 12 kB / 0.4888 GB, free: 13.95 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009245/0.5115, allocations: 0.5229 MB / 0.4893 GB, free: 13.42 MB / 414.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.004632/0.5162, allocations: 3.816 MB / 0.493 GB, free: 9.301 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009367/0.5171, allocations: 423.5 kB / 0.4934 GB, free: 8.879 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003367/0.5205, allocations: 3.552 MB / 0.4969 GB, free: 4.625 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.507e-05/0.5206, allocations: 46.88 kB / 0.497 GB, free: 4.57 MB / 414.1 MB Notification: Performance of pre-optimization done (n=46): time 3.226e-06/0.5206, allocations: 0 / 0.497 GB, free: 4.57 MB / 414.1 MB Notification: Performance of matching and sorting (n=54): time 0.00945/0.53, allocations: 2.041 MB / 0.499 GB, free: 2.449 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.658e-05/0.5301, allocations: 55.84 kB / 0.499 GB, free: 2.383 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003256/0.5304, allocations: 304.5 kB / 0.4993 GB, free: 2.078 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 5.018e-05/0.5305, allocations: 37.7 kB / 0.4993 GB, free: 2.035 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001714/0.5307, allocations: 240.6 kB / 0.4996 GB, free: 1.793 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001292/0.5308, allocations: 185.3 kB / 0.4997 GB, free: 1.609 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.604e-05/0.5308, allocations: 12 kB / 0.4997 GB, free: 1.598 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001357/0.531, allocations: 354.7 kB / 0.5001 GB, free: 1.242 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002725/0.5313, allocations: 173.2 kB / 0.5003 GB, free: 1.074 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003732/0.5316, allocations: 336 kB / 0.5006 GB, free: 0.6875 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003399/0.532, allocations: 224.7 kB / 0.5008 GB, free: 484 kB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.214e-06/0.532, allocations: 4 kB / 0.5008 GB, free: 480 kB / 414.1 MB Notification: Performance of matching and sorting (n=76) (initialization): time 0.001314/0.5333, allocations: 0.6745 MB / 0.5015 GB, free: 15.78 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.537e-05/0.5334, allocations: 8 kB / 0.5015 GB, free: 15.77 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.185e-05/0.5334, allocations: 4 kB / 0.5015 GB, free: 15.77 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.008784/0.5422, allocations: 454.2 kB / 0.5019 GB, free: 15.31 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006465/0.5429, allocations: 139.8 kB / 0.502 GB, free: 15.18 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002416/0.5453, allocations: 3.002 MB / 0.505 GB, free: 11.96 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005158/0.5458, allocations: 48 kB / 0.505 GB, free: 11.92 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.618e-05/0.5459, allocations: 24 kB / 0.505 GB, free: 11.89 MB / 430.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.0003382/0.5462, allocations: 193.6 kB / 0.5052 GB, free: 11.7 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.031e-05/0.5463, allocations: 39.53 kB / 0.5053 GB, free: 11.66 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001528/0.5479, allocations: 1.063 MB / 0.5063 GB, free: 10.58 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.54e-05/0.5479, allocations: 15.98 kB / 0.5063 GB, free: 10.56 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.695e-06/0.5479, allocations: 0 / 0.5063 GB, free: 10.56 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001171/0.5491, allocations: 1.083 MB / 0.5074 GB, free: 9.406 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002243/0.5513, allocations: 1.742 MB / 0.5091 GB, free: 7.598 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.151e-05/0.5513, allocations: 3.984 kB / 0.5091 GB, free: 7.594 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003927/0.5517, allocations: 99.83 kB / 0.5092 GB, free: 7.496 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00299/0.5547, allocations: 361 kB / 0.5095 GB, free: 7.137 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.034e-05/0.5548, allocations: 15.98 kB / 0.5095 GB, free: 7.121 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007598/0.5556, allocations: 1.148 MB / 0.5106 GB, free: 5.922 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.683e-06/0.5556, allocations: 0 / 0.5106 GB, free: 5.922 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001585/0.5572, allocations: 1.123 MB / 0.5117 GB, free: 4.777 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000225/0.5574, allocations: 140.4 kB / 0.5119 GB, free: 4.621 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.388e-05/0.5575, allocations: 8 kB / 0.5119 GB, free: 4.613 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003203/0.5578, allocations: 39.97 kB / 0.5119 GB, free: 4.574 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.381e-05/0.5579, allocations: 32.52 kB / 0.512 GB, free: 4.543 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.859e-05/0.5579, allocations: 19.98 kB / 0.512 GB, free: 4.523 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0002741/0.5582, allocations: 247 kB / 0.5122 GB, free: 4.281 MB / 430.1 MB Notification: Performance of sort global known variables: time 6.11e-07/0.5582, allocations: 0 / 0.5122 GB, free: 4.281 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.006644/0.5649, allocations: 0.9605 MB / 0.5131 GB, free: 3.32 MB / 430.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.04616/0.6111, allocations: 9.431 MB / 0.5224 GB, free: 9.836 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.001568/0.6127, allocations: 0.6962 MB / 0.523 GB, free: 9.133 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 6.883e-06/0.6127, allocations: 4 kB / 0.523 GB, free: 9.129 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005896/0.6133, allocations: 363.5 kB / 0.5234 GB, free: 8.773 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001399/0.6147, allocations: 249.6 kB / 0.5236 GB, free: 8.535 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01087/0.6256, allocations: 6.504 MB / 0.53 GB, free: 1.887 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004811/0.6261, allocations: 0.8767 MB / 0.5308 GB, free: 0.9805 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0006079/0.6267, allocations: 245.1 kB / 0.5311 GB, free: 0.7383 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002509/0.627, allocations: 195.4 kB / 0.5312 GB, free: 0.5469 MB / 446.1 MB Notification: Performance of SimCode: time 1.042e-06/0.627, allocations: 0 / 0.5312 GB, free: 0.5469 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2667/0.8937, allocations: 40.67 MB / 0.571 GB, free: 124.2 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001527/0.8939, allocations: 199.6 kB / 0.5712 GB, free: 124 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.555/4.449, allocations: 0 / 0.5712 GB, free: 124 MB / 446.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