Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Media.Examples.R134a.R134a1.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.R134a1,fileNamePrefix="Modelica_4_0_0_Modelica_Media_Examples_R134a_R134a1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Media.Examples.R134a.R134a1,fileNamePrefix="Modelica_4_0_0_Modelica_Media_Examples_R134a_R134a1",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.0007813/0.0007813, allocations: 87.7 kB / 16.31 MB, free: 6.453 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.0008708/0.000871, allocations: 180.8 kB / 17.21 MB, free: 6.328 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.392/1.392, allocations: 223.2 MB / 241.2 MB, free: 5.434 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003714/0.0003718, allocations: 5.594 kB / 300.9 MB, free: 6.078 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1278/0.1282, allocations: 50.41 MB / 351.3 MB, free: 11.62 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.R134a.R134a1): time 0.02907/0.1573, allocations: 24.59 MB / 375.9 MB, free: 2.965 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.02608/0.1834, allocations: 22.83 MB / 398.7 MB, free: 12.07 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000577/0.184, allocations: 11.94 kB / 398.8 MB, free: 12.06 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008425/0.1849, allocations: 222.8 kB / 399 MB, free: 11.84 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008699/0.1858, allocations: 338.2 kB / 399.3 MB, free: 11.51 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01228/0.1981, allocations: 3.001 MB / 402.3 MB, free: 8.5 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001826/0.1999, allocations: 1.18 MB / 403.5 MB, free: 7.312 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002681/0.2002, allocations: 77.02 kB / 403.6 MB, free: 7.234 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006065/0.2008, allocations: 338.7 kB / 403.9 MB, free: 6.902 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003718/0.2012, allocations: 302.8 kB / 404.2 MB, free: 6.605 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.932e-05/0.2012, allocations: 16 kB / 404.2 MB, free: 6.59 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.2682/0.4695, allocations: 40.2 MB / 444.4 MB, free: 22.22 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001864/0.4697, allocations: 80.36 kB / 444.5 MB, free: 22.22 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001976/0.4699, allocations: 109.1 kB / 444.6 MB, free: 22.19 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02382/0.4937, allocations: 10.68 MB / 455.3 MB, free: 16.67 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.742e-06/0.4938, allocations: 0 / 455.3 MB, free: 16.67 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.334e-06/0.4938, allocations: 0 / 455.3 MB, free: 16.67 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.135e-06/0.4938, allocations: 1 kB / 455.3 MB, free: 16.67 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.007339/0.5011, allocations: 1.063 MB / 456.3 MB, free: 15.68 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.44e-05/0.5012, allocations: 13.03 kB / 456.4 MB, free: 15.67 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.967e-05/0.5013, allocations: 63.25 kB / 456.4 MB, free: 15.62 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005128/0.5018, allocations: 74.7 kB / 456.5 MB, free: 15.56 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003796/0.5022, allocations: 308.1 kB / 456.8 MB, free: 15.3 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.335e-05/0.5022, allocations: 23.72 kB / 456.8 MB, free: 15.29 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.059e-05/0.5023, allocations: 34.12 kB / 456.8 MB, free: 15.26 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007594/0.5031, allocations: 461 kB / 457.3 MB, free: 14.92 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.624e-05/0.5031, allocations: 3.906 kB / 457.3 MB, free: 14.91 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.512e-05/0.5031, allocations: 20.44 kB / 457.3 MB, free: 14.91 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.017e-05/0.5031, allocations: 9.719 kB / 457.3 MB, free: 14.9 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005855/0.5037, allocations: 386.4 kB / 457.7 MB, free: 14.64 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.002462/0.5062, allocations: 2.942 MB / 460.6 MB, free: 11.85 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005296/0.5067, allocations: 284.6 kB / 460.9 MB, free: 11.66 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001619/0.5069, allocations: 133.3 kB / 461.1 MB, free: 11.57 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00171/0.5086, allocations: 2.536 MB / 463.6 MB, free: 8.629 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.614e-05/0.5087, allocations: 42.52 kB / 463.6 MB, free: 8.578 MB / 350.1 MB Notification: Performance of pre-optimization done (n=30): time 2.354e-06/0.5087, allocations: 1 kB / 463.6 MB, free: 8.578 MB / 350.1 MB Notification: Performance of matching and sorting (n=34): time 0.00453/0.5132, allocations: 1.286 MB / 464.9 MB, free: 7.516 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.444e-05/0.5133, allocations: 55.41 kB / 465 MB, free: 7.449 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002164/0.5135, allocations: 266.2 kB / 465.2 MB, free: 7.234 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.138e-05/0.5135, allocations: 33.56 kB / 465.3 MB, free: 7.199 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.036e-05/0.5136, allocations: 192.3 kB / 465.5 MB, free: 7.043 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.55e-05/0.5137, allocations: 113.8 kB / 465.6 MB, free: 6.945 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.627e-05/0.5137, allocations: 7.625 kB / 465.6 MB, free: 6.945 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.509e-05/0.5138, allocations: 343.9 kB / 465.9 MB, free: 6.613 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001508/0.5139, allocations: 110.8 kB / 466 MB, free: 6.543 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001924/0.5141, allocations: 228.6 kB / 466.2 MB, free: 6.332 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001924/0.5143, allocations: 153.6 kB / 466.4 MB, free: 6.254 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.563e-06/0.5143, allocations: 0 / 466.4 MB, free: 6.254 MB / 350.1 MB Notification: Performance of matching and sorting (n=50) (initialization): time 0.0006851/0.515, allocations: 463.8 kB / 466.8 MB, free: 5.941 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.027e-05/0.515, allocations: 4 kB / 466.8 MB, free: 5.938 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.368e-06/0.5151, allocations: 4 kB / 466.9 MB, free: 5.934 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003875/0.5189, allocations: 239.8 kB / 467.1 MB, free: 5.727 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003097/0.5193, allocations: 89.84 kB / 467.2 MB, free: 5.652 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000892/0.5202, allocations: 1.843 MB / 469 MB, free: 3.75 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002383/0.5204, allocations: 33.58 kB / 469 MB, free: 3.727 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.03e-05/0.5205, allocations: 19.3 kB / 469.1 MB, free: 3.711 MB / 350.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 (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 prepare postOptimizeDAE: time 0.0001528/0.5206, allocations: 168.3 kB / 469.2 MB, free: 3.574 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.059e-05/0.5207, allocations: 27.72 kB / 469.3 MB, free: 3.547 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008546/0.5215, allocations: 0.6929 MB / 470 MB, free: 3.082 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.408e-06/0.5216, allocations: 12.48 kB / 470 MB, free: 3.074 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.733e-06/0.5216, allocations: 1 kB / 470 MB, free: 3.074 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0005957/0.5222, allocations: 0.8646 MB / 470.8 MB, free: 2.312 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001204/0.5234, allocations: 1.186 MB / 472 MB, free: 1.434 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.49e-06/0.5234, allocations: 1 kB / 472 MB, free: 1.434 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002225/0.5236, allocations: 62.22 kB / 472.1 MB, free: 1.379 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00134/0.525, allocations: 182.4 kB / 472.3 MB, free: 1.227 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.088e-05/0.525, allocations: 9.75 kB / 472.3 MB, free: 1.223 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002421/0.5253, allocations: 0.5879 MB / 472.9 MB, free: 0.6484 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.262e-06/0.5253, allocations: 0 / 472.9 MB, free: 0.6484 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00071/0.526, allocations: 0.7224 MB / 473.6 MB, free: 136 kB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.841e-05/0.5261, allocations: 131.5 kB / 473.7 MB, free: 15.99 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.607e-05/0.5262, allocations: 11.23 kB / 473.7 MB, free: 15.98 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002013/0.5264, allocations: 17.31 kB / 473.7 MB, free: 15.98 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.995e-05/0.5264, allocations: 23.22 kB / 473.8 MB, free: 15.96 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.801e-05/0.5264, allocations: 11.98 kB / 473.8 MB, free: 15.95 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002021/0.5267, allocations: 226.3 kB / 474 MB, free: 15.77 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.5267, allocations: 0 / 474 MB, free: 15.77 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.004624/0.5313, allocations: 0.7368 MB / 474.7 MB, free: 15.09 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.03666/0.568, allocations: 7.569 MB / 482.3 MB, free: 7.898 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0008999/0.5689, allocations: 481.6 kB / 482.8 MB, free: 7.543 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.489e-06/0.5689, allocations: 4 kB / 482.8 MB, free: 7.539 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003489/0.5693, allocations: 216 kB / 483 MB, free: 7.41 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001016/0.5703, allocations: 196.3 kB / 483.2 MB, free: 7.258 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006606/0.5769, allocations: 2.589 MB / 485.8 MB, free: 5 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004161/0.5774, allocations: 0.8051 MB / 486.6 MB, free: 4.172 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0004625/0.5779, allocations: 190.9 kB / 486.7 MB, free: 3.992 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001676/0.578, allocations: 130.2 kB / 486.9 MB, free: 3.949 MB / 366.1 MB Notification: Performance of SimCode: time 7.81e-07/0.578, allocations: 0 / 486.9 MB, free: 3.949 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05774/0.6358, allocations: 32.6 MB / 0.5073 GB, free: 3.891 MB / 398.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001857/0.636, allocations: 198.9 kB / 0.5075 GB, free: 3.652 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.235/3.871, allocations: 0 / 0.5075 GB, free: 3.652 MB / 398.1 MB (rm -f Modelica_4.0.0_Modelica.Media.Examples.R134a.R134a1.pipe ; mkfifo Modelica_4.0.0_Modelica.Media.Examples.R134a.R134a1.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Media.Examples.R134a.R134a1.pipe >> ../files/Modelica_4.0.0_Modelica.Media.Examples.R134a.R134a1.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Media.Examples.R134a.R134a1_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Media_Examples_R134a_R134a1_fmu --startTime=0 --stopTime=1.01 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Media_Examples_R134a_R134a1.fmu > Modelica_4.0.0_Modelica.Media.Examples.R134a.R134a1.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Media.Examples.R134a.R134a1_res.mat does not exist to compare? outputFormat=mat