Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Media.TestOnly.IdealGasN2.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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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.TestOnly.IdealGasN2,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Media_TestOnly_IdealGasN2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Media.TestOnly.IdealGasN2,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Media_TestOnly_IdealGasN2",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.0008282/0.0008282, allocations: 97.64 kB / 16.02 MB, free: 84 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001047/0.001047, allocations: 178.6 kB / 16.92 MB, free: 6.672 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.59/1.59, allocations: 205.4 MB / 223.1 MB, free: 5.566 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3885/0.3885, allocations: 43.57 MB / 315 MB, free: 9.039 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.000556/0.000556, allocations: 19.98 kB / 384.7 MB, free: 7.781 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1321/0.1326, allocations: 58.86 MB / 443.5 MB, free: 12.82 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Media.TestOnly.IdealGasN2): time 0.4309/0.5636, allocations: 146.5 MB / 0.5762 GB, free: 8.789 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.001816/0.5655, allocations: 0.9947 MB / 0.5771 GB, free: 7.805 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.169e-05/0.5655, allocations: 4 kB / 0.5771 GB, free: 7.801 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002553/0.5658, allocations: 23.83 kB / 0.5772 GB, free: 7.777 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006685/0.5665, allocations: 210.2 kB / 0.5774 GB, free: 7.578 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003352/0.5668, allocations: 104.2 kB / 0.5775 GB, free: 7.48 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002581/0.5671, allocations: 203.3 kB / 0.5777 GB, free: 7.281 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.316e-05/0.5672, allocations: 6.656 kB / 0.5777 GB, free: 7.277 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002161/0.5674, allocations: 91.62 kB / 0.5777 GB, free: 7.188 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001011/0.5675, allocations: 55.77 kB / 0.5778 GB, free: 7.133 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 1.925e-05/0.5675, allocations: 8 kB / 0.5778 GB, free: 7.125 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004773/0.568, allocations: 267.6 kB / 0.5781 GB, free: 6.863 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 6.75e-05/0.5681, allocations: 23.91 kB / 0.5781 GB, free: 6.84 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 7.121e-05/0.5682, allocations: 61.56 kB / 0.5781 GB, free: 6.773 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004008/0.5686, allocations: 287.3 kB / 0.5784 GB, free: 6.492 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.747e-06/0.5686, allocations: 3.938 kB / 0.5784 GB, free: 6.488 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.443e-06/0.5686, allocations: 0 / 0.5784 GB, free: 6.488 MB / 446.1 MB Notification: Performance of Transformations before backend: time 4.609e-06/0.5686, allocations: 0 / 0.5784 GB, free: 6.488 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: 19 * Number of variables: 19 Notification: Performance of Generate backend data structure: time 0.0004977/0.5691, allocations: 391.1 kB / 0.5788 GB, free: 6.062 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.774e-05/0.5692, allocations: 8.031 kB / 0.5788 GB, free: 6.055 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.908e-05/0.5692, allocations: 42.73 kB / 0.5788 GB, free: 6.004 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002079/0.5713, allocations: 187.1 kB / 0.579 GB, free: 5.824 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002403/0.5715, allocations: 200.3 kB / 0.5792 GB, free: 5.59 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.318e-05/0.5716, allocations: 4.5 kB / 0.5792 GB, free: 5.586 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.821e-05/0.5716, allocations: 15.98 kB / 0.5792 GB, free: 5.57 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004961/0.5721, allocations: 224.6 kB / 0.5794 GB, free: 5.336 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.139e-05/0.5721, allocations: 0 / 0.5794 GB, free: 5.336 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.53e-05/0.5722, allocations: 7.984 kB / 0.5795 GB, free: 5.328 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.891e-06/0.5722, allocations: 4 kB / 0.5795 GB, free: 5.324 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004381/0.5726, allocations: 169.9 kB / 0.5796 GB, free: 5.16 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.001048/0.5737, allocations: 0.5824 MB / 0.5802 GB, free: 4.523 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003352/0.5741, allocations: 139.3 kB / 0.5803 GB, free: 4.379 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001451/0.5742, allocations: 72.83 kB / 0.5804 GB, free: 4.305 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.289e-05/0.5742, allocations: 0 / 0.5804 GB, free: 4.305 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.258e-05/0.5743, allocations: 42.55 kB / 0.5804 GB, free: 4.254 MB / 446.1 MB Notification: Performance of pre-optimization done (n=14): time 8.92e-07/0.5743, allocations: 0 / 0.5804 GB, free: 4.254 MB / 446.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.005293/0.5796, allocations: 1.309 MB / 0.5817 GB, free: 2.859 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.813e-05/0.5796, allocations: 51.41 kB / 0.5818 GB, free: 2.797 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001021/0.5798, allocations: 116.4 kB / 0.5819 GB, free: 2.676 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 3.929e-05/0.5798, allocations: 29.7 kB / 0.5819 GB, free: 2.641 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.012e-05/0.5799, allocations: 92.05 kB / 0.582 GB, free: 2.547 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.718e-05/0.58, allocations: 70.94 kB / 0.5821 GB, free: 2.477 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.473e-05/0.58, allocations: 21.72 kB / 0.5821 GB, free: 2.449 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001477/0.5802, allocations: 326.8 kB / 0.5824 GB, free: 2.121 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001582/0.5803, allocations: 67.95 kB / 0.5825 GB, free: 2.055 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000178/0.5805, allocations: 105.5 kB / 0.5826 GB, free: 1.941 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003241/0.5808, allocations: 179.3 kB / 0.5827 GB, free: 1.754 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.016e-06/0.5809, allocations: 4 kB / 0.5827 GB, free: 1.75 MB / 446.1 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0004752/0.5813, allocations: 262.1 kB / 0.583 GB, free: 1.484 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.489e-05/0.5814, allocations: 4 kB / 0.583 GB, free: 1.48 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.654e-06/0.5814, allocations: 4 kB / 0.583 GB, free: 1.477 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001873/0.5816, allocations: 48.83 kB / 0.583 GB, free: 1.426 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003176/0.5819, allocations: 60 kB / 0.5831 GB, free: 1.367 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003767/0.5823, allocations: 0.5601 MB / 0.5836 GB, free: 0.7812 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001739/0.5825, allocations: 8.031 kB / 0.5836 GB, free: 0.7734 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.104e-05/0.5825, allocations: 23.98 kB / 0.5837 GB, free: 0.75 MB / 446.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.0001217/0.5826, allocations: 129.9 kB / 0.5838 GB, free: 0.6133 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.409e-05/0.5827, allocations: 7.906 kB / 0.5838 GB, free: 0.6055 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007984/0.5835, allocations: 343.7 kB / 0.5841 GB, free: 268 kB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.214e-06/0.5835, allocations: 11.06 kB / 0.5841 GB, free: 260 kB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.262e-06/0.5835, allocations: 3.938 kB / 0.5841 GB, free: 256 kB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.458e-06/0.5835, allocations: 3.938 kB / 0.5841 GB, free: 252 kB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009464/0.5845, allocations: 0.6281 MB / 0.5848 GB, free: 15.55 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.047e-06/0.5845, allocations: 4 kB / 0.5848 GB, free: 15.55 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003324/0.5848, allocations: 59.89 kB / 0.5848 GB, free: 15.49 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.269e-05/0.5849, allocations: 20.84 kB / 0.5848 GB, free: 15.47 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.89e-05/0.585, allocations: 12 kB / 0.5848 GB, free: 15.46 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008159/0.5858, allocations: 1.269 MB / 0.5861 GB, free: 14.06 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.748e-06/0.5858, allocations: 8.719 kB / 0.5861 GB, free: 14.05 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006503/0.5865, allocations: 426.8 kB / 0.5865 GB, free: 13.61 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.41e-05/0.5865, allocations: 85.05 kB / 0.5866 GB, free: 13.5 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.323e-05/0.5866, allocations: 11.92 kB / 0.5866 GB, free: 13.49 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002163/0.5868, allocations: 19.91 kB / 0.5866 GB, free: 13.47 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.334e-05/0.5868, allocations: 23.97 kB / 0.5866 GB, free: 13.45 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.887e-05/0.5869, allocations: 23.98 kB / 0.5867 GB, free: 13.43 MB / 462.1 MB Notification: Performance of sorting global known variables: time 4.675e-05/0.5869, allocations: 89.23 kB / 0.5867 GB, free: 13.34 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.5869, allocations: 2.25 kB / 0.5867 GB, free: 13.34 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.0004078/0.5874, allocations: 80 kB / 0.5868 GB, free: 13.26 MB / 462.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.001149/0.5885, allocations: 1.018 MB / 0.5878 GB, free: 12.21 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.0004806/0.589, allocations: 203.2 kB / 0.588 GB, free: 12.02 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 3.116e-06/0.589, allocations: 4.188 kB / 0.588 GB, free: 12.01 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003309/0.5894, allocations: 227 kB / 0.5882 GB, free: 11.78 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004746/0.5898, allocations: 50.86 kB / 0.5883 GB, free: 11.73 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002551/0.5924, allocations: 2.167 MB / 0.5904 GB, free: 9.453 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002746/0.5927, allocations: 0.7088 MB / 0.5911 GB, free: 8.719 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.000431/0.5931, allocations: 70.2 kB / 0.5912 GB, free: 8.652 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002335/0.5934, allocations: 71.34 kB / 0.5912 GB, free: 8.582 MB / 462.1 MB Notification: Performance of SimCode: time 1.203e-06/0.5934, allocations: 0 / 0.5912 GB, free: 8.582 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02327/0.6167, allocations: 6.907 MB / 0.598 GB, free: 1.746 MB / 462.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001823/0.6169, allocations: 226 kB / 0.5982 GB, free: 1.488 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.91/2.527, allocations: 0 / 0.5982 GB, free: 1.488 MB / 462.1 MB (rm -f ModelicaTest_3.2.3_ModelicaTest.Media.TestOnly.IdealGasN2.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Media.TestOnly.IdealGasN2.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Media.TestOnly.IdealGasN2.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Media.TestOnly.IdealGasN2.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.Media.TestOnly.IdealGasN2_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_Media_TestOnly_IdealGasN2_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_Media_TestOnly_IdealGasN2.fmu > ModelicaTest_3.2.3_ModelicaTest.Media.TestOnly.IdealGasN2.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Media.TestOnly.IdealGasN2_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Media/TestOnly/IdealGasN2/IdealGasN2.csv","../files/ModelicaTest_3.2.3_ModelicaTest.Media.TestOnly.IdealGasN2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches