Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.Media.TestOnly.MixIdealGasAir.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo", uses=false) Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Media.TestOnly.MixIdealGasAir,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Media_TestOnly_MixIdealGasAir",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Media.TestOnly.MixIdealGasAir,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Media_TestOnly_MixIdealGasAir",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001293/0.001293, allocations: 122.2 kB / 17.79 MB, free: 5.273 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00137/0.00137, allocations: 202 kB / 18.74 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.447/1.447, allocations: 227.4 MB / 247 MB, free: 10.43 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo): time 0.2353/0.2353, allocations: 46.12 MB / 344.4 MB, free: 11.45 MB / 286.1 MB Warning: Requested package Modelica of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.002312/0.002312, allocations: 75.88 kB / 480.9 MB, free: 4.527 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3568/0.3592, allocations: 62.45 MB / 0.5306 GB, free: 13.35 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Media.TestOnly.MixIdealGasAir): time 0.1903/0.5495, allocations: 152.8 MB / 0.6798 GB, free: 8.355 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.004303/0.5538, allocations: 3.243 MB / 0.683 GB, free: 5.102 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001022/0.5539, allocations: 7.938 kB / 0.683 GB, free: 5.094 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 0.0003825/0.5544, allocations: 55.64 kB / 0.683 GB, free: 5.039 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 0.003026/0.5574, allocations: 1.073 MB / 0.6841 GB, free: 3.961 MB / 0.5294 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006829/0.5581, allocations: 191.1 kB / 0.6843 GB, free: 3.777 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 0.0006431/0.5588, allocations: 366.6 kB / 0.6846 GB, free: 3.418 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 6.721e-05/0.5589, allocations: 13.11 kB / 0.6846 GB, free: 3.406 MB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003554/0.5592, allocations: 167.2 kB / 0.6848 GB, free: 3.246 MB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002467/0.5595, allocations: 119.6 kB / 0.6849 GB, free: 3.129 MB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 3.71e-05/0.5595, allocations: 12 kB / 0.6849 GB, free: 3.117 MB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004201/0.5637, allocations: 1.535 MB / 0.6864 GB, free: 1.578 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 0.0001284/0.5639, allocations: 79.77 kB / 0.6865 GB, free: 1.5 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 0.0001558/0.564, allocations: 103.6 kB / 0.6866 GB, free: 1.398 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.001813/0.5659, allocations: 1.017 MB / 0.6876 GB, free: 392 kB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 3.867e-06/0.5659, allocations: 0 / 0.6876 GB, free: 392 kB / 0.5294 GB Notification: Performance of FrontEnd: time 1.402e-06/0.5659, allocations: 0 / 0.6876 GB, free: 392 kB / 0.5294 GB Notification: Performance of Transformations before backend: time 1.481e-05/0.5659, allocations: 0 / 0.6876 GB, free: 392 kB / 0.5294 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 47 * Number of variables: 47 Notification: Performance of Generate backend data structure: time 0.0009917/0.5669, allocations: 0.5646 MB / 0.6881 GB, free: 15.77 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 4.809e-05/0.5669, allocations: 12.03 kB / 0.6881 GB, free: 15.76 MB / 0.545 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.155e-05/0.567, allocations: 54.73 kB / 0.6882 GB, free: 15.7 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001359/0.5684, allocations: 204.5 kB / 0.6884 GB, free: 15.5 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003641/0.5688, allocations: 255.6 kB / 0.6886 GB, free: 15.21 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.923e-05/0.5688, allocations: 12.38 kB / 0.6886 GB, free: 15.2 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.192e-05/0.5689, allocations: 24 kB / 0.6887 GB, free: 15.17 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006767/0.5695, allocations: 384.9 kB / 0.689 GB, free: 14.79 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.146e-05/0.5696, allocations: 0 / 0.689 GB, free: 14.79 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.998e-05/0.5696, allocations: 8 kB / 0.689 GB, free: 14.78 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.282e-05/0.5697, allocations: 15.98 kB / 0.689 GB, free: 14.77 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006478/0.5703, allocations: 416.4 kB / 0.6894 GB, free: 14.36 MB / 0.545 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.001711/0.572, allocations: 0.8215 MB / 0.6902 GB, free: 13.48 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004146/0.5725, allocations: 225.1 kB / 0.6905 GB, free: 13.25 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001854/0.5727, allocations: 125.7 kB / 0.6906 GB, free: 13.12 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001884/0.5745, allocations: 0.9763 MB / 0.6915 GB, free: 11.97 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.681e-05/0.5746, allocations: 38.56 kB / 0.6916 GB, free: 11.93 MB / 0.545 GB Notification: Performance of pre-optimization done (n=31): time 1.984e-06/0.5746, allocations: 0 / 0.6916 GB, free: 11.93 MB / 0.545 GB Notification: Performance of matching and sorting (n=31): time 0.001227/0.5758, allocations: 388.2 kB / 0.6919 GB, free: 11.54 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.962e-05/0.5759, allocations: 77.11 kB / 0.692 GB, free: 11.45 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001225/0.576, allocations: 121.7 kB / 0.6921 GB, free: 11.32 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 3.958e-05/0.5761, allocations: 33.7 kB / 0.6922 GB, free: 11.28 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 8.883e-05/0.5762, allocations: 112.6 kB / 0.6923 GB, free: 11.17 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.000106/0.5763, allocations: 126.9 kB / 0.6924 GB, free: 11.04 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001127/0.5764, allocations: 61.97 kB / 0.6925 GB, free: 10.98 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001657/0.5766, allocations: 330.8 kB / 0.6928 GB, free: 10.64 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002098/0.5768, allocations: 112.1 kB / 0.6929 GB, free: 10.54 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002664/0.5771, allocations: 182.9 kB / 0.693 GB, free: 10.32 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005054/0.5776, allocations: 324.4 kB / 0.6934 GB, free: 9.969 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.946e-06/0.5776, allocations: 0 / 0.6934 GB, free: 9.969 MB / 0.545 GB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0006683/0.5783, allocations: 348.9 kB / 0.6937 GB, free: 9.625 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 1.922e-05/0.5783, allocations: 12.03 kB / 0.6937 GB, free: 9.613 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.346e-06/0.5783, allocations: 4 kB / 0.6937 GB, free: 9.609 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.837e-05/0.5783, allocations: 4 kB / 0.6937 GB, free: 9.605 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003351/0.5787, allocations: 67.91 kB / 0.6938 GB, free: 9.539 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.217e-05/0.5787, allocations: 8 kB / 0.6938 GB, free: 9.531 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002123/0.5789, allocations: 31.77 kB / 0.6938 GB, free: 9.5 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.51e-05/0.579, allocations: 20.31 kB / 0.6938 GB, free: 9.48 MB / 0.545 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (40): * Single equations (assignments): 39 * Array equations: 1 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001513/0.5791, allocations: 145.6 kB / 0.694 GB, free: 9.328 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.685e-05/0.5792, allocations: 19.91 kB / 0.694 GB, free: 9.309 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006853/0.5799, allocations: 348.2 kB / 0.6943 GB, free: 8.961 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.254e-05/0.58, allocations: 4 kB / 0.6943 GB, free: 8.957 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.949e-06/0.58, allocations: 0 / 0.6943 GB, free: 8.957 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.268e-06/0.58, allocations: 3.984 kB / 0.6943 GB, free: 8.953 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005882/0.5806, allocations: 343.1 kB / 0.6947 GB, free: 8.566 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.984e-06/0.5806, allocations: 0 / 0.6947 GB, free: 8.566 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003232/0.5809, allocations: 51.91 kB / 0.6947 GB, free: 8.516 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.059e-06/0.5809, allocations: 4 kB / 0.6947 GB, free: 8.512 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.025e-05/0.581, allocations: 12 kB / 0.6947 GB, free: 8.5 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.665e-06/0.581, allocations: 0 / 0.6947 GB, free: 8.5 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.397e-06/0.581, allocations: 3.984 kB / 0.6947 GB, free: 8.496 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008233/0.5818, allocations: 0.5297 MB / 0.6952 GB, free: 7.949 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 5.714e-05/0.5819, allocations: 89 kB / 0.6953 GB, free: 7.844 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.808e-05/0.5819, allocations: 8.062 kB / 0.6953 GB, free: 7.836 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003079/0.5822, allocations: 11.98 kB / 0.6953 GB, free: 7.824 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.607e-05/0.5823, allocations: 19.97 kB / 0.6954 GB, free: 7.805 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.779e-05/0.5823, allocations: 27.92 kB / 0.6954 GB, free: 7.777 MB / 0.545 GB Notification: Performance of sorting global known variables: time 6.077e-05/0.5824, allocations: 95.19 kB / 0.6955 GB, free: 7.684 MB / 0.545 GB Notification: Performance of sort global known variables: time 2.61e-07/0.5824, allocations: 0 / 0.6955 GB, free: 7.684 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.0008339/0.5833, allocations: 239.4 kB / 0.6957 GB, free: 7.449 MB / 0.545 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 6 (medium2.p,medium2.T,medium2.X[1],medium2.X[2],medium.p,medium.T) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (30): * Single equations (assignments): 29 * Array equations: 1 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002043/0.5853, allocations: 1.398 MB / 0.6971 GB, free: 6.023 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.0005755/0.5859, allocations: 275.8 kB / 0.6973 GB, free: 5.754 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 9.688e-06/0.5859, allocations: 8 kB / 0.6973 GB, free: 5.746 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.000229/0.5861, allocations: 127.9 kB / 0.6975 GB, free: 5.621 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006562/0.5868, allocations: 95.5 kB / 0.6976 GB, free: 5.531 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003575/0.5904, allocations: 2.729 MB / 0.7002 GB, free: 2.648 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004001/0.5908, allocations: 0.7323 MB / 0.7009 GB, free: 1.891 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.0003107/0.5911, allocations: 73.78 kB / 0.701 GB, free: 1.82 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001456/0.5913, allocations: 59.42 kB / 0.7011 GB, free: 1.762 MB / 0.545 GB Notification: Performance of SimCode: time 9.62e-07/0.5913, allocations: 8 kB / 0.7011 GB, free: 1.754 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03789/0.6292, allocations: 10.92 MB / 0.7117 GB, free: 6.965 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.254/8.883, allocations: 15.98 kB / 0.7118 GB, free: 6.949 MB / 0.5606 GB (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Media.TestOnly.MixIdealGasAir.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.Media.TestOnly.MixIdealGasAir.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.Media.TestOnly.MixIdealGasAir.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Media.TestOnly.MixIdealGasAir.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0-beta.om_ModelicaTest.Media.TestOnly.MixIdealGasAir_res.mat --tempDir=temp_ModelicaTest_4_1_0-beta_om_ModelicaTest_Media_TestOnly_MixIdealGasAir_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 ModelicaTest_4_1_0-beta_om_ModelicaTest_Media_TestOnly_MixIdealGasAir.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.Media.TestOnly.MixIdealGasAir.pipe 2>&1)