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: "" <> buildModelFMU(ModelicaTest.Media.TestOnly.IdealGasN2,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_Media_TestOnly_IdealGasN2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Media.TestOnly.IdealGasN2,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_Media_TestOnly_IdealGasN2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001349/0.001349, allocations: 198.8 kB / 16.1 MB, free: 5.707 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.35/1.35, allocations: 226.5 MB / 243.4 MB, free: 6.523 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008446/0.000845, allocations: 90.8 kB / 295.4 MB, free: 6.707 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3549/0.3549, allocations: 44.83 MB / 392.3 MB, free: 35.72 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003046/0.0003047, allocations: 12 kB / 465.4 MB, free: 12.61 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3245/0.3249, allocations: 62.96 MB / 0.516 GB, free: 37.12 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Media.TestOnly.IdealGasN2): time 0.1382/0.4631, allocations: 135.5 MB / 0.6483 GB, free: 1.484 MB / 458.7 MB Notification: Performance of NFInst.instExpressions: time 0.001183/0.4643, allocations: 0.8963 MB / 0.6492 GB, free: 0.5859 MB / 458.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.281e-05/0.4644, allocations: 4 kB / 0.6492 GB, free: 0.582 MB / 458.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002194/0.4646, allocations: 19.89 kB / 0.6492 GB, free: 0.5625 MB / 458.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0006558/0.4653, allocations: 203 kB / 0.6494 GB, free: 372 kB / 458.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003374/0.4657, allocations: 101.8 kB / 0.6495 GB, free: 276 kB / 458.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002431/0.4659, allocations: 183.2 kB / 0.6497 GB, free: 92 kB / 458.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.313e-05/0.466, allocations: 4 kB / 0.6497 GB, free: 88 kB / 458.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001996/0.4662, allocations: 87.62 kB / 0.6498 GB, free: 0 / 458.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001269/0.4663, allocations: 55.77 kB / 0.6498 GB, free: 15.95 MB / 474.7 MB Notification: Performance of NFPackage.collectConstants: time 2.25e-05/0.4663, allocations: 4 kB / 0.6498 GB, free: 15.94 MB / 474.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005712/0.4669, allocations: 271.7 kB / 0.6501 GB, free: 15.68 MB / 474.7 MB Notification: Performance of NFScalarize.scalarize: time 6.416e-05/0.467, allocations: 23.91 kB / 0.6501 GB, free: 15.65 MB / 474.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001017/0.4671, allocations: 65.55 kB / 0.6502 GB, free: 15.58 MB / 474.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003328/0.4674, allocations: 205.3 kB / 0.6504 GB, free: 15.38 MB / 474.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.568e-06/0.4675, allocations: 0 / 0.6504 GB, free: 15.38 MB / 474.7 MB Notification: Performance of FrontEnd: time 9.92e-07/0.4675, allocations: 0 / 0.6504 GB, free: 15.38 MB / 474.7 MB Notification: Performance of Transformations before backend: time 7.283e-06/0.4675, allocations: 0 / 0.6504 GB, free: 15.38 MB / 474.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.0004486/0.4679, allocations: 383.4 kB / 0.6507 GB, free: 14.96 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.877e-05/0.468, allocations: 8.031 kB / 0.6507 GB, free: 14.95 MB / 474.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.095e-05/0.468, allocations: 42.73 kB / 0.6508 GB, free: 14.9 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00201/0.47, allocations: 192.6 kB / 0.651 GB, free: 14.71 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000233/0.4703, allocations: 207.4 kB / 0.6512 GB, free: 14.47 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.431e-05/0.4703, allocations: 12 kB / 0.6512 GB, free: 14.46 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.34e-05/0.4704, allocations: 8 kB / 0.6512 GB, free: 14.45 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004908/0.4709, allocations: 223.9 kB / 0.6514 GB, free: 14.22 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.089e-05/0.4709, allocations: 0 / 0.6514 GB, free: 14.22 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.609e-05/0.4709, allocations: 8 kB / 0.6514 GB, free: 14.21 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.843e-06/0.471, allocations: 7.922 kB / 0.6514 GB, free: 14.2 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004408/0.4714, allocations: 175.8 kB / 0.6516 GB, free: 14.03 MB / 474.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.001023/0.4724, allocations: 0.5798 MB / 0.6521 GB, free: 13.39 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000304/0.4727, allocations: 142.5 kB / 0.6523 GB, free: 13.25 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001357/0.4729, allocations: 68.83 kB / 0.6523 GB, free: 13.18 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.782e-05/0.4729, allocations: 4 kB / 0.6523 GB, free: 13.17 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.169e-05/0.473, allocations: 30.56 kB / 0.6524 GB, free: 13.13 MB / 474.7 MB Notification: Performance of pre-optimization done (n=14): time 1.754e-06/0.473, allocations: 0 / 0.6524 GB, free: 13.13 MB / 474.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.005001/0.478, allocations: 1.307 MB / 0.6536 GB, free: 11.73 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.207e-05/0.478, allocations: 55.41 kB / 0.6537 GB, free: 11.67 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.324e-05/0.4781, allocations: 109.8 kB / 0.6538 GB, free: 11.55 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 2.843e-05/0.4781, allocations: 29.7 kB / 0.6538 GB, free: 11.52 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.286e-05/0.4782, allocations: 95.97 kB / 0.6539 GB, free: 11.42 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.903e-05/0.4783, allocations: 71 kB / 0.654 GB, free: 11.35 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.715e-05/0.4783, allocations: 4 kB / 0.654 GB, free: 11.34 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0001009/0.4784, allocations: 322.8 kB / 0.6543 GB, free: 11.02 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001533/0.4786, allocations: 83.69 kB / 0.6544 GB, free: 10.94 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001644/0.4787, allocations: 107.2 kB / 0.6545 GB, free: 10.82 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003347/0.4791, allocations: 176.3 kB / 0.6547 GB, free: 10.64 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.322e-06/0.4791, allocations: 4 kB / 0.6547 GB, free: 10.63 MB / 474.7 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0004652/0.4796, allocations: 257.1 kB / 0.6549 GB, free: 10.38 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.73e-05/0.4796, allocations: 6.656 kB / 0.6549 GB, free: 10.37 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.881e-06/0.4796, allocations: 0 / 0.6549 GB, free: 10.37 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001712/0.4798, allocations: 56.92 kB / 0.655 GB, free: 10.31 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002993/0.4801, allocations: 55.91 kB / 0.655 GB, free: 10.26 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003939/0.4805, allocations: 0.5641 MB / 0.6556 GB, free: 9.668 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001717/0.4807, allocations: 11.91 kB / 0.6556 GB, free: 9.656 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.408e-05/0.4807, allocations: 23.98 kB / 0.6556 GB, free: 9.633 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.0001153/0.4808, allocations: 129.8 kB / 0.6557 GB, free: 9.496 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.612e-05/0.4809, allocations: 19.78 kB / 0.6557 GB, free: 9.477 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007787/0.4817, allocations: 351.4 kB / 0.6561 GB, free: 9.125 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.438e-06/0.4817, allocations: 4 kB / 0.6561 GB, free: 9.121 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.05e-06/0.4817, allocations: 0 / 0.6561 GB, free: 9.121 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.767e-06/0.4817, allocations: 0 / 0.6561 GB, free: 9.121 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009115/0.4826, allocations: 0.6347 MB / 0.6567 GB, free: 8.418 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.715e-06/0.4826, allocations: 0 / 0.6567 GB, free: 8.418 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003224/0.483, allocations: 55.95 kB / 0.6568 GB, free: 8.363 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.245e-05/0.4831, allocations: 24.78 kB / 0.6568 GB, free: 8.336 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.563e-05/0.4831, allocations: 12.09 kB / 0.6568 GB, free: 8.324 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008053/0.4839, allocations: 1.273 MB / 0.658 GB, free: 6.918 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.667e-06/0.4839, allocations: 7.938 kB / 0.658 GB, free: 6.91 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006364/0.4846, allocations: 425.5 kB / 0.6584 GB, free: 6.469 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.788e-05/0.4846, allocations: 93.08 kB / 0.6585 GB, free: 6.359 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.028e-05/0.4847, allocations: 7.984 kB / 0.6585 GB, free: 6.352 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002101/0.4849, allocations: 8 kB / 0.6585 GB, free: 6.344 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.89e-05/0.485, allocations: 31.91 kB / 0.6586 GB, free: 6.312 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.028e-05/0.485, allocations: 23.98 kB / 0.6586 GB, free: 6.289 MB / 474.7 MB Notification: Performance of sorting global known variables: time 4.259e-05/0.4851, allocations: 87.28 kB / 0.6587 GB, free: 6.203 MB / 474.7 MB Notification: Performance of sort global known variables: time 2.5e-07/0.4851, allocations: 0 / 0.6587 GB, free: 6.203 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.0003802/0.4855, allocations: 83.98 kB / 0.6588 GB, free: 6.121 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.001124/0.4866, allocations: 1.01 MB / 0.6598 GB, free: 5.074 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.0004814/0.4871, allocations: 203.9 kB / 0.6599 GB, free: 4.875 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 3.527e-06/0.4871, allocations: 0 / 0.6599 GB, free: 4.875 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003919/0.4875, allocations: 214.6 kB / 0.6602 GB, free: 4.652 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006482/0.4882, allocations: 60.02 kB / 0.6602 GB, free: 4.594 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001923/0.4901, allocations: 1.123 MB / 0.6613 GB, free: 3.402 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002479/0.4904, allocations: 0.701 MB / 0.662 GB, free: 2.672 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003043/0.4907, allocations: 71.39 kB / 0.6621 GB, free: 2.602 MB / 474.7 MB Notification: Performance of SimCode: time 4.31e-07/0.4907, allocations: 0 / 0.6621 GB, free: 2.602 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.125/3.616, allocations: 3.763 MB / 0.6657 GB, free: 14.84 MB / 490.7 MB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_cpp_ModelicaTest.Media.TestOnly.IdealGasN2_res.mat --tempDir=temp_ModelicaTest_trunk_cpp_ModelicaTest_Media_TestOnly_IdealGasN2_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_cpp_ModelicaTest_Media_TestOnly_IdealGasN2.fmu > ModelicaTest_trunk_cpp_ModelicaTest.Media.TestOnly.IdealGasN2.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_ModelicaTest.Media.TestOnly.IdealGasN2_res.mat","/var/lib/jenkins1/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