Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Media.Examples.R134a.R134a2.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) 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(Modelica.Media.Examples.R134a.R134a2,fileNamePrefix="Modelica_trunk_cpp_Modelica_Media_Examples_R134a_R134a2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Media.Examples.R134a.R134a2,fileNamePrefix="Modelica_trunk_cpp_Modelica_Media_Examples_R134a_R134a2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001334/0.001334, allocations: 191.2 kB / 17.37 MB, free: 4.434 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.175/1.175, allocations: 226.5 MB / 244.7 MB, free: 6.48 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007219/0.0007219, allocations: 89.75 kB / 296.7 MB, free: 6.68 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002259/0.0002259, allocations: 11.94 kB / 356.8 MB, free: 10.59 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.179/0.1793, allocations: 51.28 MB / 408.1 MB, free: 27.68 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.R134a.R134a2): time 0.02238/0.2017, allocations: 34.93 MB / 443.1 MB, free: 8.672 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.02499/0.2267, allocations: 28.15 MB / 471.2 MB, free: 12.44 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003585/0.2271, allocations: 4 kB / 471.2 MB, free: 12.44 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000771/0.2279, allocations: 318.2 kB / 471.5 MB, free: 12.12 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0008214/0.2287, allocations: 493.3 kB / 472 MB, free: 11.64 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.008736/0.2375, allocations: 3.844 MB / 475.8 MB, free: 7.789 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.001449/0.2389, allocations: 1.702 MB / 477.5 MB, free: 6.082 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002057/0.2391, allocations: 130.5 kB / 477.7 MB, free: 5.953 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005261/0.2397, allocations: 470.2 kB / 478.1 MB, free: 5.492 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000413/0.2401, allocations: 426.3 kB / 478.6 MB, free: 5.074 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 5.269e-05/0.2402, allocations: 24 kB / 478.6 MB, free: 5.051 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.2073/0.4475, allocations: 51.76 MB / 0.5179 GB, free: 35.69 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002202/0.4477, allocations: 121.3 kB / 0.518 GB, free: 35.69 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003497/0.4481, allocations: 299.9 kB / 0.5183 GB, free: 35.66 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.03041/0.4785, allocations: 13.87 MB / 0.5318 GB, free: 29.24 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.931e-06/0.4786, allocations: 1 kB / 0.5318 GB, free: 29.24 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.314e-06/0.4786, allocations: 0 / 0.5318 GB, free: 29.24 MB / 378.7 MB Notification: Performance of Transformations before backend: time 8.346e-06/0.4786, allocations: 2.844 kB / 0.5318 GB, free: 29.24 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 116 * Number of variables: 116 Notification: Performance of Generate backend data structure: time 0.006369/0.485, allocations: 1.317 MB / 0.5331 GB, free: 28.01 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.573e-05/0.485, allocations: 13.03 kB / 0.5331 GB, free: 28 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.507e-05/0.4851, allocations: 84.66 kB / 0.5332 GB, free: 27.93 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005356/0.4856, allocations: 93.23 kB / 0.5333 GB, free: 27.84 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003247/0.486, allocations: 382.6 kB / 0.5337 GB, free: 27.51 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.135e-05/0.486, allocations: 31.12 kB / 0.5337 GB, free: 27.49 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.102e-05/0.486, allocations: 49.38 kB / 0.5338 GB, free: 27.46 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008815/0.4869, allocations: 0.6222 MB / 0.5344 GB, free: 26.98 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.783e-05/0.487, allocations: 0.7188 kB / 0.5344 GB, free: 26.98 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.213e-05/0.487, allocations: 24.88 kB / 0.5344 GB, free: 26.98 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.488e-06/0.487, allocations: 13 kB / 0.5344 GB, free: 26.96 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007469/0.4878, allocations: 0.519 MB / 0.5349 GB, free: 26.62 MB / 378.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.002814/0.4906, allocations: 3.817 MB / 0.5386 GB, free: 23.03 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006624/0.4913, allocations: 412.7 kB / 0.539 GB, free: 22.76 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002314/0.4915, allocations: 205.4 kB / 0.5392 GB, free: 22.63 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002039/0.4936, allocations: 3.552 MB / 0.5427 GB, free: 18.5 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.486e-05/0.4936, allocations: 34.75 kB / 0.5427 GB, free: 18.46 MB / 378.7 MB Notification: Performance of pre-optimization done (n=46): time 1.433e-06/0.4936, allocations: 0 / 0.5427 GB, free: 18.46 MB / 378.7 MB Notification: Performance of matching and sorting (n=54): time 0.007401/0.501, allocations: 2.05 MB / 0.5447 GB, free: 16.84 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.675e-05/0.501, allocations: 60.84 kB / 0.5448 GB, free: 16.77 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002085/0.5012, allocations: 299.3 kB / 0.5451 GB, free: 16.53 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.85e-05/0.5013, allocations: 36.58 kB / 0.5451 GB, free: 16.5 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.63e-05/0.5014, allocations: 239.9 kB / 0.5453 GB, free: 16.31 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.529e-05/0.5014, allocations: 191 kB / 0.5455 GB, free: 16.15 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.451e-05/0.5015, allocations: 10.31 kB / 0.5455 GB, free: 16.15 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 4.963e-05/0.5015, allocations: 348.1 kB / 0.5459 GB, free: 15.82 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002304/0.5018, allocations: 177.7 kB / 0.546 GB, free: 15.71 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002667/0.502, allocations: 336 kB / 0.5464 GB, free: 15.41 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005402/0.5026, allocations: 0.5435 MB / 0.5469 GB, free: 15.03 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.964e-06/0.5026, allocations: 0 / 0.5469 GB, free: 15.03 MB / 378.7 MB Notification: Performance of matching and sorting (n=76) (initialization): time 0.000927/0.5035, allocations: 0.6661 MB / 0.5475 GB, free: 14.57 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.344e-05/0.5036, allocations: 11 kB / 0.5475 GB, free: 14.56 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.174e-06/0.5036, allocations: 7.984 kB / 0.5475 GB, free: 14.55 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.007915/0.5115, allocations: 451.2 kB / 0.548 GB, free: 14.17 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004407/0.5119, allocations: 145.2 kB / 0.5481 GB, free: 14.04 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001112/0.5131, allocations: 2.992 MB / 0.551 GB, free: 10.98 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002791/0.5134, allocations: 56.41 kB / 0.5511 GB, free: 10.94 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.612e-05/0.5134, allocations: 30.5 kB / 0.5511 GB, free: 10.91 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 20 * Number of states: 0 () * Number of discrete variables: 4 (volume1.medium.phase,ambient.medium.phase,fixedMassFlowRate.medium.phase,volume.medium.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (73): * Single equations (assignments): 69 * 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: 3 * 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: 0 * Non-linear torn systems: 3 {1 1,1 1,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.0001567/0.5136, allocations: 187.4 kB / 0.5513 GB, free: 10.77 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.963e-05/0.5136, allocations: 39.53 kB / 0.5513 GB, free: 10.73 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001111/0.5147, allocations: 1.057 MB / 0.5524 GB, free: 10.02 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.015e-05/0.5148, allocations: 13.73 kB / 0.5524 GB, free: 10.01 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.613e-06/0.5148, allocations: 0 / 0.5524 GB, free: 10.01 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.00079/0.5156, allocations: 1.093 MB / 0.5535 GB, free: 9.152 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001489/0.5171, allocations: 1.727 MB / 0.5551 GB, free: 7.945 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.657e-06/0.5171, allocations: 0 / 0.5551 GB, free: 7.945 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003187/0.5174, allocations: 104.4 kB / 0.5552 GB, free: 7.852 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00267/0.5201, allocations: 359.3 kB / 0.5556 GB, free: 7.547 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.904e-05/0.5201, allocations: 20.61 kB / 0.5556 GB, free: 7.535 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003716/0.5205, allocations: 1.142 MB / 0.5567 GB, free: 6.406 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.92e-07/0.5205, allocations: 4.062 kB / 0.5567 GB, free: 6.402 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001028/0.5216, allocations: 1.118 MB / 0.5578 GB, free: 5.645 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.864e-05/0.5216, allocations: 145.3 kB / 0.5579 GB, free: 5.492 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.216e-05/0.5217, allocations: 23.36 kB / 0.558 GB, free: 5.477 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002599/0.522, allocations: 29.67 kB / 0.558 GB, free: 5.457 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.145e-05/0.522, allocations: 42.75 kB / 0.558 GB, free: 5.422 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.052e-05/0.5221, allocations: 19.48 kB / 0.5581 GB, free: 5.406 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001725/0.5222, allocations: 247.8 kB / 0.5583 GB, free: 5.219 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.5222, allocations: 0 / 0.5583 GB, free: 5.219 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.004301/0.5265, allocations: 0.9648 MB / 0.5592 GB, free: 4.324 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (volume.medium.p,volume.medium.h,volume1.medium.p,volume1.medium.h) * Number of discrete variables: 6 ($cse1.phase,$cse2,$cse5.phase,$cse6,$cse7.phase,$cse8) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (58): * Single equations (assignments): 53 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 3 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 1,1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.03739/0.5639, allocations: 9.443 MB / 0.5685 GB, free: 11.44 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.001298/0.5653, allocations: 0.7015 MB / 0.5691 GB, free: 10.93 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 2.976e-06/0.5653, allocations: 0 / 0.5691 GB, free: 10.93 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005183/0.5658, allocations: 361.2 kB / 0.5695 GB, free: 10.71 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001314/0.5671, allocations: 250.9 kB / 0.5697 GB, free: 10.52 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006805/0.574, allocations: 3.685 MB / 0.5733 GB, free: 7.344 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003699/0.5743, allocations: 0.865 MB / 0.5742 GB, free: 6.449 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002382/0.5746, allocations: 207.2 kB / 0.5744 GB, free: 6.383 MB / 394.7 MB Notification: Performance of SimCode: time 2.9e-07/0.5746, allocations: 4 kB / 0.5744 GB, free: 6.379 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.806/6.38, allocations: 39.52 MB / 0.613 GB, free: 15.45 MB / 442.7 MB (rm -f Modelica_trunk_cpp_Modelica.Media.Examples.R134a.R134a2.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Media.Examples.R134a.R134a2.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Media.Examples.R134a.R134a2.pipe >> ../files/Modelica_trunk_cpp_Modelica.Media.Examples.R134a.R134a2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_cpp_Modelica.Media.Examples.R134a.R134a2_res.mat --tempDir=temp_Modelica_trunk_cpp_Modelica_Media_Examples_R134a_R134a2_fmu --startTime=0 --stopTime=1.01 --timeout=50 --tolerance=1e-06 Modelica_trunk_cpp_Modelica_Media_Examples_R134a_R134a2.fmu > Modelica_trunk_cpp_Modelica.Media.Examples.R134a.R134a2.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Media.Examples.R134a.R134a2_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Media/Examples/R134a/R134a2/R134a2.csv","../files/Modelica_trunk_cpp_Modelica.Media.Examples.R134a.R134a2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches