Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Media.Examples.ReferenceAir.MoistAir2.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) 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(Modelica.Media.Examples.ReferenceAir.MoistAir2,fileNamePrefix="Modelica_3_2_3_Modelica_Media_Examples_ReferenceAir_MoistAir2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Media.Examples.ReferenceAir.MoistAir2,fileNamePrefix="Modelica_3_2_3_Modelica_Media_Examples_ReferenceAir_MoistAir2",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.001218/0.001218, allocations: 112 kB / 17.28 MB, free: 6.199 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001395/0.001395, allocations: 193.3 kB / 18.2 MB, free: 5.277 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.174/1.174, allocations: 205.1 MB / 224.1 MB, free: 12.45 MB / 190.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.00116/0.00116, allocations: 48.14 kB / 280.2 MB, free: 3.406 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07101/0.07218, allocations: 46.63 MB / 326.9 MB, free: 4.703 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.ReferenceAir.MoistAir2): time 0.1948/0.267, allocations: 65.48 MB / 392.4 MB, free: 9.367 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.004879/0.2719, allocations: 5.456 MB / 397.8 MB, free: 9.27 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001832/0.2721, allocations: 7.656 kB / 397.8 MB, free: 9.27 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007334/0.2729, allocations: 309 kB / 398.1 MB, free: 9.27 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005938/0.2735, allocations: 491.4 kB / 398.6 MB, free: 9.254 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01257/0.286, allocations: 6.385 MB / 405 MB, free: 9.023 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001767/0.2878, allocations: 1.564 MB / 406.6 MB, free: 8.867 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002721/0.2881, allocations: 214.6 kB / 406.8 MB, free: 8.836 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006216/0.2887, allocations: 0.6265 MB / 407.4 MB, free: 8.734 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005056/0.2892, allocations: 0.5895 MB / 408 MB, free: 8.648 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 9.826e-05/0.2894, allocations: 83.19 kB / 408.1 MB, free: 8.648 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01306/0.3024, allocations: 10.07 MB / 418.1 MB, free: 5.355 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003186/0.3028, allocations: 323.4 kB / 418.4 MB, free: 5.137 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005309/0.3033, allocations: 443 kB / 418.9 MB, free: 4.883 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00792/0.3112, allocations: 6.051 MB / 424.9 MB, free: 15.41 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.467e-06/0.3113, allocations: 0 / 424.9 MB, free: 15.41 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.473e-06/0.3113, allocations: 8 kB / 424.9 MB, free: 15.4 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.047e-05/0.3113, allocations: 0 / 424.9 MB, free: 15.4 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 154 * Number of variables: 154 Notification: Performance of Generate backend data structure: time 0.002991/0.3143, allocations: 1.54 MB / 426.5 MB, free: 13.81 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.746e-05/0.3143, allocations: 19.97 kB / 426.5 MB, free: 13.79 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001259/0.3145, allocations: 102.5 kB / 426.6 MB, free: 13.68 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003854/0.3149, allocations: 83.8 kB / 426.7 MB, free: 13.6 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004981/0.3154, allocations: 443.2 kB / 427.1 MB, free: 13.13 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.338e-05/0.3154, allocations: 49.31 kB / 427.2 MB, free: 13.09 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.231e-05/0.3155, allocations: 60 kB / 427.2 MB, free: 13.03 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001574/0.3171, allocations: 0.8107 MB / 428 MB, free: 12.21 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.35e-05/0.3171, allocations: 7.906 kB / 428 MB, free: 12.2 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.749e-05/0.3172, allocations: 28 kB / 428.1 MB, free: 12.17 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.131e-05/0.3172, allocations: 16 kB / 428.1 MB, free: 12.16 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001659/0.3189, allocations: 1.02 MB / 429.1 MB, free: 11.14 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01539/0.3343, allocations: 12.78 MB / 441.9 MB, free: 12.25 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001558/0.3358, allocations: 0.7509 MB / 442.6 MB, free: 11.5 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000518/0.3364, allocations: 412.3 kB / 443 MB, free: 11.09 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01309/0.3495, allocations: 12.24 MB / 455.3 MB, free: 12.49 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.385e-05/0.3495, allocations: 51.14 kB / 455.3 MB, free: 12.43 MB / 366.1 MB Notification: Performance of pre-optimization done (n=78): time 2.605e-06/0.3495, allocations: 0 / 455.3 MB, free: 12.43 MB / 366.1 MB Notification: Performance of matching and sorting (n=88): time 0.008333/0.3579, allocations: 3.374 MB / 458.7 MB, free: 8.992 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.741e-05/0.3579, allocations: 68.41 kB / 458.8 MB, free: 8.91 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003275/0.3583, allocations: 356.5 kB / 459.1 MB, free: 8.559 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 7.296e-05/0.3583, allocations: 41.7 kB / 459.2 MB, free: 8.512 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001331/0.3585, allocations: 240.6 kB / 459.4 MB, free: 8.27 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001868/0.3587, allocations: 308.8 kB / 459.7 MB, free: 7.973 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002185/0.3589, allocations: 162.5 kB / 459.8 MB, free: 7.809 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001165/0.359, allocations: 358.8 kB / 460.2 MB, free: 7.449 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000522/0.3595, allocations: 373.8 kB / 460.6 MB, free: 7.082 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007909/0.3603, allocations: 492.2 kB / 461 MB, free: 6.57 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001498/0.3618, allocations: 0.9082 MB / 462 MB, free: 5.633 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.287e-06/0.3619, allocations: 0 / 462 MB, free: 5.633 MB / 366.1 MB Notification: Performance of matching and sorting (n=106) (initialization): time 0.002228/0.3641, allocations: 1.117 MB / 463.1 MB, free: 4.496 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.596e-05/0.3641, allocations: 11.94 kB / 463.1 MB, free: 4.484 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.492e-06/0.3641, allocations: 3.938 kB / 463.1 MB, free: 4.48 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007041/0.3648, allocations: 171.6 kB / 463.3 MB, free: 4.301 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006716/0.3655, allocations: 187.7 kB / 463.4 MB, free: 4.117 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002426/0.368, allocations: 4.116 MB / 467.6 MB, free: 15.67 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004332/0.3684, allocations: 60.06 kB / 467.6 MB, free: 15.61 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.813e-05/0.3685, allocations: 47.98 kB / 467.7 MB, free: 15.57 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * 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 (102): * Single equations (assignments): 98 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 2 systems {2, 2} * Without analytic Jacobian (size): 0 systems 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): 2 systems {(1,1), (1,1)} Notification: Performance of prepare postOptimizeDAE: time 0.0002618/0.3688, allocations: 229.6 kB / 467.9 MB, free: 15.33 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003317/0.3691, allocations: 63.34 kB / 467.9 MB, free: 15.27 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002066/0.3712, allocations: 1.281 MB / 469.2 MB, free: 13.95 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.562e-06/0.3712, allocations: 8 kB / 469.2 MB, free: 13.94 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.225e-06/0.3712, allocations: 0 / 469.2 MB, free: 13.94 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001564/0.3728, allocations: 1.324 MB / 470.6 MB, free: 12.49 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002645/0.3754, allocations: 1.963 MB / 472.5 MB, free: 10.48 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.278e-06/0.3754, allocations: 4 kB / 472.5 MB, free: 10.48 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006222/0.3761, allocations: 163.8 kB / 472.7 MB, free: 10.32 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001593/0.3777, allocations: 297.3 kB / 473 MB, free: 10.02 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.682e-05/0.3777, allocations: 27.97 kB / 473 MB, free: 9.996 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006533/0.3784, allocations: 1.293 MB / 474.3 MB, free: 8.656 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.362e-06/0.3784, allocations: 3.938 kB / 474.3 MB, free: 8.652 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002246/0.3807, allocations: 1.421 MB / 475.7 MB, free: 7.203 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001057/0.3808, allocations: 124.5 kB / 475.8 MB, free: 7.062 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.271e-05/0.3809, allocations: 24.05 kB / 475.9 MB, free: 7.039 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000537/0.3814, allocations: 51.88 kB / 475.9 MB, free: 6.988 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.24e-05/0.3815, allocations: 52.92 kB / 476 MB, free: 6.938 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.586e-05/0.3816, allocations: 43.97 kB / 476 MB, free: 6.895 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0002673/0.3819, allocations: 283 kB / 476.3 MB, free: 6.621 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3819, allocations: 0 / 476.3 MB, free: 6.621 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.003151/0.385, allocations: 1.394 MB / 477.7 MB, free: 5.227 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 6 (volume.medium.p,volume.medium.Xi[1],volume.medium.T,volume1.medium.p,volume1.medium.Xi[1],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 (84): * Single equations (assignments): 82 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 2 systems {2, 2} * Without analytic Jacobian (size): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.007599/0.3926, allocations: 3.603 MB / 481.3 MB, free: 1.719 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002317/0.395, allocations: 1.265 MB / 482.5 MB, free: 428 kB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.297e-06/0.395, allocations: 0 / 482.5 MB, free: 428 kB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008138/0.3958, allocations: 495.9 kB / 483 MB, free: 15.93 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001667/0.3975, allocations: 386 kB / 483.4 MB, free: 15.55 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01051/0.408, allocations: 7.419 MB / 490.8 MB, free: 7.965 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004403/0.4085, allocations: 0.9089 MB / 491.7 MB, free: 7.027 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0007095/0.4092, allocations: 213.1 kB / 491.9 MB, free: 6.816 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003239/0.4095, allocations: 227.3 kB / 492.2 MB, free: 6.594 MB / 398.1 MB Notification: Performance of SimCode: time 2.61e-07/0.4095, allocations: 0 / 492.2 MB, free: 6.594 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.943/2.352, allocations: 57.88 MB / 0.5372 GB, free: 169.7 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001702/2.352, allocations: 266.6 kB / 0.5374 GB, free: 169.4 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.795/7.147, allocations: 3.844 kB / 0.5374 GB, free: 169.4 MB / 446.1 MB (rm -f Modelica_3.2.3_Modelica.Media.Examples.ReferenceAir.MoistAir2.pipe ; mkfifo Modelica_3.2.3_Modelica.Media.Examples.ReferenceAir.MoistAir2.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Media.Examples.ReferenceAir.MoistAir2.pipe >> ../files/Modelica_3.2.3_Modelica.Media.Examples.ReferenceAir.MoistAir2.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Media.Examples.ReferenceAir.MoistAir2_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Media_Examples_ReferenceAir_MoistAir2_fmu --startTime=0 --stopTime=1.01 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Media_Examples_ReferenceAir_MoistAir2.fmu > Modelica_3.2.3_Modelica.Media.Examples.ReferenceAir.MoistAir2.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Media.Examples.ReferenceAir.MoistAir2_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Media/Examples/ReferenceAir/MoistAir2/MoistAir2.csv","../files/Modelica_3.2.3_Modelica.Media.Examples.ReferenceAir.MoistAir2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches