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.00158/0.00158, allocations: 181.3 kB / 13.66 MB, free: 1.664 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.045/2.045, allocations: 205.2 MB / 219.4 MB, free: 14.29 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.001139/0.001138, allocations: 86.66 kB / 267.5 MB, free: 14.12 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.833e-05/2.85e-05, allocations: 3.984 kB / 321.6 MB, free: 17.76 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1208/0.1208, allocations: 47.56 MB / 369.2 MB, free: 2.129 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 17.63/17.75, allocations: 5.796 GB / 6.156 GB, free: 99.78 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002677/17.75, allocations: 75.58 kB / 6.157 GB, free: 99.74 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 15.94/33.69, allocations: 3.486 GB / 9.643 GB, free: 120.6 MB / 0.62 GB Notification: Performance of FrontEnd: time 1.823e-06/33.69, allocations: 0 / 9.643 GB, free: 120.6 MB / 0.62 GB Notification: Performance of Transformations before backend: time 3.452e-05/33.69, allocations: 11.23 kB / 9.643 GB, free: 120.6 MB / 0.62 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.04879/33.74, allocations: 1.667 MB / 9.644 GB, free: 119.9 MB / 0.62 GB Notification: Performance of prepare preOptimizeDAE: time 5.485e-05/33.74, allocations: 10.03 kB / 9.644 GB, free: 119.9 MB / 0.62 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001108/33.74, allocations: 69.94 kB / 9.644 GB, free: 119.9 MB / 0.62 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007526/33.74, allocations: 70.19 kB / 9.644 GB, free: 119.8 MB / 0.62 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006139/33.74, allocations: 313 kB / 9.645 GB, free: 119.6 MB / 0.62 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.675e-05/33.74, allocations: 32.17 kB / 9.645 GB, free: 119.6 MB / 0.62 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.597e-05/33.74, allocations: 34.17 kB / 9.645 GB, free: 119.6 MB / 0.62 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001302/33.74, allocations: 462 kB / 9.645 GB, free: 119.5 MB / 0.62 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.188e-05/33.74, allocations: 5.125 kB / 9.645 GB, free: 119.5 MB / 0.62 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.245e-05/33.74, allocations: 18.22 kB / 9.645 GB, free: 119.5 MB / 0.62 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.219e-05/33.74, allocations: 6.406 kB / 9.645 GB, free: 119.5 MB / 0.62 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001061/33.74, allocations: 386.8 kB / 9.646 GB, free: 119.5 MB / 0.62 GB Warning: The model contains alias variables with conflicting start and/or 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.01036/33.75, allocations: 5.22 MB / 9.651 GB, free: 117.5 MB / 0.62 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000994/33.75, allocations: 290.8 kB / 9.651 GB, free: 117.5 MB / 0.62 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003187/33.75, allocations: 133.5 kB / 9.651 GB, free: 117.5 MB / 0.62 GB Notification: Performance of preOpt evalFunc (simulation): time 0.003476/33.76, allocations: 2.056 MB / 9.653 GB, free: 115.7 MB / 0.62 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.84e-05/33.76, allocations: 32.75 kB / 9.653 GB, free: 115.6 MB / 0.62 GB Notification: Performance of pre-optimization done (n=30): time 3.937e-06/33.76, allocations: 0 / 9.653 GB, free: 115.6 MB / 0.62 GB Notification: Performance of matching and sorting (n=34): time 0.007388/33.77, allocations: 1.138 MB / 9.654 GB, free: 115.3 MB / 0.62 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.694e-05/33.77, allocations: 55.06 kB / 9.654 GB, free: 115.2 MB / 0.62 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003506/33.77, allocations: 235.2 kB / 9.655 GB, free: 115.1 MB / 0.62 GB Notification: Performance of collectPreVariables (initialization): time 4.617e-05/33.77, allocations: 31.2 kB / 9.655 GB, free: 115.1 MB / 0.62 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001252/33.77, allocations: 244.8 kB / 9.655 GB, free: 114.9 MB / 0.62 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001143/33.77, allocations: 120.9 kB / 9.655 GB, free: 114.9 MB / 0.62 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.074e-05/33.77, allocations: 8.469 kB / 9.655 GB, free: 114.9 MB / 0.62 GB Notification: Performance of setup shared object (initialization): time 8.126e-05/33.77, allocations: 329.6 kB / 9.655 GB, free: 114.5 MB / 0.62 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003048/33.77, allocations: 109.6 kB / 9.655 GB, free: 114.5 MB / 0.62 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003768/33.77, allocations: 221.9 kB / 9.656 GB, free: 114.4 MB / 0.62 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003808/33.77, allocations: 150 kB / 9.656 GB, free: 114.4 MB / 0.62 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.598e-06/33.77, allocations: 3.156 kB / 9.656 GB, free: 114.4 MB / 0.62 GB Notification: Performance of matching and sorting (n=50) (initialization): time 0.001339/33.77, allocations: 436.4 kB / 9.656 GB, free: 114.3 MB / 0.62 GB Notification: Performance of prepare postOptimizeDAE: time 2.477e-05/33.77, allocations: 6.531 kB / 9.656 GB, free: 114.3 MB / 0.62 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.13e-05/33.77, allocations: 3.031 kB / 9.656 GB, free: 114.3 MB / 0.62 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01223/33.78, allocations: 294.7 kB / 9.656 GB, free: 114.3 MB / 0.62 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006862/33.78, allocations: 90.83 kB / 9.656 GB, free: 114.3 MB / 0.62 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001509/33.78, allocations: 1.842 MB / 9.658 GB, free: 112.5 MB / 0.62 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005715/33.78, allocations: 33.42 kB / 9.658 GB, free: 112.5 MB / 0.62 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.237e-05/33.78, allocations: 19.62 kB / 9.658 GB, free: 112.5 MB / 0.62 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 () * 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.0001655/33.78, allocations: 132 kB / 9.658 GB, free: 112.4 MB / 0.62 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.087e-05/33.78, allocations: 31.83 kB / 9.658 GB, free: 112.4 MB / 0.62 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001658/33.79, allocations: 0.7007 MB / 9.659 GB, free: 112.3 MB / 0.62 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.676e-05/33.79, allocations: 8.031 kB / 9.659 GB, free: 112.3 MB / 0.62 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.598e-06/33.79, allocations: 0 / 9.659 GB, free: 112.3 MB / 0.62 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001082/33.79, allocations: 0.8519 MB / 9.66 GB, free: 111.9 MB / 0.62 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002184/33.79, allocations: 1.184 MB / 9.661 GB, free: 111.5 MB / 0.62 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.042e-05/33.79, allocations: 3.953 kB / 9.661 GB, free: 111.5 MB / 0.62 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004861/33.79, allocations: 66.81 kB / 9.661 GB, free: 111.5 MB / 0.62 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003183/33.79, allocations: 190.3 kB / 9.661 GB, free: 111.5 MB / 0.62 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.163e-05/33.79, allocations: 14 kB / 9.661 GB, free: 111.5 MB / 0.62 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004177/33.79, allocations: 0.5677 MB / 9.662 GB, free: 111 MB / 0.62 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.224e-06/33.79, allocations: 3.031 kB / 9.662 GB, free: 111 MB / 0.62 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001418/33.8, allocations: 0.7307 MB / 9.663 GB, free: 110.8 MB / 0.62 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001836/33.8, allocations: 124.1 kB / 9.663 GB, free: 110.7 MB / 0.62 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.877e-05/33.8, allocations: 6.375 kB / 9.663 GB, free: 110.7 MB / 0.62 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004159/33.8, allocations: 26.02 kB / 9.663 GB, free: 110.7 MB / 0.62 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.957e-05/33.8, allocations: 22.11 kB / 9.663 GB, free: 110.7 MB / 0.62 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.235e-05/33.8, allocations: 16.56 kB / 9.663 GB, free: 110.7 MB / 0.62 GB Notification: Performance of sorting global known variables: time 0.0003354/33.8, allocations: 213.8 kB / 9.663 GB, free: 110.6 MB / 0.62 GB Notification: Performance of sort global known variables: time 4.41e-07/33.8, allocations: 0 / 9.663 GB, free: 110.6 MB / 0.62 GB Notification: Performance of remove unused functions: time 0.01685/33.81, allocations: 0.8503 MB / 9.664 GB, free: 110.5 MB / 0.62 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 () * 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.195/34.01, allocations: 20.23 MB / 9.684 GB, free: 100.1 MB / 0.62 GB Notification: Performance of simCode: created initialization part: time 0.001665/34.01, allocations: 486.2 kB / 9.684 GB, free: 99.94 MB / 0.62 GB Notification: Performance of simCode: created event and clocks part: time 6.022e-06/34.01, allocations: 0 / 9.684 GB, free: 99.94 MB / 0.62 GB Notification: Performance of simCode: created simulation system equations: time 0.0005818/34.01, allocations: 222.3 kB / 9.684 GB, free: 99.94 MB / 0.62 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00187/34.01, allocations: 178.9 kB / 9.685 GB, free: 99.92 MB / 0.62 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01719/34.03, allocations: 1.146 MB / 9.686 GB, free: 99.45 MB / 0.62 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003484/34.03, allocations: 0.8211 MB / 9.686 GB, free: 98.75 MB / 0.62 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003315/34.03, allocations: 135.5 kB / 9.687 GB, free: 98.74 MB / 0.62 GB Notification: Performance of SimCode: time 1.203e-06/34.03, allocations: 6.594 kB / 9.687 GB, free: 98.73 MB / 0.62 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.528/37.56, allocations: 36.67 MB / 9.722 GB, free: 93.9 MB / 0.62 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