Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Media.Examples.ReferenceAir.DryAir2.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.ReferenceAir.DryAir2,fileNamePrefix="Modelica_trunk_cpp_Modelica_Media_Examples_ReferenceAir_DryAir2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Media.Examples.ReferenceAir.DryAir2,fileNamePrefix="Modelica_trunk_cpp_Modelica_Media_Examples_ReferenceAir_DryAir2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009301/0.0009301, allocations: 195.3 kB / 17.38 MB, free: 4.312 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.198/1.198, allocations: 226.5 MB / 244.7 MB, free: 8.215 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007927/0.0007927, allocations: 98.77 kB / 296.7 MB, free: 6.895 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002049/0.000205, allocations: 8 kB / 356.8 MB, free: 10.81 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1733/0.1735, allocations: 51.29 MB / 408.1 MB, free: 27.7 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.ReferenceAir.DryAir2): time 0.02231/0.1958, allocations: 34.72 MB / 442.8 MB, free: 8.895 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.004495/0.2004, allocations: 4.283 MB / 447.1 MB, free: 4.602 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003979/0.2008, allocations: 4 kB / 447.1 MB, free: 4.598 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0007765/0.2016, allocations: 234.7 kB / 447.4 MB, free: 4.367 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0009219/0.2025, allocations: 449.7 kB / 447.8 MB, free: 3.926 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003648/0.2062, allocations: 1.293 MB / 449.1 MB, free: 2.637 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.001659/0.2078, allocations: 1.623 MB / 450.7 MB, free: 1.008 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002543/0.2081, allocations: 122.7 kB / 450.8 MB, free: 0.8867 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006737/0.2088, allocations: 406.5 kB / 451.2 MB, free: 500 kB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005772/0.2094, allocations: 398.5 kB / 451.6 MB, free: 100 kB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 7.361e-05/0.2095, allocations: 20 kB / 451.6 MB, free: 80 kB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001431/0.2109, allocations: 0.6946 MB / 452.3 MB, free: 15.38 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001428/0.211, allocations: 107.6 kB / 452.4 MB, free: 15.28 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003358/0.2114, allocations: 272.7 kB / 452.7 MB, free: 15 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0008677/0.2123, allocations: 0.7611 MB / 453.5 MB, free: 14.24 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.429e-06/0.2123, allocations: 0 / 453.5 MB, free: 14.24 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.202e-06/0.2123, allocations: 0 / 453.5 MB, free: 14.24 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.653e-05/0.2123, allocations: 0 / 453.5 MB, free: 14.24 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 96 * Number of variables: 96 Notification: Performance of Generate backend data structure: time 0.001001/0.2133, allocations: 0.6824 MB / 454.1 MB, free: 13.51 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.655e-05/0.2134, allocations: 8.031 kB / 454.2 MB, free: 13.5 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.915e-05/0.2134, allocations: 78.72 kB / 454.2 MB, free: 13.42 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005173/0.214, allocations: 84.34 kB / 454.3 MB, free: 13.34 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004015/0.2144, allocations: 335.4 kB / 454.6 MB, free: 12.97 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.467e-05/0.2144, allocations: 29.38 kB / 454.7 MB, free: 12.94 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.373e-05/0.2145, allocations: 40.38 kB / 454.7 MB, free: 12.9 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006617/0.2152, allocations: 467.5 kB / 455.2 MB, free: 12.4 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.96e-05/0.2152, allocations: 4 kB / 455.2 MB, free: 12.4 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.245e-05/0.2152, allocations: 16 kB / 455.2 MB, free: 12.38 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.063e-05/0.2152, allocations: 12 kB / 455.2 MB, free: 12.37 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004599/0.2157, allocations: 299.7 kB / 455.5 MB, free: 12.08 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01282/0.2285, allocations: 6.734 MB / 462.2 MB, free: 4.754 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004468/0.229, allocations: 290.2 kB / 462.5 MB, free: 4.461 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002021/0.2292, allocations: 147 kB / 462.6 MB, free: 4.316 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01002/0.2393, allocations: 3.877 MB / 466.5 MB, free: 144 kB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.954e-05/0.2393, allocations: 42.5 kB / 466.6 MB, free: 92 kB / 330.7 MB Notification: Performance of pre-optimization done (n=35): time 3.226e-06/0.2393, allocations: 0 / 466.6 MB, free: 92 kB / 330.7 MB Notification: Performance of matching and sorting (n=45): time 0.01094/0.2503, allocations: 2.479 MB / 469 MB, free: 13.54 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.164e-05/0.2504, allocations: 63.34 kB / 469.1 MB, free: 13.46 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003016/0.2507, allocations: 299.3 kB / 469.4 MB, free: 13.16 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 3.568e-05/0.2507, allocations: 37.7 kB / 469.4 MB, free: 13.12 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001314/0.2508, allocations: 220 kB / 469.7 MB, free: 12.89 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001099/0.251, allocations: 161.7 kB / 469.8 MB, free: 12.73 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.27e-05/0.251, allocations: 12 kB / 469.8 MB, free: 12.72 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001198/0.2511, allocations: 346.8 kB / 470.2 MB, free: 12.38 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002585/0.2514, allocations: 149.1 kB / 470.3 MB, free: 12.23 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003133/0.2517, allocations: 275.7 kB / 470.6 MB, free: 11.91 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006/0.2523, allocations: 472.2 kB / 471 MB, free: 11.4 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.295e-06/0.2523, allocations: 0 / 471 MB, free: 11.4 MB / 346.7 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.001003/0.2533, allocations: 0.5954 MB / 471.6 MB, free: 10.79 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.501e-05/0.2534, allocations: 4 kB / 471.6 MB, free: 10.79 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.795e-06/0.2534, allocations: 4.469 kB / 471.6 MB, free: 10.78 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006151/0.2595, allocations: 0.7713 MB / 472.4 MB, free: 10 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003622/0.2599, allocations: 111.8 kB / 472.5 MB, free: 9.891 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001782/0.2617, allocations: 2.467 MB / 475 MB, free: 7.238 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003007/0.262, allocations: 31.89 kB / 475 MB, free: 7.207 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.982e-05/0.2621, allocations: 20.06 kB / 475 MB, free: 7.188 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * 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 (61): * Single equations (assignments): 58 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {2 1,2 1,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.0001886/0.2623, allocations: 181.7 kB / 475.2 MB, free: 7 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.547e-05/0.2623, allocations: 47.41 kB / 475.3 MB, free: 6.953 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001107/0.2635, allocations: 0.8437 MB / 476.1 MB, free: 6.094 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.113e-05/0.2635, allocations: 11.94 kB / 476.1 MB, free: 6.082 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.225e-06/0.2635, allocations: 7.938 kB / 476.1 MB, free: 6.074 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0009323/0.2644, allocations: 0.9573 MB / 477.1 MB, free: 5.043 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001832/0.2663, allocations: 1.489 MB / 478.6 MB, free: 3.488 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.902e-06/0.2663, allocations: 0 / 478.6 MB, free: 3.488 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002849/0.2666, allocations: 75.89 kB / 478.6 MB, free: 3.414 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003234/0.2698, allocations: 0.6412 MB / 479.3 MB, free: 2.766 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.408e-05/0.2699, allocations: 12 kB / 479.3 MB, free: 2.754 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008645/0.2707, allocations: 1.284 MB / 480.6 MB, free: 1.418 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.703e-06/0.2708, allocations: 0 / 480.6 MB, free: 1.418 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001435/0.2722, allocations: 1.219 MB / 481.8 MB, free: 172 kB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001142/0.2723, allocations: 120.5 kB / 481.9 MB, free: 32 kB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.351e-05/0.2724, allocations: 16.06 kB / 481.9 MB, free: 16 kB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002826/0.2727, allocations: 27.88 kB / 482 MB, free: 15.98 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.95e-05/0.2727, allocations: 35.84 kB / 482 MB, free: 15.95 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.178e-05/0.2728, allocations: 16 kB / 482 MB, free: 15.94 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0002004/0.273, allocations: 213.9 kB / 482.2 MB, free: 15.73 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.21e-07/0.273, allocations: 0 / 482.2 MB, free: 15.73 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.000669/0.2737, allocations: 227.9 kB / 482.4 MB, free: 15.51 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 4 (volume.medium.p,volume.medium.T,volume1.medium.p,volume1.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 (43): * Single equations (assignments): 39 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * 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 2,1 2} Notification: Performance of Backend phase and start with SimCode phase: time 0.002206/0.2759, allocations: 1.934 MB / 484.4 MB, free: 13.54 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001088/0.277, allocations: 0.6832 MB / 485.1 MB, free: 12.84 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.625e-06/0.277, allocations: 0 / 485.1 MB, free: 12.84 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008261/0.2778, allocations: 435.9 kB / 485.5 MB, free: 12.42 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0012/0.279, allocations: 237.9 kB / 485.7 MB, free: 12.2 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004031/0.2831, allocations: 3.026 MB / 488.7 MB, free: 9.055 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003809/0.2835, allocations: 0.8366 MB / 489.6 MB, free: 8.188 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002091/0.2837, allocations: 163.3 kB / 489.7 MB, free: 8.031 MB / 362.7 MB Notification: Performance of SimCode: time 2.5e-07/0.2837, allocations: 4 kB / 489.7 MB, free: 8.027 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.035/4.319, allocations: 13.71 MB / 0.4917 GB, free: 10.3 MB / 378.7 MB (rm -f Modelica_trunk_cpp_Modelica.Media.Examples.ReferenceAir.DryAir2.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Media.Examples.ReferenceAir.DryAir2.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Media.Examples.ReferenceAir.DryAir2.pipe >> ../files/Modelica_trunk_cpp_Modelica.Media.Examples.ReferenceAir.DryAir2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_cpp_Modelica.Media.Examples.ReferenceAir.DryAir2_res.mat --tempDir=temp_Modelica_trunk_cpp_Modelica_Media_Examples_ReferenceAir_DryAir2_fmu --startTime=0 --stopTime=1.01 --timeout=50 --tolerance=1e-06 Modelica_trunk_cpp_Modelica_Media_Examples_ReferenceAir_DryAir2.fmu > Modelica_trunk_cpp_Modelica.Media.Examples.ReferenceAir.DryAir2.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Media.Examples.ReferenceAir.DryAir2_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Media/Examples/ReferenceAir/DryAir2/DryAir2.csv","../files/Modelica_trunk_cpp_Modelica.Media.Examples.ReferenceAir.DryAir2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches