Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.Nitrogen.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.TestsWithFluid.MediaTestModels.IdealGases.Nitrogen,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Media_TestsWithFluid_MediaTestModels_IdealGases_Nitrogen",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.Nitrogen,fileNamePrefix="ModelicaTest_trunk_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 trunk/package.mo): time 0.0009624/0.0009625, allocations: 96.69 kB / 17 MB, free: 6.391 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0008728/0.0008734, allocations: 197.4 kB / 17.91 MB, free: 5.902 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.384/1.384, allocations: 227.3 MB / 246 MB, free: 12.01 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2301/0.2301, allocations: 45.9 MB / 344.1 MB, free: 12.21 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002597/0.0002598, allocations: 7.938 kB / 418.2 MB, free: 20.75 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.142/0.1423, allocations: 63.47 MB / 481.7 MB, free: 5.258 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.Nitrogen): time 0.5207/0.663, allocations: 159 MB / 0.6257 GB, free: 7.199 MB / 462.1 MB Notification: Performance of NFInst.instExpressions: time 0.008241/0.6713, allocations: 5.099 MB / 0.6306 GB, free: 2.086 MB / 462.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001161/0.6725, allocations: 23.75 kB / 0.6307 GB, free: 2.062 MB / 462.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001036/0.6736, allocations: 270.4 kB / 0.6309 GB, free: 1.797 MB / 462.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/Fluid/Sources.mo:784:36-785:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/Fluid/Sources.mo:782:36-783:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/Fluid/Sources.mo:730:36-731:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/Fluid/Sources.mo:728:36-729:54:writable] Warning: 'each' used when modifying non-array element m_flow. Notification: Performance of NFTyping.typeBindings: time 0.003926/0.6775, allocations: 1.166 MB / 0.6321 GB, free: 0.6289 MB / 462.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002772/0.6803, allocations: 0.8276 MB / 0.6329 GB, free: 15.81 MB / 478.1 MB Notification: Performance of NFFlatten.flatten: time 0.002954/0.6833, allocations: 2.257 MB / 0.6351 GB, free: 13.55 MB / 478.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007067/0.684, allocations: 380.3 kB / 0.6354 GB, free: 13.17 MB / 478.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002357/0.6863, allocations: 0.9068 MB / 0.6363 GB, free: 12.26 MB / 478.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001747/0.6881, allocations: 0.7439 MB / 0.637 GB, free: 11.52 MB / 478.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001267/0.6883, allocations: 32 kB / 0.6371 GB, free: 11.48 MB / 478.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001824/0.6901, allocations: 459.4 kB / 0.6375 GB, free: 11.04 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003657/0.6905, allocations: 239.2 kB / 0.6377 GB, free: 10.8 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003238/0.6908, allocations: 165.3 kB / 0.6379 GB, free: 10.63 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001426/0.6922, allocations: 0.9236 MB / 0.6388 GB, free: 9.707 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.578e-06/0.6923, allocations: 0 / 0.6388 GB, free: 9.707 MB / 478.1 MB Notification: Performance of FrontEnd: time 3.377e-06/0.6923, allocations: 7.938 kB / 0.6388 GB, free: 9.699 MB / 478.1 MB Notification: Performance of Transformations before backend: time 1.09e-05/0.6923, allocations: 0 / 0.6388 GB, free: 9.699 MB / 478.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.002146/0.6944, allocations: 0.9504 MB / 0.6397 GB, free: 8.699 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.726e-05/0.6945, allocations: 12.56 kB / 0.6397 GB, free: 8.688 MB / 478.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001461/0.6946, allocations: 98.52 kB / 0.6398 GB, free: 8.582 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007349/0.6954, allocations: 139 kB / 0.64 GB, free: 8.445 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007918/0.6962, allocations: 0.4888 MB / 0.6404 GB, free: 7.914 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001243/0.6963, allocations: 96.41 kB / 0.6405 GB, free: 7.809 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.8e-05/0.6964, allocations: 51.98 kB / 0.6406 GB, free: 7.758 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001299/0.6977, allocations: 0.8097 MB / 0.6414 GB, free: 6.871 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.792e-05/0.6978, allocations: 15.92 kB / 0.6414 GB, free: 6.855 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.552e-05/0.6979, allocations: 24 kB / 0.6414 GB, free: 6.832 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.449e-05/0.6979, allocations: 44.92 kB / 0.6415 GB, free: 6.785 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001024/0.699, allocations: 0.6205 MB / 0.6421 GB, free: 6.168 MB / 478.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.004522/0.7035, allocations: 3.94 MB / 0.6459 GB, free: 1.977 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006456/0.7041, allocations: 350.4 kB / 0.6462 GB, free: 1.629 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002974/0.7045, allocations: 171.7 kB / 0.6464 GB, free: 1.461 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001636/0.7046, allocations: 93.36 kB / 0.6465 GB, free: 1.352 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.265e-05/0.7047, allocations: 42.84 kB / 0.6465 GB, free: 1.301 MB / 478.1 MB Notification: Performance of pre-optimization done (n=34): time 1.583e-06/0.7047, allocations: 0 / 0.6465 GB, free: 1.301 MB / 478.1 MB Notification: Performance of matching and sorting (n=39): time 0.005035/0.7097, allocations: 1.657 MB / 0.6482 GB, free: 15.57 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.694e-05/0.7098, allocations: 140.5 kB / 0.6483 GB, free: 15.4 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007262/0.7106, allocations: 0.6092 MB / 0.6489 GB, free: 14.78 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 5.136e-05/0.7106, allocations: 41.7 kB / 0.6489 GB, free: 14.73 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003142/0.711, allocations: 366.8 kB / 0.6493 GB, free: 14.37 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001233/0.7111, allocations: 142 kB / 0.6494 GB, free: 14.23 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.553e-05/0.7111, allocations: 12 kB / 0.6494 GB, free: 14.21 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001937/0.7113, allocations: 374.8 kB / 0.6498 GB, free: 13.84 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003561/0.7117, allocations: 213.8 kB / 0.65 GB, free: 13.63 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005854/0.7123, allocations: 0.5086 MB / 0.6505 GB, free: 12.98 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004423/0.7127, allocations: 300.4 kB / 0.6508 GB, free: 12.68 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.026e-06/0.7128, allocations: 0 / 0.6508 GB, free: 12.68 MB / 494.1 MB Notification: Performance of matching and sorting (n=85) (initialization): time 0.001344/0.7141, allocations: 0.8723 MB / 0.6516 GB, free: 11.8 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.233e-05/0.7141, allocations: 8 kB / 0.6516 GB, free: 11.79 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.576e-05/0.7142, allocations: 15.94 kB / 0.6516 GB, free: 11.78 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001233/0.7154, allocations: 317 kB / 0.6519 GB, free: 11.46 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003809/0.7158, allocations: 123.8 kB / 0.6521 GB, free: 11.34 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001041/0.7168, allocations: 0.9338 MB / 0.653 GB, free: 10.39 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004837/0.7173, allocations: 44.05 kB / 0.653 GB, free: 10.34 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.973e-05/0.7174, allocations: 67.98 kB / 0.6531 GB, free: 10.28 MB / 494.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.0003332/0.7178, allocations: 241.5 kB / 0.6533 GB, free: 10.03 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000116/0.7179, allocations: 71.16 kB / 0.6534 GB, free: 9.961 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001716/0.7196, allocations: 0.8729 MB / 0.6542 GB, free: 9.074 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.951e-06/0.7196, allocations: 8 kB / 0.6542 GB, free: 9.066 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.741e-06/0.7197, allocations: 0 / 0.6542 GB, free: 9.066 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.094e-06/0.7197, allocations: 3.953 kB / 0.6542 GB, free: 9.062 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002061/0.7217, allocations: 1.445 MB / 0.6557 GB, free: 7.484 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.72e-06/0.7218, allocations: 4 kB / 0.6557 GB, free: 7.48 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009764/0.7227, allocations: 208 kB / 0.6559 GB, free: 7.277 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001313/0.7229, allocations: 28.78 kB / 0.6559 GB, free: 7.246 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.479e-05/0.7229, allocations: 23.98 kB / 0.6559 GB, free: 7.223 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002706/0.7257, allocations: 2.68 MB / 0.6585 GB, free: 4.281 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.418e-06/0.7257, allocations: 4.031 kB / 0.6585 GB, free: 4.277 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001651/0.7273, allocations: 0.8168 MB / 0.6593 GB, free: 3.422 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000492/0.7278, allocations: 192.2 kB / 0.6595 GB, free: 3.215 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001/0.7279, allocations: 11.98 kB / 0.6595 GB, free: 3.203 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004533/0.7284, allocations: 32.05 kB / 0.6596 GB, free: 3.172 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001286/0.7285, allocations: 43.84 kB / 0.6596 GB, free: 3.129 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.499e-05/0.7287, allocations: 43.98 kB / 0.6596 GB, free: 3.086 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.0007407/0.7294, allocations: 427 kB / 0.66 GB, free: 2.672 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.322e-06/0.7294, allocations: 0 / 0.66 GB, free: 2.672 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.00116/0.7306, allocations: 259.9 kB / 0.6603 GB, free: 2.418 MB / 494.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.002608/0.7332, allocations: 1.562 MB / 0.6618 GB, free: 0.8164 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.001365/0.7346, allocations: 0.5472 MB / 0.6624 GB, free: 276 kB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 4.529e-06/0.7346, allocations: 0 / 0.6624 GB, free: 276 kB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001037/0.7356, allocations: 411 kB / 0.6627 GB, free: 15.86 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001638/0.7373, allocations: 348.8 kB / 0.6631 GB, free: 15.52 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007597/0.7449, allocations: 4.25 MB / 0.6672 GB, free: 11.06 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007028/0.7456, allocations: 0.9261 MB / 0.6681 GB, free: 10.11 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.001489/0.7471, allocations: 457.8 kB / 0.6686 GB, free: 9.664 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006462/0.7478, allocations: 287.3 kB / 0.6688 GB, free: 9.383 MB / 0.4981 GB Notification: Performance of SimCode: time 1.052e-06/0.7478, allocations: 0 / 0.6688 GB, free: 9.383 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04767/0.7955, allocations: 22.76 MB / 0.6911 GB, free: 2.934 MB / 0.5137 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000304/0.7959, allocations: 293.4 kB / 0.6913 GB, free: 2.57 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.461/3.257, allocations: 0 / 0.6913 GB, free: 2.57 MB / 0.5137 GB (rm -f ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.Nitrogen.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.Nitrogen.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.Nitrogen.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.Nitrogen.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.Nitrogen_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Media_TestsWithFluid_MediaTestModels_IdealGases_Nitrogen_fmu --startTime=0 --stopTime=1.01 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Media_TestsWithFluid_MediaTestModels_IdealGases_Nitrogen.fmu > ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.Nitrogen.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.Nitrogen_res.mat does not exist to compare? outputFormat=mat