Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.Nitrogen.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.Nitrogen,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Media_TestsWithFluid_MediaTestModels_IdealGases_Nitrogen",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.Nitrogen,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Media_TestsWithFluid_MediaTestModels_IdealGases_Nitrogen",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001164/0.001164, allocations: 102.1 kB / 16.99 MB, free: 5.941 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001341/0.001341, allocations: 182 kB / 17.87 MB, free: 5.609 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.459/1.459, allocations: 223.2 MB / 241.8 MB, free: 14.65 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2335/0.2335, allocations: 44.22 MB / 337.1 MB, free: 2.68 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003811/0.0003814, allocations: 9.656 kB / 409.6 MB, free: 27.6 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1457/0.1461, allocations: 61.92 MB / 471.6 MB, free: 13.64 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.Nitrogen): time 0.4896/0.6358, allocations: 141.8 MB / 0.599 GB, free: 3.906 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.009018/0.6448, allocations: 5.52 MB / 0.6044 GB, free: 14.38 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001155/0.646, allocations: 23.75 kB / 0.6044 GB, free: 14.36 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001239/0.6473, allocations: 266.6 kB / 0.6047 GB, free: 14.1 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00412/0.6514, allocations: 1.072 MB / 0.6057 GB, free: 13.02 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003034/0.6545, allocations: 0.8482 MB / 0.6066 GB, free: 12.18 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.002306/0.6568, allocations: 1.044 MB / 0.6076 GB, free: 11.14 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009547/0.6578, allocations: 384.4 kB / 0.608 GB, free: 10.76 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002273/0.6601, allocations: 0.744 MB / 0.6087 GB, free: 10.02 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0015/0.6616, allocations: 0.5606 MB / 0.6092 GB, free: 9.453 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002252/0.6618, allocations: 32 kB / 0.6093 GB, free: 9.422 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001926/0.6637, allocations: 499.3 kB / 0.6097 GB, free: 8.934 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004196/0.6642, allocations: 211.5 kB / 0.6099 GB, free: 8.727 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004057/0.6646, allocations: 169.3 kB / 0.6101 GB, free: 8.555 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001638/0.6662, allocations: 0.9095 MB / 0.611 GB, free: 7.645 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.117e-06/0.6663, allocations: 0 / 0.611 GB, free: 7.645 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.234e-06/0.6663, allocations: 0 / 0.611 GB, free: 7.645 MB / 446.1 MB Notification: Performance of Transformations before backend: time 4.196e-05/0.6663, allocations: 0 / 0.611 GB, free: 7.645 MB / 446.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 130 * Number of variables: 130 Notification: Performance of Generate backend data structure: time 0.002748/0.6691, allocations: 0.9582 MB / 0.6119 GB, free: 6.633 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.05e-05/0.6691, allocations: 12.02 kB / 0.6119 GB, free: 6.621 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002862/0.6694, allocations: 98.52 kB / 0.612 GB, free: 6.516 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009781/0.6704, allocations: 135.1 kB / 0.6122 GB, free: 6.383 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001082/0.6715, allocations: 492.5 kB / 0.6126 GB, free: 5.863 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001181/0.6716, allocations: 102.2 kB / 0.6127 GB, free: 5.75 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001203/0.6718, allocations: 51.98 kB / 0.6128 GB, free: 5.699 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001293/0.6731, allocations: 0.8058 MB / 0.6136 GB, free: 4.82 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.028e-05/0.6731, allocations: 11.88 kB / 0.6136 GB, free: 4.809 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.954e-05/0.6732, allocations: 27.98 kB / 0.6136 GB, free: 4.781 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.328e-05/0.6733, allocations: 36.98 kB / 0.6136 GB, free: 4.746 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000984/0.6743, allocations: 0.6244 MB / 0.6142 GB, free: 4.121 MB / 446.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.004519/0.6788, allocations: 3.946 MB / 0.6181 GB, free: 15.91 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005443/0.6793, allocations: 351.6 kB / 0.6184 GB, free: 15.56 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001284/0.6795, allocations: 97.34 kB / 0.6185 GB, free: 15.45 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.465e-05/0.6795, allocations: 46.83 kB / 0.6186 GB, free: 15.39 MB / 462.1 MB Notification: Performance of pre-optimization done (n=34): time 1.673e-06/0.6795, allocations: 0 / 0.6186 GB, free: 15.39 MB / 462.1 MB Notification: Performance of matching and sorting (n=39): time 0.005673/0.6852, allocations: 1.674 MB / 0.6202 GB, free: 13.65 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.616e-05/0.6853, allocations: 136.5 kB / 0.6203 GB, free: 13.48 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007224/0.686, allocations: 0.6016 MB / 0.6209 GB, free: 12.88 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 5.704e-05/0.6861, allocations: 37.7 kB / 0.621 GB, free: 12.83 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002621/0.6864, allocations: 362.8 kB / 0.6213 GB, free: 12.47 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001377/0.6865, allocations: 142.1 kB / 0.6214 GB, free: 12.33 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.727e-05/0.6866, allocations: 19.94 kB / 0.6215 GB, free: 12.31 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001623/0.6867, allocations: 374.8 kB / 0.6218 GB, free: 11.94 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003469/0.6871, allocations: 201.9 kB / 0.622 GB, free: 11.74 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005505/0.6876, allocations: 0.5085 MB / 0.6225 GB, free: 11.08 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004864/0.6881, allocations: 296.6 kB / 0.6228 GB, free: 10.79 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.56e-06/0.6882, allocations: 3.953 kB / 0.6228 GB, free: 10.79 MB / 462.1 MB Notification: Performance of matching and sorting (n=85) (initialization): time 0.001488/0.6897, allocations: 0.8756 MB / 0.6236 GB, free: 9.902 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.488e-05/0.6897, allocations: 8 kB / 0.6237 GB, free: 9.895 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.438e-05/0.6897, allocations: 12 kB / 0.6237 GB, free: 9.883 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001406/0.6911, allocations: 319.3 kB / 0.624 GB, free: 9.57 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003837/0.6915, allocations: 131.8 kB / 0.6241 GB, free: 9.441 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001082/0.6926, allocations: 0.9153 MB / 0.625 GB, free: 8.5 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006014/0.6932, allocations: 55.88 kB / 0.625 GB, free: 8.445 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.835e-05/0.6933, allocations: 64 kB / 0.6251 GB, free: 8.383 MB / 462.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 45 * Number of states: 0 () * Number of discrete variables: 4 (volume.regularFlow[1],volume.regularFlow[2],volume.inFlow[2],volume.inFlow[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (67): * Single equations (assignments): 66 * 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 {2 17} Notification: Performance of prepare postOptimizeDAE: time 0.0004032/0.6937, allocations: 249.5 kB / 0.6253 GB, free: 8.129 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001179/0.6939, allocations: 75.2 kB / 0.6254 GB, free: 8.055 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001749/0.6956, allocations: 0.8695 MB / 0.6263 GB, free: 7.172 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.861e-06/0.6956, allocations: 8 kB / 0.6263 GB, free: 7.164 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.482e-06/0.6957, allocations: 4 kB / 0.6263 GB, free: 7.16 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.554e-06/0.6957, allocations: 3.984 kB / 0.6263 GB, free: 7.156 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002064/0.6977, allocations: 1.441 MB / 0.6277 GB, free: 5.578 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.538e-06/0.6978, allocations: 3.938 kB / 0.6277 GB, free: 5.574 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001069/0.6988, allocations: 203.8 kB / 0.6279 GB, free: 5.375 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001178/0.699, allocations: 28.83 kB / 0.6279 GB, free: 5.344 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.928e-05/0.699, allocations: 20 kB / 0.6279 GB, free: 5.324 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002205/0.7012, allocations: 2.696 MB / 0.6306 GB, free: 2.367 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.335e-06/0.7013, allocations: 0 / 0.6306 GB, free: 2.367 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00137/0.7026, allocations: 0.8818 MB / 0.6314 GB, free: 1.41 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003668/0.703, allocations: 184.2 kB / 0.6316 GB, free: 1.211 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.851e-05/0.7031, allocations: 16 kB / 0.6316 GB, free: 1.195 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004079/0.7035, allocations: 24.05 kB / 0.6316 GB, free: 1.172 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.195e-05/0.7036, allocations: 39.89 kB / 0.6317 GB, free: 1.133 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.013e-05/0.7037, allocations: 47.97 kB / 0.6317 GB, free: 1.086 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.0005526/0.7043, allocations: 431 kB / 0.6321 GB, free: 0.668 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.7043, allocations: 0 / 0.6321 GB, free: 0.668 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.001016/0.7053, allocations: 259.9 kB / 0.6324 GB, free: 424 kB / 462.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 2 (volume.medium.p,volume.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 (39): * Single equations (assignments): 37 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 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.002667/0.708, allocations: 2.035 MB / 0.6344 GB, free: 14.32 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.001228/0.7092, allocations: 0.5505 MB / 0.6349 GB, free: 13.77 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 7.945e-06/0.7092, allocations: 4 kB / 0.6349 GB, free: 13.77 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009932/0.7102, allocations: 406.7 kB / 0.6353 GB, free: 13.36 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001568/0.7118, allocations: 335.8 kB / 0.6356 GB, free: 13.04 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009598/0.7214, allocations: 10.86 MB / 0.6462 GB, free: 1.902 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005376/0.722, allocations: 0.9455 MB / 0.6471 GB, free: 0.9297 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.001366/0.7234, allocations: 464.2 kB / 0.6476 GB, free: 488 kB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005319/0.7239, allocations: 287.3 kB / 0.6479 GB, free: 200 kB / 478.1 MB Notification: Performance of SimCode: time 1.262e-06/0.7239, allocations: 0 / 0.6479 GB, free: 200 kB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04576/0.7697, allocations: 22.73 MB / 0.6701 GB, free: 9.82 MB / 0.4981 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002007/0.7699, allocations: 285.1 kB / 0.6703 GB, free: 9.461 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.338/3.107, allocations: 0 / 0.6703 GB, free: 9.461 MB / 0.4981 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.Nitrogen.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.Nitrogen.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.Nitrogen.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.Nitrogen.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.Nitrogen_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Media_TestsWithFluid_MediaTestModels_IdealGases_Nitrogen_fmu --startTime=0 --stopTime=1.01 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Media_TestsWithFluid_MediaTestModels_IdealGases_Nitrogen.fmu > ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.Nitrogen.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.Nitrogen_res.mat does not exist to compare? outputFormat=mat