Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Media.Examples.R134a.R134a1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Media.Examples.R134a.R134a1,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Media_Examples_R134a_R134a1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Media.Examples.R134a.R134a1,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Media_Examples_R134a_R134a1",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.00157/0.001576, allocations: 184.4 kB / 16.41 MB, free: 5.703 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.938/1.938, allocations: 205.4 MB / 222.5 MB, free: 9.129 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.00115/0.00115, allocations: 84.55 kB / 270.9 MB, free: 8.395 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005244/0.0005245, allocations: 8 kB / 327.1 MB, free: 136 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3355/0.336, allocations: 47.57 MB / 374.6 MB, free: 45.27 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 17.34/17.68, allocations: 5.796 GB / 6.162 GB, free: 110.6 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002619/17.68, allocations: 71.12 kB / 6.162 GB, free: 110.6 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 14.99/32.67, allocations: 3.488 GB / 9.65 GB, free: 6.543 MB / 0.6047 GB Notification: Performance of FrontEnd: time 2.414e-06/32.67, allocations: 0 / 9.65 GB, free: 6.543 MB / 0.6047 GB Notification: Performance of Transformations before backend: time 2.563e-05/32.67, allocations: 8 kB / 9.65 GB, free: 6.535 MB / 0.6047 GB 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.04822/32.72, allocations: 1.705 MB / 9.651 GB, free: 4.957 MB / 0.6047 GB Notification: Performance of prepare preOptimizeDAE: time 4.976e-05/32.72, allocations: 8.031 kB / 9.651 GB, free: 4.949 MB / 0.6047 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001187/32.72, allocations: 70.53 kB / 9.651 GB, free: 4.871 MB / 0.6047 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007039/32.72, allocations: 63.5 kB / 9.652 GB, free: 4.809 MB / 0.6047 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005133/32.72, allocations: 325.3 kB / 9.652 GB, free: 4.465 MB / 0.6047 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.833e-05/32.72, allocations: 24.61 kB / 9.652 GB, free: 4.441 MB / 0.6047 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.376e-05/32.72, allocations: 32 kB / 9.652 GB, free: 4.41 MB / 0.6047 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001133/32.72, allocations: 455.8 kB / 9.652 GB, free: 3.93 MB / 0.6047 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.436e-05/32.72, allocations: 0 / 9.652 GB, free: 3.93 MB / 0.6047 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.92e-05/32.72, allocations: 20 kB / 9.652 GB, free: 3.91 MB / 0.6047 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.151e-05/32.72, allocations: 8 kB / 9.652 GB, free: 3.902 MB / 0.6047 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009692/32.72, allocations: 394.2 kB / 9.653 GB, free: 3.516 MB / 0.6047 GB 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.009701/32.73, allocations: 5.218 MB / 9.658 GB, free: 14.05 MB / 0.6203 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001066/32.73, allocations: 293.3 kB / 9.658 GB, free: 13.76 MB / 0.6203 GB Notification: Performance of preOpt evalFunc (simulation): time 0.003992/32.74, allocations: 2.055 MB / 9.66 GB, free: 11.36 MB / 0.6203 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.579e-05/32.74, allocations: 34.56 kB / 9.66 GB, free: 11.31 MB / 0.6203 GB Notification: Performance of pre-optimization done (n=30): time 3.246e-06/32.74, allocations: 0 / 9.66 GB, free: 11.31 MB / 0.6203 GB Notification: Performance of matching and sorting (n=34): time 0.008185/32.75, allocations: 1.286 MB / 9.661 GB, free: 9.965 MB / 0.6203 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.865e-05/32.75, allocations: 55.41 kB / 9.661 GB, free: 9.898 MB / 0.6203 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000418/32.75, allocations: 233.7 kB / 9.662 GB, free: 9.668 MB / 0.6203 GB Notification: Performance of collectPreVariables (initialization): time 5.582e-05/32.75, allocations: 33.7 kB / 9.662 GB, free: 9.629 MB / 0.6203 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001766/32.75, allocations: 251.4 kB / 9.662 GB, free: 9.395 MB / 0.6203 GB Notification: Performance of collectInitialBindings (initialization): time 0.000138/32.75, allocations: 118.3 kB / 9.662 GB, free: 9.293 MB / 0.6203 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.265e-05/32.75, allocations: 8 kB / 9.662 GB, free: 9.285 MB / 0.6203 GB Notification: Performance of setup shared object (initialization): time 0.0001781/32.75, allocations: 326.8 kB / 9.662 GB, free: 8.957 MB / 0.6203 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003323/32.75, allocations: 112.8 kB / 9.663 GB, free: 8.848 MB / 0.6203 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004325/32.75, allocations: 223 kB / 9.663 GB, free: 8.582 MB / 0.6203 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004242/32.75, allocations: 146.7 kB / 9.663 GB, free: 8.441 MB / 0.6203 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.583e-06/32.75, allocations: 4 kB / 9.663 GB, free: 8.438 MB / 0.6203 GB Notification: Performance of matching and sorting (n=50) (initialization): time 0.001404/32.75, allocations: 446.7 kB / 9.663 GB, free: 7.988 MB / 0.6203 GB Notification: Performance of prepare postOptimizeDAE: time 2.648e-05/32.75, allocations: 7.953 kB / 9.663 GB, free: 7.98 MB / 0.6203 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.355e-05/32.75, allocations: 4 kB / 9.663 GB, free: 7.977 MB / 0.6203 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01258/32.76, allocations: 293.8 kB / 9.664 GB, free: 7.684 MB / 0.6203 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007144/32.76, allocations: 91.83 kB / 9.664 GB, free: 7.594 MB / 0.6203 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002044/32.76, allocations: 1.843 MB / 9.665 GB, free: 5.594 MB / 0.6203 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005477/32.76, allocations: 29.25 kB / 9.666 GB, free: 5.566 MB / 0.6203 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.06e-05/32.77, allocations: 20 kB / 9.666 GB, free: 5.547 MB / 0.6203 GB 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.000334/32.77, allocations: 168.6 kB / 9.666 GB, free: 5.375 MB / 0.6203 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001058/32.77, allocations: 35.47 kB / 9.666 GB, free: 5.344 MB / 0.6203 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001774/32.77, allocations: 0.6993 MB / 9.666 GB, free: 4.641 MB / 0.6203 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.539e-05/32.77, allocations: 4 kB / 9.666 GB, free: 4.637 MB / 0.6203 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.466e-06/32.77, allocations: 0 / 9.666 GB, free: 4.637 MB / 0.6203 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001343/32.77, allocations: 0.8594 MB / 9.667 GB, free: 3.688 MB / 0.6203 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00254/32.77, allocations: 1.199 MB / 9.668 GB, free: 2.438 MB / 0.6203 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.035e-05/32.77, allocations: 0 / 9.668 GB, free: 2.438 MB / 0.6203 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005026/32.77, allocations: 67.84 kB / 9.668 GB, free: 2.371 MB / 0.6203 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003422/32.78, allocations: 200.4 kB / 9.669 GB, free: 2.172 MB / 0.6203 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.737e-05/32.78, allocations: 11.98 kB / 9.669 GB, free: 2.16 MB / 0.6203 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005495/32.78, allocations: 0.568 MB / 9.669 GB, free: 1.566 MB / 0.6203 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.084e-06/32.78, allocations: 96 / 9.669 GB, free: 1.566 MB / 0.6203 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001692/32.78, allocations: 0.7413 MB / 9.67 GB, free: 0.8047 MB / 0.6203 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002034/32.78, allocations: 123.7 kB / 9.67 GB, free: 0.668 MB / 0.6203 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.044e-05/32.78, allocations: 4 kB / 9.67 GB, free: 0.6641 MB / 0.6203 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004279/32.78, allocations: 33.88 kB / 9.67 GB, free: 0.6328 MB / 0.6203 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.052e-05/32.78, allocations: 19.97 kB / 9.67 GB, free: 0.6133 MB / 0.6203 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.631e-05/32.78, allocations: 12 kB / 9.67 GB, free: 0.6016 MB / 0.6203 GB Notification: Performance of sorting global known variables: time 0.0003828/32.78, allocations: 221.9 kB / 9.67 GB, free: 396 kB / 0.6203 GB Notification: Performance of sort global known variables: time 3.91e-07/32.78, allocations: 0 / 9.67 GB, free: 396 kB / 0.6203 GB Notification: Performance of remove unused functions: time 0.4724/33.25, allocations: 0.8533 MB / 9.671 GB, free: 139.4 MB / 0.6203 GB 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.2152/33.47, allocations: 20.21 MB / 9.691 GB, free: 129.4 MB / 0.6203 GB Notification: Performance of simCode: created initialization part: time 0.002075/33.47, allocations: 484.7 kB / 9.691 GB, free: 129.3 MB / 0.6203 GB Notification: Performance of simCode: created event and clocks part: time 8.506e-06/33.47, allocations: 0.9375 kB / 9.691 GB, free: 129.3 MB / 0.6203 GB Notification: Performance of simCode: created simulation system equations: time 0.0009378/33.47, allocations: 219.1 kB / 9.692 GB, free: 129.3 MB / 0.6203 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002773/33.47, allocations: 184.2 kB / 9.692 GB, free: 129.3 MB / 0.6203 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02981/33.5, allocations: 4.965 MB / 9.697 GB, free: 126.2 MB / 0.6203 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004618/33.5, allocations: 0.8169 MB / 9.697 GB, free: 125.5 MB / 0.6203 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00045/33.5, allocations: 139.7 kB / 9.698 GB, free: 125.5 MB / 0.6203 GB Notification: Performance of SimCode: time 1.843e-06/33.5, allocations: 0 / 9.698 GB, free: 125.5 MB / 0.6203 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.271/36.77, allocations: 36.6 MB / 9.733 GB, free: 122.4 MB / 0.6203 GB (rm -f Modelica_3.2.3_cpp_Modelica.Media.Examples.R134a.R134a1.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Media.Examples.R134a.R134a1.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Media.Examples.R134a.R134a1.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Media.Examples.R134a.R134a1.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Media.Examples.R134a.R134a1_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Media_Examples_R134a_R134a1_fmu --startTime=0 --stopTime=1.01 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Media_Examples_R134a_R134a1.fmu > Modelica_3.2.3_cpp_Modelica.Media.Examples.R134a.R134a1.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Media.Examples.R134a.R134a1_res.mat does not exist to compare? outputFormat=mat