Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Media.Examples.ReferenceAir.DryAir1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) 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) 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Media.Examples.ReferenceAir.DryAir1,fileNamePrefix="Modelica_trunk_Modelica_Media_Examples_ReferenceAir_DryAir1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Media.Examples.ReferenceAir.DryAir1,fileNamePrefix="Modelica_trunk_Modelica_Media_Examples_ReferenceAir_DryAir1",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001079/0.001079, allocations: 103.8 kB / 17.63 MB, free: 5.48 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001175/0.001175, allocations: 210.4 kB / 18.58 MB, free: 4.535 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.336/1.336, allocations: 227.4 MB / 246.8 MB, free: 10.58 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001832/0.001832, allocations: 63.45 kB / 307 MB, free: 0.5352 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.094/0.09586, allocations: 50.53 MB / 357.6 MB, free: 14 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.ReferenceAir.DryAir1): time 0.1659/0.2618, allocations: 27.1 MB / 384.7 MB, free: 6.551 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.004022/0.2659, allocations: 4.158 MB / 388.8 MB, free: 3.664 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001698/0.2661, allocations: 7.562 kB / 388.8 MB, free: 3.66 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005742/0.2666, allocations: 208.1 kB / 389 MB, free: 3.539 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005662/0.2672, allocations: 334.9 kB / 389.4 MB, free: 3.336 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003765/0.271, allocations: 1.474 MB / 390.8 MB, free: 2.582 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008624/0.2719, allocations: 0.8851 MB / 391.7 MB, free: 2.172 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001921/0.2721, allocations: 106.6 kB / 391.8 MB, free: 2.125 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005469/0.2776, allocations: 4.042 MB / 395.9 MB, free: 1.051 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003118/0.2779, allocations: 280.5 kB / 396.2 MB, free: 0.9336 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 5.426e-05/0.278, allocations: 31.34 kB / 396.2 MB, free: 0.9336 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001326/0.2793, allocations: 0.7216 MB / 396.9 MB, free: 0.6016 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 9.673e-05/0.2794, allocations: 93.8 kB / 397 MB, free: 0.5312 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000181/0.2796, allocations: 197.6 kB / 397.2 MB, free: 428 kB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000974/0.2806, allocations: 0.8447 MB / 398 MB, free: 15.86 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.438e-06/0.2806, allocations: 1.094 kB / 398 MB, free: 15.86 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.313e-06/0.2806, allocations: 0 / 398 MB, free: 15.86 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.214e-06/0.2806, allocations: 0 / 398 MB, free: 15.86 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 66 * Number of variables: 66 Notification: Performance of Generate backend data structure: time 0.000868/0.2815, allocations: 0.6488 MB / 398.7 MB, free: 15.3 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.63e-05/0.2815, allocations: 12.78 kB / 398.7 MB, free: 15.3 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.854e-05/0.2816, allocations: 63.7 kB / 398.8 MB, free: 15.23 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004299/0.282, allocations: 57.25 kB / 398.8 MB, free: 15.21 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000333/0.2824, allocations: 291.3 kB / 399.1 MB, free: 14.92 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.32e-05/0.2824, allocations: 23.75 kB / 399.1 MB, free: 14.91 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.311e-05/0.2825, allocations: 27.12 kB / 399.1 MB, free: 14.9 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004987/0.283, allocations: 338.3 kB / 399.5 MB, free: 14.64 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.627e-05/0.283, allocations: 9.297 kB / 399.5 MB, free: 14.64 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.335e-05/0.283, allocations: 12.12 kB / 399.5 MB, free: 14.63 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.496e-06/0.2831, allocations: 6.875 kB / 399.5 MB, free: 14.63 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003297/0.2834, allocations: 216 kB / 399.7 MB, free: 14.53 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.013/0.2964, allocations: 5.924 MB / 405.6 MB, free: 9.758 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000292/0.2967, allocations: 177.5 kB / 405.8 MB, free: 9.664 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001288/0.2969, allocations: 97.7 kB / 405.9 MB, free: 9.609 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01061/0.3075, allocations: 3.882 MB / 409.8 MB, free: 6.586 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.82e-05/0.3076, allocations: 38.25 kB / 409.8 MB, free: 6.543 MB / 318.1 MB Notification: Performance of pre-optimization done (n=21): time 2.324e-06/0.3076, allocations: 0 / 409.8 MB, free: 6.543 MB / 318.1 MB Notification: Performance of matching and sorting (n=26): time 0.006457/0.314, allocations: 1.406 MB / 411.2 MB, free: 5.066 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.363e-05/0.3141, allocations: 55.41 kB / 411.3 MB, free: 5 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002924/0.3144, allocations: 262.5 kB / 411.5 MB, free: 4.738 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.945e-05/0.3144, allocations: 29.7 kB / 411.6 MB, free: 4.703 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001334/0.3146, allocations: 192 kB / 411.8 MB, free: 4.512 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.102e-05/0.3147, allocations: 86.75 kB / 411.8 MB, free: 4.426 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001094/0.3148, allocations: 73.59 kB / 411.9 MB, free: 4.348 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001488/0.3149, allocations: 334.8 kB / 412.2 MB, free: 4.012 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000164/0.3151, allocations: 87.97 kB / 412.3 MB, free: 3.926 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002266/0.3153, allocations: 190.9 kB / 412.5 MB, free: 3.699 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004298/0.3158, allocations: 303.5 kB / 412.8 MB, free: 3.363 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.639e-06/0.3158, allocations: 0 / 412.8 MB, free: 3.363 MB / 318.1 MB Notification: Performance of matching and sorting (n=42) (initialization): time 0.000702/0.3165, allocations: 398.6 kB / 413.2 MB, free: 2.961 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.012e-05/0.3165, allocations: 8 kB / 413.2 MB, free: 2.953 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.941e-05/0.3166, allocations: 11.98 kB / 413.2 MB, free: 2.941 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004168/0.3207, allocations: 0.9284 MB / 414.2 MB, free: 2.02 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000271/0.321, allocations: 75.83 kB / 414.2 MB, free: 1.945 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00149/0.3225, allocations: 1.982 MB / 416.2 MB, free: 15.8 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002131/0.3227, allocations: 8 kB / 416.2 MB, free: 15.79 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.585e-05/0.3228, allocations: 16 kB / 416.2 MB, free: 15.77 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * 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 (39): * Single equations (assignments): 37 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * 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): 2 systems {(2,1), (1,1)} Notification: Performance of prepare postOptimizeDAE: time 0.0001788/0.323, allocations: 161.8 kB / 416.4 MB, free: 15.61 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.135e-05/0.323, allocations: 31.66 kB / 416.4 MB, free: 15.57 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007028/0.3237, allocations: 497.8 kB / 416.9 MB, free: 15.07 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.615e-06/0.3238, allocations: 4 kB / 416.9 MB, free: 15.07 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.144e-06/0.3238, allocations: 0 / 416.9 MB, free: 15.07 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.000626/0.3244, allocations: 0.7237 MB / 417.6 MB, free: 14.25 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001224/0.3256, allocations: 0.9497 MB / 418.6 MB, free: 13.24 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.569e-06/0.3257, allocations: 0 / 418.6 MB, free: 13.24 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001899/0.3259, allocations: 39.98 kB / 418.6 MB, free: 13.2 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0017/0.3276, allocations: 324.3 kB / 418.9 MB, free: 12.88 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.313e-05/0.3276, allocations: 8 kB / 418.9 MB, free: 12.87 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004549/0.3281, allocations: 0.642 MB / 419.6 MB, free: 12.2 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.633e-06/0.3281, allocations: 0 / 419.6 MB, free: 12.2 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008933/0.329, allocations: 0.7247 MB / 420.3 MB, free: 11.46 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000137/0.3291, allocations: 108.7 kB / 420.4 MB, free: 11.33 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.968e-05/0.3292, allocations: 8 kB / 420.4 MB, free: 11.32 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001755/0.3294, allocations: 0 / 420.4 MB, free: 11.32 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.268e-05/0.3294, allocations: 19.97 kB / 420.4 MB, free: 11.3 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.325e-05/0.3294, allocations: 20.05 kB / 420.5 MB, free: 11.29 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001928/0.3296, allocations: 186 kB / 420.6 MB, free: 11.11 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3297, allocations: 0 / 420.6 MB, free: 11.11 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0007893/0.3304, allocations: 183.9 kB / 420.8 MB, free: 10.93 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (volume.medium.p,volume.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 (25): * Single equations (assignments): 23 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * 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,2)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0017/0.3322, allocations: 1.426 MB / 422.3 MB, free: 9.469 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0008144/0.333, allocations: 463.3 kB / 422.7 MB, free: 9.004 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.957e-06/0.333, allocations: 8 kB / 422.7 MB, free: 8.996 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005032/0.3335, allocations: 235.8 kB / 422.9 MB, free: 8.766 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009702/0.3345, allocations: 167.8 kB / 423.1 MB, free: 8.605 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004052/0.3386, allocations: 3.337 MB / 426.4 MB, free: 5.102 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003177/0.3389, allocations: 0.776 MB / 427.2 MB, free: 4.301 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0002349/0.3391, allocations: 58.92 kB / 427.3 MB, free: 4.246 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001314/0.3393, allocations: 99.41 kB / 427.4 MB, free: 4.148 MB / 334.1 MB Notification: Performance of SimCode: time 2.3e-07/0.3393, allocations: 0 / 427.4 MB, free: 4.148 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03657/0.3759, allocations: 13.29 MB / 440.7 MB, free: 6.965 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.07/11.45, allocations: 14.27 kB / 440.7 MB, free: 6.953 MB / 350.1 MB (rm -f Modelica_trunk_Modelica.Media.Examples.ReferenceAir.DryAir1.pipe ; mkfifo Modelica_trunk_Modelica.Media.Examples.ReferenceAir.DryAir1.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Media.Examples.ReferenceAir.DryAir1.pipe >> ../files/Modelica_trunk_Modelica.Media.Examples.ReferenceAir.DryAir1.sim & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Media.Examples.ReferenceAir.DryAir1_res.csv --start-time 0 --stop-time 1.01 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.000404 Modelica_trunk_Modelica_Media_Examples_ReferenceAir_DryAir1.fmu > Modelica_trunk_Modelica.Media.Examples.ReferenceAir.DryAir1.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Media.Examples.ReferenceAir.DryAir1_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Media/Examples/ReferenceAir/DryAir1/DryAir1.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Media.Examples.ReferenceAir.DryAir1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches