Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Media.TestOnly.IdealGasN2.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 trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/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.IdealGasN2,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Media_TestOnly_IdealGasN2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Media.TestOnly.IdealGasN2,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Media_TestOnly_IdealGasN2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001153/0.001153, allocations: 95.52 kB / 16.98 MB, free: 6.398 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001458/0.001459, allocations: 198.1 kB / 17.89 MB, free: 5.945 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.435/1.435, allocations: 227.3 MB / 245.9 MB, free: 10.32 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.224/0.224, allocations: 45.92 MB / 344 MB, free: 12.1 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002625/0.0002626, allocations: 7.984 kB / 418.1 MB, free: 20.76 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1459/0.1462, allocations: 63.46 MB / 481.5 MB, free: 5.285 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Media.TestOnly.IdealGasN2): time 0.4506/0.5969, allocations: 125.6 MB / 0.5929 GB, free: 7.75 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.001116/0.598, allocations: 0.8162 MB / 0.5937 GB, free: 6.934 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.195e-05/0.5981, allocations: 3.938 kB / 0.5937 GB, free: 6.93 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002518/0.5984, allocations: 27.88 kB / 0.5937 GB, free: 6.902 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004945/0.5989, allocations: 211.3 kB / 0.5939 GB, free: 6.695 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003186/0.5992, allocations: 91.8 kB / 0.594 GB, free: 6.605 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001763/0.5994, allocations: 103.8 kB / 0.5941 GB, free: 6.504 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.568e-05/0.5995, allocations: 7.984 kB / 0.5941 GB, free: 6.496 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002178/0.5997, allocations: 91.69 kB / 0.5942 GB, free: 6.406 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.516e-05/0.5998, allocations: 47.83 kB / 0.5943 GB, free: 6.359 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 1.768e-05/0.5998, allocations: 4 kB / 0.5943 GB, free: 6.355 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005165/0.6003, allocations: 279.7 kB / 0.5945 GB, free: 6.082 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 5.325e-05/0.6004, allocations: 19.98 kB / 0.5945 GB, free: 6.062 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 4.098e-05/0.6004, allocations: 49.58 kB / 0.5946 GB, free: 6.008 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002968/0.6007, allocations: 200.9 kB / 0.5948 GB, free: 5.82 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.425e-06/0.6008, allocations: 0 / 0.5948 GB, free: 5.82 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.433e-06/0.6008, allocations: 0 / 0.5948 GB, free: 5.82 MB / 430.1 MB Notification: Performance of Transformations before backend: time 5.27e-06/0.6008, allocations: 4 kB / 0.5948 GB, free: 5.816 MB / 430.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 19 * Number of variables: 19 Notification: Performance of Generate backend data structure: time 0.0004718/0.6013, allocations: 385.5 kB / 0.5952 GB, free: 5.395 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.455e-05/0.6013, allocations: 8.031 kB / 0.5952 GB, free: 5.387 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.511e-05/0.6014, allocations: 38.56 kB / 0.5952 GB, free: 5.34 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00204/0.6034, allocations: 195.6 kB / 0.5954 GB, free: 5.148 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002261/0.6036, allocations: 202.9 kB / 0.5956 GB, free: 4.91 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.225e-05/0.6037, allocations: 8 kB / 0.5956 GB, free: 4.902 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.507e-05/0.6037, allocations: 12 kB / 0.5956 GB, free: 4.891 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004833/0.6042, allocations: 223.3 kB / 0.5958 GB, free: 4.66 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.816e-06/0.6042, allocations: 4 kB / 0.5958 GB, free: 4.656 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.372e-05/0.6043, allocations: 4 kB / 0.5958 GB, free: 4.652 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.822e-06/0.6043, allocations: 4 kB / 0.5958 GB, free: 4.648 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004063/0.6047, allocations: 171.7 kB / 0.596 GB, free: 4.48 MB / 430.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.0009672/0.6057, allocations: 0.5766 MB / 0.5965 GB, free: 3.844 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003016/0.606, allocations: 138.5 kB / 0.5967 GB, free: 3.699 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.37e-05/0.606, allocations: 0 / 0.5967 GB, free: 3.699 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.527e-05/0.606, allocations: 39.44 kB / 0.5967 GB, free: 3.652 MB / 430.1 MB Notification: Performance of pre-optimization done (n=14): time 1.031e-06/0.606, allocations: 0 / 0.5967 GB, free: 3.652 MB / 430.1 MB Warning: Some equations could not be differentiated for following variables having attribute stateSelect=StateSelect.prefer. They will be treated as if they had stateSelect=StateSelect.default ======================================== 1: medium.T Please use -d=bltdump for more information. Notification: Performance of matching and sorting (n=19): time 0.005123/0.6112, allocations: 1.308 MB / 0.598 GB, free: 2.254 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.075e-05/0.6112, allocations: 59.39 kB / 0.5981 GB, free: 2.184 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.203e-05/0.6113, allocations: 113.8 kB / 0.5982 GB, free: 2.062 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 2.894e-05/0.6114, allocations: 33.7 kB / 0.5982 GB, free: 2.023 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.596e-05/0.6114, allocations: 95.98 kB / 0.5983 GB, free: 1.926 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.559e-05/0.6115, allocations: 67 kB / 0.5983 GB, free: 1.859 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.823e-05/0.6115, allocations: 4 kB / 0.5984 GB, free: 1.855 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.000114/0.6116, allocations: 326.8 kB / 0.5987 GB, free: 1.527 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001462/0.6118, allocations: 67.83 kB / 0.5987 GB, free: 1.461 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001685/0.6119, allocations: 107.5 kB / 0.5988 GB, free: 1.344 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001619/0.6121, allocations: 80.92 kB / 0.5989 GB, free: 1.266 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.845e-06/0.6121, allocations: 4 kB / 0.5989 GB, free: 1.262 MB / 430.1 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0004591/0.6126, allocations: 258.9 kB / 0.5992 GB, free: 1.004 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.793e-05/0.6126, allocations: 4 kB / 0.5992 GB, free: 1 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.48e-06/0.6126, allocations: 3.938 kB / 0.5992 GB, free: 0.9961 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001725/0.6128, allocations: 53.67 kB / 0.5992 GB, free: 0.9414 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003126/0.6131, allocations: 51.91 kB / 0.5993 GB, free: 0.8906 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003804/0.6135, allocations: 0.5718 MB / 0.5998 GB, free: 300 kB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001736/0.6137, allocations: 4 kB / 0.5998 GB, free: 296 kB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.36e-05/0.6138, allocations: 28.08 kB / 0.5999 GB, free: 268 kB / 430.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * 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 (23): * Single equations (assignments): 22 * 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: 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 prepare postOptimizeDAE: time 0.0001131/0.6139, allocations: 125.8 kB / 0.6 GB, free: 132 kB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.268e-05/0.6139, allocations: 15.81 kB / 0.6 GB, free: 116 kB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000793/0.6147, allocations: 347 kB / 0.6003 GB, free: 15.77 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.56e-06/0.6148, allocations: 4 kB / 0.6003 GB, free: 15.76 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.19e-06/0.6148, allocations: 0 / 0.6003 GB, free: 15.76 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.821e-06/0.6148, allocations: 0 / 0.6003 GB, free: 15.76 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008993/0.6157, allocations: 0.6253 MB / 0.6009 GB, free: 15.07 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.114e-06/0.6157, allocations: 4 kB / 0.6009 GB, free: 15.07 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003465/0.616, allocations: 63.89 kB / 0.601 GB, free: 15 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.086e-05/0.6161, allocations: 20.94 kB / 0.601 GB, free: 14.98 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.642e-05/0.6162, allocations: 12 kB / 0.601 GB, free: 14.97 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008121/0.617, allocations: 1.273 MB / 0.6023 GB, free: 13.56 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.373e-06/0.617, allocations: 0 / 0.6023 GB, free: 13.56 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006446/0.6176, allocations: 471.9 kB / 0.6027 GB, free: 13.05 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.08e-05/0.6177, allocations: 92.94 kB / 0.6028 GB, free: 12.95 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.397e-05/0.6177, allocations: 8 kB / 0.6028 GB, free: 12.94 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002159/0.618, allocations: 8 kB / 0.6028 GB, free: 12.93 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.171e-05/0.618, allocations: 19.97 kB / 0.6028 GB, free: 12.91 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.072e-05/0.6181, allocations: 31.98 kB / 0.6029 GB, free: 12.88 MB / 446.1 MB Notification: Performance of sorting global known variables: time 4.925e-05/0.6181, allocations: 87.34 kB / 0.603 GB, free: 12.79 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.6181, allocations: 0 / 0.603 GB, free: 12.79 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0004107/0.6185, allocations: 79.98 kB / 0.603 GB, free: 12.71 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 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 (21): * Single equations (assignments): 20 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001181/0.6197, allocations: 1.251 MB / 0.6043 GB, free: 11.42 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.0004595/0.6202, allocations: 191.8 kB / 0.6044 GB, free: 11.23 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.916e-06/0.6202, allocations: 4 kB / 0.6044 GB, free: 11.23 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003066/0.6205, allocations: 223 kB / 0.6047 GB, free: 11 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003669/0.6209, allocations: 47.84 kB / 0.6047 GB, free: 10.95 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001934/0.6229, allocations: 1.557 MB / 0.6062 GB, free: 9.32 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002345/0.6231, allocations: 0.7049 MB / 0.6069 GB, free: 8.59 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0004264/0.6235, allocations: 85.92 kB / 0.607 GB, free: 8.508 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000212/0.6238, allocations: 67.39 kB / 0.6071 GB, free: 8.441 MB / 446.1 MB Notification: Performance of SimCode: time 2.7e-07/0.6238, allocations: 0 / 0.6071 GB, free: 8.441 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01896/0.6427, allocations: 6.887 MB / 0.6138 GB, free: 1.703 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001911/0.643, allocations: 197.7 kB / 0.614 GB, free: 1.465 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.882/2.525, allocations: 8 kB / 0.614 GB, free: 1.457 MB / 446.1 MB (rm -f ModelicaTest_trunk_ModelicaTest.Media.TestOnly.IdealGasN2.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Media.TestOnly.IdealGasN2.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Media.TestOnly.IdealGasN2.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Media.TestOnly.IdealGasN2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Media.TestOnly.IdealGasN2_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Media_TestOnly_IdealGasN2_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Media_TestOnly_IdealGasN2.fmu > ModelicaTest_trunk_ModelicaTest.Media.TestOnly.IdealGasN2.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_trunk_ModelicaTest.Media.TestOnly.IdealGasN2_res.mat does not exist to compare? outputFormat=mat