Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_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 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.IdealGasN2,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Media_TestOnly_IdealGasN2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Media.TestOnly.IdealGasN2,fileNamePrefix="ModelicaTest_4_1_0-beta_om_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.00135/0.00135, allocations: 103.7 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001371/0.001371, allocations: 212.6 kB / 18.58 MB, free: 4.578 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.476/1.476, allocations: 227.4 MB / 246.8 MB, free: 10.59 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.2949/0.2949, allocations: 46.12 MB / 344.2 MB, free: 11.55 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.0023/0.0023, allocations: 77.38 kB / 417.7 MB, free: 19.61 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1183/0.1206, allocations: 62.46 MB / 480.2 MB, free: 5.133 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Media.TestOnly.IdealGasN2): time 0.4189/0.5395, allocations: 152.3 MB / 0.6176 GB, free: 10.82 MB / 462.1 MB Notification: Performance of NFInst.instExpressions: time 0.00178/0.5413, allocations: 1.056 MB / 0.6187 GB, free: 9.77 MB / 462.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.176e-05/0.5415, allocations: 0 / 0.6187 GB, free: 9.77 MB / 462.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002662/0.5418, allocations: 31.77 kB / 0.6187 GB, free: 9.738 MB / 462.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007942/0.5426, allocations: 282.7 kB / 0.619 GB, free: 9.469 MB / 462.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000366/0.5429, allocations: 107.2 kB / 0.6191 GB, free: 9.367 MB / 462.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002888/0.5432, allocations: 187.2 kB / 0.6193 GB, free: 9.184 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.904e-05/0.5433, allocations: 15.55 kB / 0.6193 GB, free: 9.172 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002273/0.5435, allocations: 91.62 kB / 0.6194 GB, free: 9.082 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001209/0.5437, allocations: 51.77 kB / 0.6194 GB, free: 9.031 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 2.339e-05/0.5437, allocations: 8 kB / 0.6194 GB, free: 9.023 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006353/0.5443, allocations: 271.7 kB / 0.6197 GB, free: 8.758 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 6.875e-05/0.5444, allocations: 27.89 kB / 0.6197 GB, free: 8.73 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 8.78e-05/0.5445, allocations: 39.81 kB / 0.6197 GB, free: 8.691 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005404/0.5451, allocations: 287.3 kB / 0.62 GB, free: 8.41 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.098e-06/0.5451, allocations: 0 / 0.62 GB, free: 8.41 MB / 462.1 MB Notification: Performance of FrontEnd: time 1.173e-06/0.5451, allocations: 0 / 0.62 GB, free: 8.41 MB / 462.1 MB Notification: Performance of Transformations before backend: time 5.57e-06/0.5451, allocations: 0 / 0.62 GB, free: 8.41 MB / 462.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.0005903/0.5457, allocations: 407.9 kB / 0.6204 GB, free: 7.965 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.311e-05/0.5457, allocations: 12.03 kB / 0.6204 GB, free: 7.953 MB / 462.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.884e-05/0.5458, allocations: 38.73 kB / 0.6204 GB, free: 7.906 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002251/0.5481, allocations: 199.4 kB / 0.6206 GB, free: 7.715 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003175/0.5484, allocations: 203.8 kB / 0.6208 GB, free: 7.477 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.674e-05/0.5484, allocations: 4 kB / 0.6208 GB, free: 7.473 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.399e-05/0.5485, allocations: 15.88 kB / 0.6209 GB, free: 7.457 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000532/0.549, allocations: 230.1 kB / 0.6211 GB, free: 7.219 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.718e-06/0.5491, allocations: 0 / 0.6211 GB, free: 7.219 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.418e-05/0.5491, allocations: 4 kB / 0.6211 GB, free: 7.215 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.274e-06/0.5491, allocations: 4 kB / 0.6211 GB, free: 7.211 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004628/0.5496, allocations: 167.8 kB / 0.6212 GB, free: 7.047 MB / 462.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.001119/0.5507, allocations: 0.5843 MB / 0.6218 GB, free: 6.406 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003628/0.5511, allocations: 138.5 kB / 0.6219 GB, free: 6.262 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001524/0.5512, allocations: 68.83 kB / 0.622 GB, free: 6.191 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.541e-05/0.5513, allocations: 4 kB / 0.622 GB, free: 6.188 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.646e-05/0.5513, allocations: 34.56 kB / 0.622 GB, free: 6.145 MB / 462.1 MB Notification: Performance of pre-optimization done (n=14): time 1.412e-06/0.5513, allocations: 0 / 0.622 GB, free: 6.145 MB / 462.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.00572/0.557, allocations: 1.308 MB / 0.6233 GB, free: 4.746 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.906e-05/0.5571, allocations: 55.41 kB / 0.6234 GB, free: 4.68 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.854e-05/0.5572, allocations: 105.8 kB / 0.6235 GB, free: 4.566 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 3.733e-05/0.5573, allocations: 33.7 kB / 0.6235 GB, free: 4.527 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.015e-05/0.5573, allocations: 95.94 kB / 0.6236 GB, free: 4.43 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.135e-05/0.5574, allocations: 67.03 kB / 0.6237 GB, free: 4.363 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001016/0.5575, allocations: 57.69 kB / 0.6237 GB, free: 4.301 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001451/0.5577, allocations: 322.8 kB / 0.624 GB, free: 3.977 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001816/0.5579, allocations: 71.83 kB / 0.6241 GB, free: 3.906 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001944/0.5581, allocations: 107.3 kB / 0.6242 GB, free: 3.789 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003811/0.5585, allocations: 187.3 kB / 0.6244 GB, free: 3.594 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.222e-06/0.5585, allocations: 0 / 0.6244 GB, free: 3.594 MB / 462.1 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0005514/0.559, allocations: 261.1 kB / 0.6246 GB, free: 3.332 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.146e-05/0.5591, allocations: 14.64 kB / 0.6246 GB, free: 3.32 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.152e-06/0.5591, allocations: 320 / 0.6246 GB, free: 3.32 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002056/0.5593, allocations: 52.92 kB / 0.6247 GB, free: 3.266 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003465/0.5596, allocations: 57.03 kB / 0.6247 GB, free: 3.211 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004961/0.5602, allocations: 0.564 MB / 0.6253 GB, free: 2.621 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001851/0.5603, allocations: 8.031 kB / 0.6253 GB, free: 2.613 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.858e-05/0.5604, allocations: 27.97 kB / 0.6253 GB, free: 2.586 MB / 462.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 (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,1)} Notification: Performance of prepare postOptimizeDAE: time 0.0001649/0.5606, allocations: 129.9 kB / 0.6255 GB, free: 2.449 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.268e-05/0.5606, allocations: 7.906 kB / 0.6255 GB, free: 2.441 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008903/0.5615, allocations: 347.8 kB / 0.6258 GB, free: 2.098 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.051e-06/0.5615, allocations: 4 kB / 0.6258 GB, free: 2.094 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.162e-06/0.5616, allocations: 0 / 0.6258 GB, free: 2.094 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.372e-06/0.5616, allocations: 3.984 kB / 0.6258 GB, free: 2.09 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001079/0.5627, allocations: 0.6289 MB / 0.6264 GB, free: 1.395 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.685e-06/0.5627, allocations: 0 / 0.6264 GB, free: 1.395 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003561/0.563, allocations: 59.95 kB / 0.6265 GB, free: 1.336 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.047e-05/0.5631, allocations: 24.94 kB / 0.6265 GB, free: 1.309 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.816e-05/0.5632, allocations: 11.98 kB / 0.6265 GB, free: 1.297 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001089/0.5643, allocations: 1.368 MB / 0.6278 GB, free: 15.79 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.763e-06/0.5643, allocations: 0 / 0.6278 GB, free: 15.79 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007515/0.565, allocations: 434.6 kB / 0.6283 GB, free: 15.34 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.89e-05/0.5651, allocations: 85.05 kB / 0.6283 GB, free: 15.23 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.129e-05/0.5652, allocations: 11.98 kB / 0.6284 GB, free: 15.22 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002234/0.5654, allocations: 4 kB / 0.6284 GB, free: 15.22 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.216e-05/0.5655, allocations: 23.97 kB / 0.6284 GB, free: 15.2 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.637e-05/0.5655, allocations: 31.92 kB / 0.6284 GB, free: 15.16 MB / 478.1 MB Notification: Performance of sorting global known variables: time 5.737e-05/0.5656, allocations: 87.34 kB / 0.6285 GB, free: 15.08 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.5656, allocations: 0 / 0.6285 GB, free: 15.08 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.0004379/0.566, allocations: 87.92 kB / 0.6286 GB, free: 14.99 MB / 478.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 (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001312/0.5673, allocations: 1.008 MB / 0.6296 GB, free: 13.95 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.0005576/0.5679, allocations: 211.7 kB / 0.6298 GB, free: 13.74 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 6.161e-06/0.5679, allocations: 3.938 kB / 0.6298 GB, free: 13.73 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003705/0.5683, allocations: 224.5 kB / 0.63 GB, free: 13.5 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004724/0.5688, allocations: 57.48 kB / 0.63 GB, free: 13.45 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002874/0.5717, allocations: 2.054 MB / 0.632 GB, free: 11.27 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003416/0.572, allocations: 0.7046 MB / 0.6327 GB, free: 10.54 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.0004619/0.5725, allocations: 73.39 kB / 0.6328 GB, free: 10.47 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002357/0.5727, allocations: 75.39 kB / 0.6329 GB, free: 10.4 MB / 478.1 MB Notification: Performance of SimCode: time 4.7e-07/0.5727, allocations: 0 / 0.6329 GB, free: 10.4 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04314/0.6159, allocations: 7.281 MB / 0.64 GB, free: 3.227 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.16/12.78, allocations: 2.391 kB / 0.64 GB, free: 3.227 MB / 478.1 MB (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Media.TestOnly.IdealGasN2.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.Media.TestOnly.IdealGasN2.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.Media.TestOnly.IdealGasN2.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Media.TestOnly.IdealGasN2.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.1.0-beta.om_ModelicaTest.Media.TestOnly.IdealGasN2_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_IdealGasN2.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.Media.TestOnly.IdealGasN2.pipe 2>&1)