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.001661/0.001661, allocations: 121.6 kB / 17.79 MB, free: 5.25 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001628/0.001628, allocations: 204.7 kB / 18.74 MB, free: 4.309 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.461/1.461, allocations: 227.4 MB / 247 MB, free: 10.38 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.2258/0.2258, allocations: 46.12 MB / 344.4 MB, free: 11.41 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.002261/0.002262, allocations: 79.86 kB / 480.9 MB, free: 4.488 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3572/0.3595, allocations: 62.45 MB / 0.5306 GB, free: 13.34 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Media.TestOnly.MixIdealGasAir): time 0.1972/0.5567, allocations: 152.8 MB / 0.6798 GB, free: 8.301 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.003937/0.5607, allocations: 3.244 MB / 0.683 GB, free: 5.047 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.985e-05/0.5608, allocations: 0 / 0.683 GB, free: 5.047 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 0.0003543/0.5612, allocations: 67.58 kB / 0.683 GB, free: 4.98 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 0.002534/0.5638, allocations: 1.07 MB / 0.6841 GB, free: 3.906 MB / 0.5294 GB Notification: Performance of NFTyping.typeClassSections: time 0.000518/0.5643, allocations: 199.3 kB / 0.6843 GB, free: 3.715 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 0.0004924/0.5648, allocations: 366.6 kB / 0.6846 GB, free: 3.355 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 5.071e-05/0.5649, allocations: 13.06 kB / 0.6846 GB, free: 3.344 MB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002756/0.5651, allocations: 163.3 kB / 0.6848 GB, free: 3.188 MB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002092/0.5654, allocations: 111.6 kB / 0.6849 GB, free: 3.078 MB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 3.646e-05/0.5654, allocations: 12 kB / 0.6849 GB, free: 3.066 MB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002902/0.5683, allocations: 1.531 MB / 0.6864 GB, free: 1.531 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 0.0001171/0.5684, allocations: 87.7 kB / 0.6865 GB, free: 1.445 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 0.0001407/0.5686, allocations: 103.6 kB / 0.6866 GB, free: 1.344 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.001694/0.5703, allocations: 1.013 MB / 0.6876 GB, free: 340 kB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 3.337e-06/0.5703, allocations: 0 / 0.6876 GB, free: 340 kB / 0.5294 GB Notification: Performance of FrontEnd: time 1.463e-06/0.5703, allocations: 0 / 0.6876 GB, free: 340 kB / 0.5294 GB Notification: Performance of Transformations before backend: time 6.272e-06/0.5703, allocations: 0 / 0.6876 GB, free: 340 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.0009447/0.5713, allocations: 0.5724 MB / 0.6881 GB, free: 15.71 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 3.922e-05/0.5713, allocations: 8.031 kB / 0.6881 GB, free: 15.7 MB / 0.545 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.411e-05/0.5714, allocations: 54.73 kB / 0.6882 GB, free: 15.64 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001399/0.5728, allocations: 208.6 kB / 0.6884 GB, free: 15.44 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003401/0.5731, allocations: 259.6 kB / 0.6886 GB, free: 15.14 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.867e-05/0.5732, allocations: 16.38 kB / 0.6886 GB, free: 15.13 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.128e-05/0.5732, allocations: 16 kB / 0.6887 GB, free: 15.11 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007098/0.5739, allocations: 384.9 kB / 0.689 GB, free: 14.73 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.509e-05/0.574, allocations: 0 / 0.689 GB, free: 14.73 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.962e-05/0.574, allocations: 12 kB / 0.689 GB, free: 14.72 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.71e-05/0.5741, allocations: 4 kB / 0.689 GB, free: 14.71 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000683/0.5748, allocations: 420.4 kB / 0.6894 GB, free: 14.3 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.001952/0.5767, allocations: 0.8215 MB / 0.6902 GB, free: 13.43 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004605/0.5772, allocations: 229.1 kB / 0.6905 GB, free: 13.19 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002165/0.5774, allocations: 125.6 kB / 0.6906 GB, free: 13.06 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002057/0.5795, allocations: 0.9802 MB / 0.6915 GB, free: 11.91 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.668e-05/0.5795, allocations: 30.56 kB / 0.6916 GB, free: 11.87 MB / 0.545 GB Notification: Performance of pre-optimization done (n=31): time 2.615e-06/0.5795, allocations: 4 kB / 0.6916 GB, free: 11.87 MB / 0.545 GB Notification: Performance of matching and sorting (n=31): time 0.001329/0.5809, allocations: 387.2 kB / 0.6919 GB, free: 11.49 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.781e-05/0.581, allocations: 85.11 kB / 0.692 GB, free: 11.39 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001223/0.5811, allocations: 117.7 kB / 0.6921 GB, free: 11.26 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 4.037e-05/0.5811, allocations: 29.7 kB / 0.6922 GB, free: 11.23 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 8.071e-05/0.5812, allocations: 112.6 kB / 0.6923 GB, free: 11.11 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001107/0.5813, allocations: 123 kB / 0.6924 GB, free: 10.99 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001145/0.5815, allocations: 66.02 kB / 0.6925 GB, free: 10.92 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001838/0.5816, allocations: 330.8 kB / 0.6928 GB, free: 10.59 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002031/0.5819, allocations: 108 kB / 0.6929 GB, free: 10.48 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002926/0.5822, allocations: 198.8 kB / 0.6931 GB, free: 10.25 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004947/0.5827, allocations: 310 kB / 0.6934 GB, free: 9.914 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.525e-06/0.5827, allocations: 0 / 0.6934 GB, free: 9.914 MB / 0.545 GB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0006647/0.5833, allocations: 351.8 kB / 0.6937 GB, free: 9.566 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 1.816e-05/0.5834, allocations: 4 kB / 0.6937 GB, free: 9.562 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.918e-06/0.5834, allocations: 4 kB / 0.6937 GB, free: 9.559 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.858e-05/0.5834, allocations: 4 kB / 0.6937 GB, free: 9.555 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003444/0.5838, allocations: 79.83 kB / 0.6938 GB, free: 9.477 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.34e-05/0.5838, allocations: 4.312 kB / 0.6938 GB, free: 9.473 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002286/0.584, allocations: 27.78 kB / 0.6938 GB, free: 9.445 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.663e-05/0.5841, allocations: 23.98 kB / 0.6938 GB, free: 9.422 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.0001484/0.5842, allocations: 145.9 kB / 0.694 GB, free: 9.27 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.923e-05/0.5843, allocations: 19.89 kB / 0.694 GB, free: 9.25 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007039/0.585, allocations: 337.5 kB / 0.6943 GB, free: 8.914 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.383e-05/0.5851, allocations: 8 kB / 0.6943 GB, free: 8.906 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.38e-06/0.5851, allocations: 0 / 0.6943 GB, free: 8.906 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.79e-06/0.5851, allocations: 0 / 0.6943 GB, free: 8.906 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006317/0.5857, allocations: 339.1 kB / 0.6946 GB, free: 8.523 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.385e-06/0.5857, allocations: 0 / 0.6946 GB, free: 8.523 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003328/0.5861, allocations: 63.89 kB / 0.6947 GB, free: 8.461 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.308e-06/0.5861, allocations: 0 / 0.6947 GB, free: 8.461 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.206e-05/0.5861, allocations: 12 kB / 0.6947 GB, free: 8.449 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.181e-06/0.5861, allocations: 4 kB / 0.6947 GB, free: 8.445 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.273e-06/0.5861, allocations: 0 / 0.6947 GB, free: 8.445 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008391/0.587, allocations: 0.5296 MB / 0.6952 GB, free: 7.898 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 6.682e-05/0.5871, allocations: 93 kB / 0.6953 GB, free: 7.789 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.692e-05/0.5871, allocations: 4.062 kB / 0.6953 GB, free: 7.785 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003081/0.5874, allocations: 19.98 kB / 0.6954 GB, free: 7.766 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.764e-05/0.5875, allocations: 23.95 kB / 0.6954 GB, free: 7.742 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.19e-05/0.5875, allocations: 19.92 kB / 0.6954 GB, free: 7.723 MB / 0.545 GB Notification: Performance of sorting global known variables: time 5.864e-05/0.5876, allocations: 91.22 kB / 0.6955 GB, free: 7.633 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.3e-07/0.5876, allocations: 0 / 0.6955 GB, free: 7.633 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.0009319/0.5885, allocations: 239.4 kB / 0.6957 GB, free: 7.398 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.002402/0.5909, allocations: 1.398 MB / 0.6971 GB, free: 5.973 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.0006014/0.5916, allocations: 273.9 kB / 0.6973 GB, free: 5.707 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 4.027e-06/0.5916, allocations: 3.938 kB / 0.6973 GB, free: 5.703 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.000238/0.5918, allocations: 139.8 kB / 0.6975 GB, free: 5.566 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007402/0.5926, allocations: 92.69 kB / 0.6976 GB, free: 5.477 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003881/0.5965, allocations: 2.732 MB / 0.7002 GB, free: 2.594 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004965/0.597, allocations: 0.7324 MB / 0.7009 GB, free: 1.836 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.0003661/0.5974, allocations: 77.95 kB / 0.701 GB, free: 1.762 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001647/0.5975, allocations: 67.41 kB / 0.7011 GB, free: 1.695 MB / 0.545 GB Notification: Performance of SimCode: time 1.402e-06/0.5975, allocations: 0 / 0.7011 GB, free: 1.695 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03766/0.6352, allocations: 10.92 MB / 0.7117 GB, free: 6.902 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.283/8.918, allocations: 7.922 kB / 0.7118 GB, free: 6.895 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 & python3 -m fmpy simulate --output-file ModelicaTest_4.1.0-beta.om_ModelicaTest.Media.TestOnly.MixIdealGasAir_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 ModelicaTest_4_1_0-beta_om_ModelicaTest_Media_TestOnly_MixIdealGasAir.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.Media.TestOnly.MixIdealGasAir.pipe 2>&1)