Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.Media.TestOnly.IdealGasN2.conf.json 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/ModelicaServices 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 ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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) Running command: translateModel(ModelicaTest.Media.TestOnly.IdealGasN2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|medium.T|medium.p",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Media.TestOnly.IdealGasN2") translateModel(ModelicaTest.Media.TestOnly.IdealGasN2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|medium.T|medium.p",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Media.TestOnly.IdealGasN2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001134/0.001134, allocations: 200.5 kB / 15.8 MB, free: 6.305 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.306/1.306, allocations: 226.6 MB / 243.1 MB, free: 14.11 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007315/0.0007315, allocations: 90.25 kB / 295.1 MB, free: 10.02 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1716/0.1716, allocations: 44.83 MB / 392 MB, free: 9.297 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002293/0.0002293, allocations: 7.984 kB / 464.7 MB, free: 49.76 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08596/0.08621, allocations: 62.95 MB / 0.5153 GB, free: 2.773 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Media.TestOnly.IdealGasN2): time 0.3023/0.3886, allocations: 135.5 MB / 0.6477 GB, free: 5.906 MB / 458.7 MB Notification: Performance of NFInst.instExpressions: time 0.00115/0.3898, allocations: 0.9001 MB / 0.6485 GB, free: 5.004 MB / 458.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.267e-05/0.3898, allocations: 0 / 0.6485 GB, free: 5.004 MB / 458.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002034/0.3901, allocations: 27.88 kB / 0.6486 GB, free: 4.977 MB / 458.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0005675/0.3906, allocations: 203 kB / 0.6488 GB, free: 4.777 MB / 458.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003361/0.391, allocations: 98.48 kB / 0.6489 GB, free: 4.684 MB / 458.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002311/0.3912, allocations: 183.2 kB / 0.649 GB, free: 4.504 MB / 458.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.228e-05/0.3913, allocations: 4 kB / 0.649 GB, free: 4.5 MB / 458.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000178/0.3915, allocations: 83.69 kB / 0.6491 GB, free: 4.418 MB / 458.7 MB Notification: Performance of NFSimplifyModel.simplify: time 9.514e-05/0.3916, allocations: 55.77 kB / 0.6492 GB, free: 4.363 MB / 458.7 MB Notification: Performance of NFPackage.collectConstants: time 2.019e-05/0.3916, allocations: 4 kB / 0.6492 GB, free: 4.359 MB / 458.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005186/0.3921, allocations: 267.6 kB / 0.6494 GB, free: 4.098 MB / 458.7 MB Notification: Performance of NFScalarize.scalarize: time 4.607e-05/0.3922, allocations: 19.92 kB / 0.6494 GB, free: 4.078 MB / 458.7 MB Notification: Performance of NFVerifyModel.verify: time 4.522e-05/0.3922, allocations: 45.7 kB / 0.6495 GB, free: 4.027 MB / 458.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002924/0.3925, allocations: 197.1 kB / 0.6497 GB, free: 3.836 MB / 458.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.447e-06/0.3925, allocations: 0 / 0.6497 GB, free: 3.836 MB / 458.7 MB Notification: Performance of FrontEnd: time 1.603e-06/0.3925, allocations: 0 / 0.6497 GB, free: 3.836 MB / 458.7 MB Notification: Performance of Transformations before backend: time 3.868e-06/0.3926, allocations: 0 / 0.6497 GB, free: 3.836 MB / 458.7 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.0004484/0.393, allocations: 395.2 kB / 0.6501 GB, free: 3.402 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.176e-05/0.393, allocations: 8.031 kB / 0.6501 GB, free: 3.395 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00192/0.395, allocations: 191.6 kB / 0.6502 GB, free: 3.207 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002209/0.3952, allocations: 210.9 kB / 0.6504 GB, free: 2.961 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.119e-05/0.3952, allocations: 4 kB / 0.6505 GB, free: 2.957 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.358e-05/0.3953, allocations: 12 kB / 0.6505 GB, free: 2.945 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000451/0.3957, allocations: 216.1 kB / 0.6507 GB, free: 2.719 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.566e-06/0.3957, allocations: 4 kB / 0.6507 GB, free: 2.715 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.362e-05/0.3958, allocations: 7.953 kB / 0.6507 GB, free: 2.707 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.35e-06/0.3958, allocations: 4 kB / 0.6507 GB, free: 2.703 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004017/0.3962, allocations: 173.8 kB / 0.6508 GB, free: 2.535 MB / 458.7 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.0009493/0.3972, allocations: 0.5877 MB / 0.6514 GB, free: 1.887 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003092/0.3975, allocations: 142.5 kB / 0.6516 GB, free: 1.738 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001362/0.3976, allocations: 68.83 kB / 0.6516 GB, free: 1.668 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.19e-05/0.3977, allocations: 4 kB / 0.6516 GB, free: 1.664 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.896e-05/0.3977, allocations: 30.56 kB / 0.6517 GB, free: 1.625 MB / 458.7 MB Notification: Performance of pre-optimization done (n=14): time 1.332e-06/0.3977, allocations: 7.938 kB / 0.6517 GB, free: 1.617 MB / 458.7 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.00477/0.4025, allocations: 1.31 MB / 0.6529 GB, free: 228 kB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.038e-05/0.4025, allocations: 55.41 kB / 0.653 GB, free: 160 kB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.18e-05/0.4026, allocations: 113.8 kB / 0.6531 GB, free: 36 kB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 4.146e-05/0.4026, allocations: 33.78 kB / 0.6531 GB, free: 15.99 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.508e-05/0.4027, allocations: 91.97 kB / 0.6532 GB, free: 15.9 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.015e-05/0.4028, allocations: 70.95 kB / 0.6533 GB, free: 15.83 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.756e-05/0.4028, allocations: 4 kB / 0.6533 GB, free: 15.82 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 9.728e-05/0.4029, allocations: 322.8 kB / 0.6536 GB, free: 15.5 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001466/0.403, allocations: 75.81 kB / 0.6537 GB, free: 15.43 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001653/0.4032, allocations: 111 kB / 0.6538 GB, free: 15.31 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001601/0.4034, allocations: 72.92 kB / 0.6539 GB, free: 15.24 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.373e-06/0.4034, allocations: 0 / 0.6539 GB, free: 15.24 MB / 474.7 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0004545/0.4039, allocations: 250.8 kB / 0.6541 GB, free: 14.98 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.33e-05/0.4039, allocations: 7.938 kB / 0.6541 GB, free: 14.98 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.312e-06/0.4039, allocations: 8.094 kB / 0.6541 GB, free: 14.97 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001684/0.4041, allocations: 52.81 kB / 0.6542 GB, free: 14.91 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002916/0.4044, allocations: 51.97 kB / 0.6542 GB, free: 14.86 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003823/0.4048, allocations: 0.5643 MB / 0.6548 GB, free: 14.27 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001693/0.4049, allocations: 8.125 kB / 0.6548 GB, free: 14.27 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.795e-05/0.405, allocations: 24 kB / 0.6548 GB, free: 14.24 MB / 474.7 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.0001161/0.4051, allocations: 133.7 kB / 0.6549 GB, free: 14.1 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.133e-05/0.4052, allocations: 11.81 kB / 0.6549 GB, free: 14.09 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007705/0.4059, allocations: 346.1 kB / 0.6553 GB, free: 13.75 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.536e-06/0.406, allocations: 4 kB / 0.6553 GB, free: 13.74 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.629e-06/0.406, allocations: 3.938 kB / 0.6553 GB, free: 13.74 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.029e-06/0.406, allocations: 7.984 kB / 0.6553 GB, free: 13.73 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008688/0.4068, allocations: 0.6183 MB / 0.6559 GB, free: 13.05 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.354e-06/0.4069, allocations: 0 / 0.6559 GB, free: 13.05 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003189/0.4072, allocations: 64.89 kB / 0.6559 GB, free: 12.99 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.298e-05/0.4073, allocations: 24.94 kB / 0.656 GB, free: 12.96 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.748e-05/0.4073, allocations: 15.98 kB / 0.656 GB, free: 12.95 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008127/0.4081, allocations: 1.269 MB / 0.6572 GB, free: 11.54 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.603e-06/0.4081, allocations: 0 / 0.6572 GB, free: 11.54 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006366/0.4088, allocations: 430.7 kB / 0.6576 GB, free: 11.09 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.067e-05/0.4088, allocations: 88.95 kB / 0.6577 GB, free: 10.99 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.801e-05/0.4089, allocations: 4 kB / 0.6577 GB, free: 10.98 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002165/0.4091, allocations: 16.78 kB / 0.6577 GB, free: 10.97 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.985e-05/0.4091, allocations: 23.94 kB / 0.6578 GB, free: 10.95 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.729e-05/0.4092, allocations: 31.92 kB / 0.6578 GB, free: 10.91 MB / 474.7 MB Notification: Performance of sorting global known variables: time 4.445e-05/0.4092, allocations: 91.25 kB / 0.6579 GB, free: 10.82 MB / 474.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4092, allocations: 0 / 0.6579 GB, free: 10.82 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.0003567/0.4096, allocations: 84.06 kB / 0.658 GB, free: 10.74 MB / 474.7 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.0003146/0.4099, allocations: 151.6 kB / 0.6581 GB, free: 10.59 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.0004413/0.4104, allocations: 199.8 kB / 0.6583 GB, free: 10.39 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 2.705e-06/0.4104, allocations: 0 / 0.6583 GB, free: 10.39 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003097/0.4107, allocations: 218.5 kB / 0.6585 GB, free: 10.16 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004071/0.4111, allocations: 58.69 kB / 0.6586 GB, free: 10.11 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00079/0.4119, allocations: 0.6011 MB / 0.6591 GB, free: 9.473 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002487/0.4122, allocations: 0.7049 MB / 0.6598 GB, free: 8.738 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000217/0.4124, allocations: 63.39 kB / 0.6599 GB, free: 8.676 MB / 474.7 MB Notification: Performance of SimCode: time 3.7e-07/0.4124, allocations: 0 / 0.6599 GB, free: 8.676 MB / 474.7 MB Notification: Performance of Templates: time 0.005726/0.4181, allocations: 3.841 MB / 0.6636 GB, free: 4.832 MB / 474.7 MB make -j1 -f ModelicaTest_trunk_cpp_ModelicaTest.Media.TestOnly.IdealGasN2.makefile (rm -f ModelicaTest_trunk_cpp_ModelicaTest.Media.TestOnly.IdealGasN2.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.Media.TestOnly.IdealGasN2.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.Media.TestOnly.IdealGasN2.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.Media.TestOnly.IdealGasN2.sim & ./ModelicaTest_trunk_cpp_ModelicaTest.Media.TestOnly.IdealGasN2 --alarm=480 -emit_protected > ModelicaTest_trunk_cpp_ModelicaTest.Media.TestOnly.IdealGasN2.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_ModelicaTest.Media.TestOnly.IdealGasN2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Media/TestOnly/IdealGasN2/IdealGasN2.csv","../files/ModelicaTest_trunk_cpp_ModelicaTest.Media.TestOnly.IdealGasN2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches